1 /******************************************************************************
2 * Copyright (c) 2006, 2012, 2013 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 * prototypes for libusb implementation used in libusb.code
19 /*******************************************/
20 /* SLOF: USB-OHCI-REGISTER */
21 /*******************************************/
22 extern void usb_ohci_register(void);
23 /*******************************************/
24 /* SLOF: USB-EHCI-REGISTER */
25 /*******************************************/
26 extern void usb_ehci_register(void);
27 /*******************************************/
28 /* SLOF: USB-XHCI-REGISTER */
29 /*******************************************/
30 extern void usb_xhci_register(void);
31 /*******************************************/
32 /* SLOF: USB-HCD-INIT */
33 /*******************************************/
34 extern void usb_hcd_init(void *hcidev);
35 /*******************************************/
36 /* SLOF: USB-HCD-EXIT */
37 /*******************************************/
38 extern void usb_hcd_exit(void *hcidev);
39 /*******************************************/
40 /* SLOF: USB-HID-INIT */
41 /*******************************************/
42 extern int usb_hid_init(void *dev);
43 /*******************************************/
44 /* SLOF: USB-HID-EXIT */
45 /*******************************************/
46 extern int usb_hid_exit(void *dev);
47 /*******************************************/
48 /* SLOF: USB-READ-KEYB */
49 /*******************************************/
50 extern unsigned char usb_read_keyb(void *dev);
51 /*******************************************/
52 /* SLOF: USB-KEY-AVAILABLE */
53 /*******************************************/
54 extern unsigned char usb_key_available(void *dev);
55 /*******************************************/
56 /* SLOF: USB-HUB-INIT */
57 /*******************************************/
58 extern unsigned int usb_hub_init(void *dev);
59 /*******************************************/
60 /* SLOF: USB-MSC-INIT */
61 /*******************************************/
62 extern int usb_msc_init(void *dev);
63 /*******************************************/
64 /* SLOF: USB-MSC-EXIT */
65 /*******************************************/
66 extern int usb_msc_exit(void *dev);
67 /*******************************************/
68 /* SLOF: USB-TRANSFER-CTRL */
69 /*******************************************/
70 extern int usb_transfer_ctrl(void *dev, void *req, void *data);
71 /*******************************************/
72 /* SLOF: USB-TRANSFER-BULK */
73 /*******************************************/
74 extern int usb_transfer_bulk(void *dev, int dir, void *td,
75 void *td_phys, void *data, int size);