summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-08-12 13:17:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-08-12 13:17:11 +0000
commit750ac6d869c3b4bd94ecdb6dce9c16265326b954 (patch)
treea00c26ecfcbf9ff5cb5335349b8a60492995cae6 /extra
parentda2cf82c5b073be1bc3f3185a16722a2f5d289de (diff)
Check for usb_get_busses() and usb_interrupt_read()
Diffstat (limited to 'extra')
-rw-r--r--extra/bcm203x.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/bcm203x.c b/extra/bcm203x.c
index f4c48364..1aa9257b 100644
--- a/extra/bcm203x.c
+++ b/extra/bcm203x.c
@@ -40,6 +40,20 @@
#include <usb.h>
+#ifdef NEED_USB_GET_BUSSES
+static inline struct usb_bus *usb_get_busses(void)
+{
+ return usb_busses;
+}
+#endif
+
+#ifdef NEED_USB_INTERRUPT_READ
+static inline int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout)
+{
+ return usb_bulk_read(dev, ep, bytes, size, timeout);
+}
+#endif
+
static char *fw_path = "/lib/firmware";
static int load_file(struct usb_dev_handle *udev, char *filename)