| 295 | } |
| 296 | |
| 297 | static struct opae_adapter_ops *match_ops(struct opae_adapter *adapter) |
| 298 | { |
| 299 | struct opae_adapter_data *data; |
| 300 | |
| 301 | if (!adapter || !adapter->data) |
| 302 | return NULL; |
| 303 | |
| 304 | data = adapter->data; |
| 305 | |
| 306 | if (data->type == OPAE_FPGA_PCI) |
| 307 | return &ifpga_adapter_ops; |
| 308 | |
| 309 | return NULL; |
| 310 | } |
| 311 | |
| 312 | static void opae_mutex_init(pthread_mutex_t *mutex) |
| 313 | { |