xj | 123f7cc | 2022-06-06 11:35:21 +0800 | [diff] [blame] | 1 | #ifndef __TRANSPORT_PCIE__H |
| 2 | #define __TRANSPORT_PCIE__H |
| 3 | |
| 4 | #include "fdevent.h" |
| 5 | #include "adb.h" |
| 6 | #include "sysdeps.h" |
| 7 | |
| 8 | struct pcie_info { |
| 9 | unsigned short device; |
| 10 | unsigned short vendor; |
| 11 | unsigned int class; |
| 12 | }; |
| 13 | |
| 14 | struct pcie_handle { |
| 15 | int fd; |
| 16 | struct pcie_info *info; |
| 17 | |
| 18 | adb_cond_t notify; |
| 19 | adb_mutex_t lock; |
| 20 | |
| 21 | int (*write)(struct pcie_handle *h, const void *data, int len); |
| 22 | int (*read)(struct pcie_handle *h, void *data, int len); |
| 23 | void (*kick)(struct pcie_handle *h); |
| 24 | }; |
| 25 | |
| 26 | #endif |