blob: 8c33ae0c23f49b09bafa42a25bfd3738a0c349af [file] [log] [blame]
rjw2e8229f2022-02-15 21:08:12 +08001#ifndef __TRANSPORT_PCIE__H
2#define __TRANSPORT_PCIE__H
3
4#include "fdevent.h"
5#include "adb.h"
6#include "sysdeps.h"
7
8struct pcie_info {
9 unsigned short device;
10 unsigned short vendor;
11 unsigned int class;
12};
13
14struct 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