Changeset 42dbb26 in mainline for uspace/drv/ohci/ohci_rh.c
- Timestamp:
- 2011-03-20T18:36:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e7bc999
- Parents:
- b8e9acb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/ohci_rh.c
rb8e9acb r42dbb26 35 35 #include <errno.h> 36 36 #include <str_error.h> 37 #include <stdio.h>38 37 39 38 #include <usb/debug.h> … … 42 41 43 42 /** Root hub initialization 44 * @param[in] instance RH structure to initialize45 * @param[in] fun DDF function representing UHCI root hub46 * @param[in] reg_addr Address of root hub status and control registers.47 * @param[in] reg_size Size of accessible address space.48 43 * @return Error code. 49 44 */ 50 int ohci_rh_init(ohci_rh_t *instance, uintptr_t reg_addr, size_t reg_size)45 int ohci_rh_init(ohci_rh_t *instance, ohci_regs_t *regs) 51 46 { 52 47 assert(instance); 53 48 instance->address = 0; 49 instance->registers = regs; 50 51 usb_log_info("OHCI root hub with %d ports.\n", regs->rh_desc_a & 0xff); 52 54 53 /* TODO: implement */ 55 54 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.