aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/usb-core.h
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:26:33 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:46:22 +0530
commita4e14d308fb321de4bbd7e30458b3b128db3c4db (patch)
tree90f49cabb0363192bbd501e6f39e09e92dab7792 /lib/libusb/usb-core.h
parent7ef84987993d1327bde0aa78f666b47da2ea5898 (diff)
downloadSLOF-a4e14d308fb321de4bbd7e30458b3b128db3c4db.zip
SLOF-a4e14d308fb321de4bbd7e30458b3b128db3c4db.tar.gz
SLOF-a4e14d308fb321de4bbd7e30458b3b128db3c4db.tar.bz2
usb-core: hcd registration and query routines
* usb-core: hcd registration query hcd operations structure hcd controller init routines * usb-ohci: stub ochi controller init Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Acked-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'lib/libusb/usb-core.h')
-rw-r--r--lib/libusb/usb-core.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libusb/usb-core.h b/lib/libusb/usb-core.h
index 649cb95..1a4e3ec 100644
--- a/lib/libusb/usb-core.h
+++ b/lib/libusb/usb-core.h
@@ -14,6 +14,7 @@
#define __USB_CORE_H
#include <stdio.h>
+#include "usb.h"
enum usb_hcd_type {
USB_OHCI = 1,
@@ -21,15 +22,26 @@ enum usb_hcd_type {
USB_XHCI = 3,
};
+struct usb_hcd_dev;
+
struct usb_hcd_ops {
const char *name;
- void (*init)(void);
+ void (*init)(struct usb_hcd_dev *);
void (*detect)(void);
void (*disconnect)(void);
struct usb_hcd_ops *next;
unsigned int usb_type;
};
+struct usb_hcd_dev {
+ void *base;
+ long type;
+ long num;
+ struct usb_hcd_ops *ops;
+ void *priv; /* hcd owned structure */
+ long nextaddr; /* address for devices */
+};
+
extern void usb_hcd_register(struct usb_hcd_ops *ops);
#endif