X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=blobdiff_plain;f=usb%2Fdrivers%2Fclass%2Fhub.c;h=f86e516d2d3b070b805c1c9dbef100beea74208b;hp=38c40b3b988343d69b7dac9d01305b9c7b0fdcfc;hb=428b93c4f10532ef7f4ce17f6d641e9e86dbc331;hpb=b89d4dcf5ed30bc7aca7cf7dd30b098592afd2f1 diff --git a/usb/drivers/class/hub.c b/usb/drivers/class/hub.c index 38c40b3..f86e516 100644 --- a/usb/drivers/class/hub.c +++ b/usb/drivers/class/hub.c @@ -44,7 +44,7 @@ void usb_hub_probe(); void usb_hub_check(); -usb_driver hub = { +struct usb_driver hub = { .name = "hub", .probe = usb_hub_probe, .check = usb_hub_check, @@ -65,8 +65,7 @@ void usb_hub_probe() #endif wait_ms(1000); - usb_device * dev; - dev = usb_open_class(HUB_CLASSCODE); + struct usb_device *dev = usb_open_class(HUB_CLASSCODE); if(dev != NULL){ hub.data = (void*)dev; /* save handle */ #if DEBUG @@ -97,12 +96,12 @@ void usb_hub_check() } -u8 usb_hub_get_hub_descriptor(usb_device *dev, char * buf) +u8 usb_hub_get_hub_descriptor(struct usb_device *dev, char * buf) { return 0; } -u8 usb_hub_get_hub_status(usb_device *dev, char *buf) +u8 usb_hub_get_hub_status(struct usb_device *dev, char *buf) { @@ -110,38 +109,38 @@ u8 usb_hub_get_hub_status(usb_device *dev, char *buf) } -u8 usb_hub_get_port_status(usb_device *dev, char *buf) +u8 usb_hub_get_port_status(struct usb_device *dev, char *buf) { return 0; } -u8 usb_hub_clear_port_feature(usb_device *dev) +u8 usb_hub_clear_port_feature(struct usb_device *dev) { return 0; } -u8 usb_hub_set_port_feature(usb_device *dev, u8 value) +u8 usb_hub_set_port_feature(struct usb_device *dev, u8 value) { return 0; } -u8 usb_hub_clear_hub_feature(usb_device *dev) +u8 usb_hub_clear_hub_feature(struct usb_device *dev) { return 0; } -u8 usb_hub_set_hub_feature(usb_device *dev) +u8 usb_hub_set_hub_feature(struct usb_device *dev) { return 0; } -u8 usb_hub_set_hub_descriptor(usb_device *dev) +u8 usb_hub_set_hub_descriptor(struct usb_device *dev) { return 0;