Changeset 48fe0c9 in mainline for uspace/drv/ohci/root_hub.c
- Timestamp:
- 2011-03-21T13:43:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 361e61b, 5971dd3, 8a951ca
- Parents:
- 0e45e7f (diff), 925e099 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
r0e45e7f r48fe0c9 38 38 #include <usb/debug.h> 39 39 40 #include " ohci_rh.h"40 #include "root_hub.h" 41 41 42 42 /** Root hub initialization 43 43 * @return Error code. 44 44 */ 45 int ohci_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 instance->address = 0;48 instance->address = -1; 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 ohci_rh_request(ohci_rh_t *instance, batch_t *request)58 int rh_request(rh_t *instance, batch_t *request) 58 59 { 60 assert(instance); 61 assert(request); 59 62 /* TODO: implement */ 63 if (request->setup_buffer) { 64 usb_log_info("Root hub got SETUP packet: %s.\n", 65 usb_debug_str_buffer((const uint8_t *)request->setup_buffer, 8, 8)); 66 } 67 usb_log_error("Root hub request processing not implemented.\n"); 68 batch_finish(request, ENOTSUP); 69 return EOK; 60 70 } 61 71 /*----------------------------------------------------------------------------*/ 62 void ohci_rh_interrupt(ohci_rh_t *instance)72 void rh_interrupt(rh_t *instance) 63 73 { 64 usb_log_ info("Interrupt!!.\n");74 usb_log_error("Root hub interrupt not implemented.\n"); 65 75 /* TODO: implement */ 66 76 }
Note:
See TracChangeset
for help on using the changeset viewer.