Modules/USB - Working on a structure for the USB subsystem
[tpg/acess2.git] / Modules / USB / Core / include / usb_host.h
1 /*
2  * Acess2 USB Stack
3  * - By John Hodge (thePowersGang)
4  *
5  * usb_host.h
6  * - USB Host Controller Interface
7  */
8 #ifndef _USB_HOST_H_
9 #define _USB_HOST_H_
10
11 #include "usb_core.h"
12 #include "usb_hub.h"
13
14 typedef struct sUSBHostDef      tUSBHostDef;
15
16 /**
17  * \brief Defines a USB Host Controller type
18  */
19 struct sUSBHostDef
20 {
21         void    *(*SendIN)(void *Ptr, int Fcn, int Endpt, int DataTgl, int bIOC, void *Data, size_t Length);
22         void    *(*SendOUT)(void *Ptr, int Fcn, int Endpt, int DataTgl, int bIOC, void *Data, size_t Length);
23         void    *(*SendSETUP)(void *Ptr, int Fcn, int Endpt, int DataTgl, int bIOC, void *Data, size_t Length);
24         
25         void    (*CheckPorts)(void *Ptr);
26 };
27
28 extern tUSBHub  *USB_RegisterHost(tUSBHostDef *HostDef, void *ControllerPtr, int nPorts);
29
30 #endif
31

UCC git Repository :: git.ucc.asn.au