Changes in uspace/drv/bus/usb/uhci/hc.h [1ae74c6:d52ab7b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
r1ae74c6 rd52ab7b 36 36 #define DRV_UHCI_HC_H 37 37 38 #include <ddf/interrupt.h> 39 #include <device/hw_res_parsed.h> 38 40 #include <fibril.h> 39 41 #include <usb/host/hcd.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; 82 84 } uhci_regs_t; 83 85 … … 119 121 } hc_t; 120 122 121 size_t hc_irq_pio_range_count(void); 122 size_t hc_irq_cmd_count(void);123 int hc_get_irq_code(irq_pio_range_t [], size_t, irq_cmd_t [], size_t, uintptr_t,124 size_t);123 int hc_register_irq_handler(ddf_dev_t *, addr_range_t *, int, 124 interrupt_handler_t); 125 int hc_get_irq_code(irq_pio_range_t [], size_t, irq_cmd_t [], size_t, 126 addr_range_t *); 125 127 void hc_interrupt(hc_t *instance, uint16_t status); 126 int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts);128 int hc_init(hc_t *instance, addr_range_t *regs, bool interupts); 127 129 128 130 /** Safely dispose host controller internal structures … … 132 134 static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/ 133 135 #endif 136 134 137 /** 135 138 * @}
Note:
See TracChangeset
for help on using the changeset viewer.