Changeset 171e668 in mainline
- Timestamp:
- 2013-02-08T23:15:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39339378
- Parents:
- c91db2a
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
rc91db2a r171e668 175 175 } 176 176 177 rh_init(&instance->rh, instance->registers);177 ohci_rh_init(&instance->rh, instance->registers, "ohci rh"); 178 178 hc_start(instance); 179 179 … … 262 262 263 263 /* Check for root hub communication */ 264 if (batch->ep->address == instance->rh.address) {264 if (batch->ep->address == ohci_rh_get_address(&instance->rh)) { 265 265 usb_log_debug("OHCI root hub request.\n"); 266 rh_request(&instance->rh, batch); 267 return EOK; 266 return ohci_rh_schedule(&instance->rh, batch); 268 267 } 269 268 ohci_transfer_batch_t *ohci_batch = ohci_transfer_batch_get(batch); … … 304 303 usb_log_debug2("OHCI(%p) interrupt: %x.\n", instance, status); 305 304 if (status & I_RHSC) 306 rh_interrupt(&instance->rh);305 ohci_rh_interrupt(&instance->rh); 307 306 308 307 if (status & I_WDH) { -
uspace/drv/bus/usb/ohci/hc.h
rc91db2a r171e668 45 45 #include "ohci_batch.h" 46 46 #include "ohci_regs.h" 47 #include " root_hub.h"47 #include "ohci_rh.h" 48 48 #include "endpoint_list.h" 49 49 #include "hw_struct/hcca.h" … … 68 68 69 69 /** USB hub emulation structure */ 70 rh_t rh;70 ohci_rh_t rh; 71 71 } hc_t; 72 72
Note:
See TracChangeset
for help on using the changeset viewer.