Changeset af4e464e in mainline for uspace/drv/bus/usb/uhci/uhci_rh.h
- Timestamp:
- 2013-02-08T13:05:54Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 711f5fb8
- Parents:
- 4c86c7c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_rh.h
r4c86c7c raf4e464e 33 33 * @brief UHCI host controller driver structure 34 34 */ 35 #ifndef DRV_UHCI_ RHVIRT_H36 #define DRV_UHCI_ RHVIRT_H35 #ifndef DRV_UHCI_UHCI_RH_H 36 #define DRV_UHCI_UHCI_RH_H 37 37 38 38 #include <usbvirt/virthub_base.h> … … 42 42 #define HUB_STATUS_CHANGE_PIPE 1 43 43 44 44 /** Virtual to UHCI hub connector */ 45 45 typedef struct { 46 /** Virtual hub software implementation */ 46 47 virthub_base_t base; 48 /** UHCI root hub port io registers */ 47 49 ioport16_t *ports[2]; 50 /** Reset change indicator, it is not reported by regs */ 48 51 bool reset_changed[2]; 49 52 } uhci_rh_t; … … 51 54 int uhci_rh_init(uhci_rh_t *instance, ioport16_t *ports, const char *name); 52 55 int uhci_rh_schedule(uhci_rh_t *instance, usb_transfer_batch_t *batch); 56 57 /** Get UHCI rh address. 58 * 59 * @param instance UHCI rh instance. 60 * @return USB address assigned to the hub. 61 * Wrapper for virtual hub address 62 */ 53 63 static inline usb_address_t uhci_rh_get_address(uhci_rh_t *instance) 54 64 {
Note:
See TracChangeset
for help on using the changeset viewer.