]>
Commit | Line | Data |
---|---|---|
cbfa0ac6 MG |
1 | #define XPCU_CLAIM 1 |
2 | #define XPCU_RELEASE 0 | |
3 | ||
501f1c21 MG |
4 | #define ENABLE_INTERRUPT 1 |
5 | #define DISABLE_INTERRUPT 0 | |
6 | ||
cbfa0ac6 MG |
7 | struct xpcu_s { |
8 | struct usb_device *dev; | |
9 | usb_dev_handle *handle; | |
cbfa0ac6 MG |
10 | int interface; |
11 | int alternate; | |
4f347185 | 12 | unsigned long card_type; |
501f1c21 | 13 | pthread_mutex_t interrupt; |
cbfa0ac6 MG |
14 | }; |
15 | ||
f92c0fbc | 16 | int __attribute__ ((visibility ("hidden"))) xpcu_deviceinfo(struct xpcu_s *xpcu, struct usb_get_device_data *ugdd); |
6c235d59 | 17 | int __attribute__ ((visibility ("hidden"))) xpcu_transfer(struct xpcu_s *xpcu, struct usb_transfer *ut); |
8af4d910 | 18 | int __attribute__ ((visibility ("hidden"))) xpcu_set_interface(struct xpcu_s *xpcu, struct usb_set_interface *usi); |
f92c0fbc | 19 | struct xpcu_s __attribute__ ((visibility ("hidden"))) *xpcu_find(struct event *e); |
8af4d910 MG |
20 | int __attribute__ ((visibility ("hidden"))) xpcu_found(struct xpcu_s *xpcu, struct event *e); |
21 | int __attribute__ ((visibility ("hidden"))) xpcu_close(struct xpcu_s *xpcu, struct event *e); | |
22 | int __attribute__ ((visibility ("hidden"))) xpcu_int_state(struct xpcu_s *xpcu, struct interrupt *it, int enable); | |
23 | int __attribute__ ((visibility ("hidden"))) xpcu_int_wait(struct xpcu_s *xpcu, struct interrupt *it); |