Changeset dced52a in mainline for uspace/drv/uhci-rhd/root_hub.c
- Timestamp:
- 2011-02-28T12:24:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86341e2, cc44f7e
- Parents:
- 4abc304
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/root_hub.c
r4abc304 rdced52a 46 46 assert(rh); 47 47 int ret; 48 ret = usb_hc_find(rh->handle, &instance->hc_handle);49 usb_log_info("rh found(%d) hc handle: %d.\n", ret, instance->hc_handle);50 if (ret != EOK) {51 return ret;52 }53 48 54 49 /* allow access to root hub registers */ 55 50 assert(sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT == size); 56 51 port_status_t *regs; 57 ret = pio_enable( 58 addr, sizeof(port_status_t) * UHCI_ROOT_HUB_PORT_COUNT, (void**)®s); 52 ret = pio_enable(addr, size, (void**)®s); 59 53 60 54 if (ret < 0) { … … 67 61 for (; i < UHCI_ROOT_HUB_PORT_COUNT; ++i) { 68 62 /* mind pointer arithmetics */ 69 intret = uhci_port_init(63 ret = uhci_port_init( 70 64 &instance->ports[i], regs + i, i, ROOT_HUB_WAIT_USEC, rh); 71 65 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.