Changes in uspace/drv/uhci-hcd/uhci.h [fb78ae72:83c439c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.h
rfb78ae72 r83c439c 66 66 67 67 uint16_t usbintr; 68 #define UHCI_INTR_SHORT_PACKET (1 << 3)69 #define UHCI_INTR_COMPLETE (1 << 2)70 #define UHCI_INTR_RESUME (1 << 1)71 #define UHCI_INTR_CRC (1 << 0)72 73 68 uint16_t frnum; 74 69 uint32_t flbaseadd; … … 77 72 78 73 #define UHCI_FRAME_LIST_COUNT 1024 79 #define UHCI_CLEANER_TIMEOUT 10000 74 #define UHCI_CLEANER_TIMEOUT 1000000 80 75 #define UHCI_DEBUGER_TIMEOUT 5000000 81 76 … … 86 81 link_pointer_t *frame_list; 87 82 83 link_t batch_list; 84 fibril_mutex_t batch_list_mutex; 85 88 86 transfer_list_t transfers_bulk_full; 89 87 transfer_list_t transfers_control_full; … … 92 90 93 91 transfer_list_t *transfers[2][4]; 94 95 irq_code_t interrupt_code;96 92 97 93 fid_t cleaner; … … 102 98 int uhci_init(uhci_t *instance, void *regs, size_t reg_size); 103 99 104 static inline void uhci_fini(uhci_t *instance) {}; 100 int uhci_fini(uhci_t *device); 101 102 int uhci_transfer( 103 uhci_t *instance, 104 device_t *dev, 105 usb_target_t target, 106 usb_transfer_type_t transfer_type, 107 bool toggle, 108 usb_packet_id pid, 109 bool low_speed, 110 void *buffer, size_t size, 111 usbhc_iface_transfer_out_callback_t callback_out, 112 usbhc_iface_transfer_in_callback_t callback_in, 113 void *arg ); 105 114 106 115 int uhci_schedule(uhci_t *instance, batch_t *batch); 107 116 108 void uhci_interrupt(uhci_t *instance, uint16_t status);109 110 117 static inline uhci_t * dev_to_uhci(device_t *dev) 111 118 { return (uhci_t*)dev->driver_data; } 112 113 119 114 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.