#include "cfe.h"
#include "usbchap9.h"
#include "usbd.h"
Go to the source code of this file.
|
#define | CACHE_ALIGN 32 /* XXX place holder, big enough to now. */ |
|
#define | BUFF_ALIGN 16 |
|
#define | ALIGN(n, align) (((n)+((align)-1)) & ~((align)-1)) |
|
#define | usb_dma_alloc(n) (KMALLOC(ALIGN((n),CACHE_ALIGN),BUFF_ALIGN)) |
|
#define | usb_dma_free(p) (KFREE(p)) |
|
#define | usbhub_set_port_feature(dev, port, feature) usb_simple_request(dev,0x23,USB_HUBREQ_SET_FEATURE,feature,port) |
|
#define | usbhub_set_hub_feature(dev, feature) usb_simple_request(dev,0x20,USB_HUBREQ_SET_FEATURE,feature,0) |
|
#define | usbhub_clear_port_feature(dev, port, feature) usb_simple_request(dev,0x23,USB_HUBREQ_CLEAR_FEATURE,feature,port) |
|
#define | usbhub_clear_hub_feature(dev, feature) usb_simple_request(dev,0x20,USB_HUBREQ_CLEAR_FEATURE,feature,0) |
|
#define | UHUB_MAX_DEVICES 8 |
|
#define | UHUB_FLG_NEEDSCAN 1 |
|
◆ ALIGN
#define ALIGN |
( |
|
n, |
|
|
|
align |
|
) |
| (((n)+((align)-1)) & ~((align)-1)) |
◆ BUFF_ALIGN
◆ CACHE_ALIGN
#define CACHE_ALIGN 32 /* XXX place holder, big enough to now. */ |
◆ UHUB_FLG_NEEDSCAN
#define UHUB_FLG_NEEDSCAN 1 |
◆ UHUB_MAX_DEVICES
#define UHUB_MAX_DEVICES 8 |
◆ usb_dma_alloc
◆ usb_dma_free
#define usb_dma_free |
( |
|
p | ) |
(KFREE(p)) |
◆ usbhub_clear_hub_feature
◆ usbhub_clear_port_feature
◆ usbhub_set_hub_feature
◆ usbhub_set_port_feature
◆ usbhub_softc_t
◆ usb_scan()
◆ usbhub_dumpbus()
◆ usbhub_map_from_device()
void usbhub_map_from_device |
( |
usbdev_t * |
dev, |
|
|
int(*)(usbdev_t *dev, void *arg) |
func, |
|
|
void * |
arg |
|
) |
| |
◆ usbhub_map_tree()
void usbhub_map_tree |
( |
usbbus_t * |
bus, |
|
|
int(*)(usbdev_t *dev, void *arg) |
func, |
|
|
void * |
arg |
|
) |
| |
◆ usb_noisy
◆ usbhub_driver
Initial value:= {
"USB Hub",
usbhub_attach,
usbhub_detach
}
Definition at line 114 of file usbhub.c.
◆ usbroothub_driver
Initial value:= {
"Root Hub",
usbhub_attach,
usbhub_detach
}
Definition at line 120 of file usbhub.c.