Changeset c95c00e in mainline for uspace/drv/bus/usb/uhci/hc.h
- Timestamp:
- 2013-01-06T02:46:00Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3848fec
- Parents:
- ea30cc1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
rea30cc1 rc95c00e 37 37 38 38 #include <fibril.h> 39 #include <macros.h> 39 40 #include <usb/host/hcd.h> 41 #include "uhci_rh.h" 40 42 41 43 #include "transfer_list.h" … … 44 46 typedef struct uhci_regs { 45 47 /** Command register, controls HC behaviour */ 46 uint16_t usbcmd;48 ioport16_t usbcmd; 47 49 #define UHCI_CMD_MAX_PACKET (1 << 7) 48 50 #define UHCI_CMD_CONFIGURE (1 << 6) … … 55 57 56 58 /** Status register, 1 means interrupt is asserted (if enabled) */ 57 uint16_t usbsts;59 ioport16_t usbsts; 58 60 #define UHCI_STATUS_HALTED (1 << 5) 59 61 #define UHCI_STATUS_PROCESS_ERROR (1 << 4) … … 66 68 67 69 /** Interrupt enabled registers */ 68 uint16_t usbintr;70 ioport16_t usbintr; 69 71 #define UHCI_INTR_SHORT_PACKET (1 << 3) 70 72 #define UHCI_INTR_COMPLETE (1 << 2) … … 73 75 74 76 /** Register stores frame number used in SOF packet */ 75 uint16_t frnum;77 ioport16_t frnum; 76 78 77 79 /** Pointer(physical) to the Frame List */ 78 uint32_t flbaseadd;80 ioport32_t flbaseadd; 79 81 80 82 /** SOF modification to match external timers */ 81 uint8_t sofmod; 83 ioport8_t sofmod; 84 85 PADD8[3]; 86 ioport16_t ports[]; 82 87 } uhci_regs_t; 83 88 … … 90 95 /** Main UHCI driver structure */ 91 96 typedef struct hc { 97 uhci_rh_t rh; 92 98 /** Addresses of I/O registers */ 93 99 uhci_regs_t *registers;
Note:
See TracChangeset
for help on using the changeset viewer.