7#define __usb_control_message(ehci, fd, b, c,d, e, f, g, h, i) ehci_control_message(ehci,fd,b,c,d,e,f,g)
11 printk(
"usb_get desc %X %X %p\n",
type,index,buffer);
26 return (buffer -
ptr);
38 u32 iConf, iInterface, iEndpoint;
101 for(iInterface = 0; iInterface < ucd->
bNumInterfaces; iInterface++)
114 i = __find_next_endpoint(
ptr,
size);
126 for(iEndpoint = 0; iEndpoint < uid->
bNumEndpoints; iEndpoint++)
149 int iConf, iInterface;
159 for(iInterface = 0; iInterface < ucd->
bNumInterfaces; iInterface++)
191 if(_configuration ==
NULL)
196 *configuration = *_configuration;
207 if(alternateSetting == 0)
s32 ehci_bulk_message(struct ehci_hcd *ehci, struct ehci_device *dev, u8 bEndpoint, u16 wLength, void *rpData)
struct _usbinterfacedesc * interfaces
struct _usbconfdesc * configurations
struct _usbendpointdesc * endpoints
void USB_FreeDescriptors(usb_devdesc *udd)
#define __usb_control_message(ehci, fd, b, c, d, e, f, g, h, i)
s32 USB_GetDescriptors(struct ehci_hcd *ehci, struct ehci_device *fd, usb_devdesc *udd)
s32 USB_SetAlternativeInterface(struct ehci_hcd *ehci, struct ehci_device *fd, u8 interface, u8 alternateSetting)
s32 USB_ClearHalt(struct ehci_hcd *ehci, struct ehci_device *fd, u8 endpoint)
s32 USB_SetConfiguration(struct ehci_hcd *ehci, struct ehci_device *fd, u8 configuration)
s32 USB_WriteBlkMsg(struct ehci_hcd *ehci, struct ehci_device *fd, u8 bEndpoint, u16 wLength, void *rpData)
s32 USB_GetConfiguration(struct ehci_hcd *ehci, struct ehci_device *fd, u8 *configuration)
s32 USB_WriteCtrlMsg(struct ehci_hcd *ehci, struct ehci_device *fd, u8 bmRequestType, u8 bmRequest, u16 wValue, u16 wIndex, u16 wLength, void *rpData)
#define USB_DT_ENDPOINT_SIZE
#define USB_FEATURE_ENDPOINT_HALT
#define USB_CTRLTYPE_DIR_HOST2DEVICE
#define USB_REQ_SETINTERFACE
#define USB_CTRLTYPE_DIR_DEVICE2HOST
#define USB_REQ_GETCONFIG
void * USB_Alloc(int size)
#define USB_CTRLTYPE_REC_ENDPOINT
#define USB_CTRLTYPE_REC_DEVICE
#define USB_REQ_SETCONFIG
#define USB_CTRLTYPE_REC_INTERFACE
#define USB_DT_CONFIG_SIZE
#define USB_CTRLTYPE_TYPE_STANDARD
#define USB_REQ_GETDESCRIPTOR
#define USB_REQ_CLEARFEATURE
#define USB_DT_DEVICE_SIZE
#define USB_DT_INTERFACE_SIZE
uint8_t u8
8bit unsigned integer
uint16_t u16
16bit unsigned integer
int32_t s32
32bit signed integer
uint32_t u32
32bit unsigned integer