Changeset a6d1bc1 in mainline for uspace/drv/ohci/root_hub.c
- Timestamp:
- 2011-03-21T11:52:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8627377
- Parents:
- b0beee82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
rb0beee82 ra6d1bc1 43 43 * @return Error code. 44 44 */ 45 int rh_init( ohci_rh_t *instance, ohci_regs_t *regs)45 int rh_init(rh_t *instance, ddf_dev_t *dev, ohci_regs_t *regs) 46 46 { 47 47 assert(instance); 48 48 instance->address = 0; 49 49 instance->registers = regs; 50 instance->device = dev; 50 51 51 52 usb_log_info("OHCI root hub with %d ports.\n", regs->rh_desc_a & 0xff); … … 55 56 } 56 57 /*----------------------------------------------------------------------------*/ 57 void rh_request( ohci_rh_t *instance, batch_t *request)58 void rh_request(rh_t *instance, batch_t *request) 58 59 { 60 usb_log_error("Request processing not implemented.\n"); 59 61 /* TODO: implement */ 60 62 } 61 63 /*----------------------------------------------------------------------------*/ 62 void rh_interrupt( ohci_rh_t *instance)64 void rh_interrupt(rh_t *instance) 63 65 { 64 usb_log_ info("Interrupt!!.\n");66 usb_log_error("Root hub interrupt not implemented.\n"); 65 67 /* TODO: implement */ 68 } 69 /*----------------------------------------------------------------------------*/ 70 int rh_register(rh_t *instance, ddf_dev_t *dev) 71 { 72 return EOK; 66 73 } 67 74 /**
Note:
See TracChangeset
for help on using the changeset viewer.