Changeset 245b56b5 in mainline
- Timestamp:
- 2011-01-29T08:32:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 113aef8
- Parents:
- 816175a2
- Location:
- uspace/drv/uhci/root_hub
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/root_hub/debug.h
r816175a2 r245b56b5 38 38 #include <usb/debug.h> 39 39 40 #define NAME "uhci_root_hub" 40 #define NAME "uhci_root_hubd" 41 41 42 enum debug_levels { 42 43 DEBUG_LEVEL_FATAL_ERROR = 1, -
uspace/drv/uhci/root_hub/port.c
r816175a2 r245b56b5 1 1 2 2 #include <errno.h> 3 #include <usb/usb.h> 4 #include <usb/usbdrv.h> 3 #include <usb/usb.h> /* usb_address_t */ 4 #include <usb/usbdrv.h> /* usb_drv_* */ 5 5 6 6 #include "debug.h" … … 121 121 return ENOMEM; 122 122 } 123 uhci_print_info("Sucessfully added device on port(%d) address(%d).\n", 124 port->number, usb_address); 123 125 124 126 /* TODO: bind the address here */ -
uspace/drv/uhci/root_hub/port.h
r816175a2 r245b56b5 36 36 37 37 #include <assert.h> 38 #include <driver.h> 38 #include <driver.h> /* device_t */ 39 39 #include <stdint.h> 40 40 … … 55 55 unsigned usec) 56 56 { 57 assert( port);57 assert(port); 58 58 port->address = address; 59 59 port->hc = hc; -
uspace/drv/uhci/root_hub/root_hub.c
r816175a2 r245b56b5 8 8 #include "root_hub.h" 9 9 10 #define ROOT_HUB_WAIT_USEC 10000000 /* 10 seconds */11 10 12 11 int uhci_root_hub_init( uhci_root_hub_t *hub, device_t *hc, void *addr ) -
uspace/drv/uhci/root_hub/root_hub.h
r816175a2 r245b56b5 36 36 37 37 #include <fibril.h> 38 #include <driver.h> 38 #include <driver.h> /* for device_t */ 39 39 40 40 #include "port.h" … … 42 42 #define UHCI_ROOT_HUB_PORT_COUNT 2 43 43 #define UHCI_ROOT_HUB_PORT_REGISTERS_OFFSET 0x10 44 #define ROOT_HUB_WAIT_USEC 10000000 /* 10 seconds */ 44 45 45 46 typedef struct root_hub {
Note:
See TracChangeset
for help on using the changeset viewer.