Changes in uspace/drv/bus/usb/uhci/hc.h [d52ab7b:1ae74c6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
rd52ab7b r1ae74c6 36 36 #define DRV_UHCI_HC_H 37 37 38 #include <ddf/interrupt.h>39 #include <device/hw_res_parsed.h>40 38 #include <fibril.h> 41 39 #include <usb/host/hcd.h> … … 46 44 typedef struct uhci_regs { 47 45 /** Command register, controls HC behaviour */ 48 ioport16_t usbcmd;46 uint16_t usbcmd; 49 47 #define UHCI_CMD_MAX_PACKET (1 << 7) 50 48 #define UHCI_CMD_CONFIGURE (1 << 6) … … 57 55 58 56 /** Status register, 1 means interrupt is asserted (if enabled) */ 59 ioport16_t usbsts;57 uint16_t usbsts; 60 58 #define UHCI_STATUS_HALTED (1 << 5) 61 59 #define UHCI_STATUS_PROCESS_ERROR (1 << 4) … … 68 66 69 67 /** Interrupt enabled registers */ 70 ioport16_t usbintr;68 uint16_t usbintr; 71 69 #define UHCI_INTR_SHORT_PACKET (1 << 3) 72 70 #define UHCI_INTR_COMPLETE (1 << 2) … … 75 73 76 74 /** Register stores frame number used in SOF packet */ 77 ioport16_t frnum;75 uint16_t frnum; 78 76 79 77 /** Pointer(physical) to the Frame List */ 80 ioport32_t flbaseadd;78 uint32_t flbaseadd; 81 79 82 80 /** SOF modification to match external timers */ 83 ioport8_t sofmod;81 uint8_t sofmod; 84 82 } uhci_regs_t; 85 83 … … 121 119 } hc_t; 122 120 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 *);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); 127 125 void hc_interrupt(hc_t *instance, uint16_t status); 128 int hc_init(hc_t *instance, addr_range_t *regs, bool interupts);126 int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts); 129 127 130 128 /** Safely dispose host controller internal structures … … 134 132 static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/ 135 133 #endif 136 137 134 /** 138 135 * @}
Note:
See TracChangeset
for help on using the changeset viewer.