Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci.h

    rfb78ae72 r83c439c  
    6666
    6767        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 
    7368        uint16_t frnum;
    7469        uint32_t flbaseadd;
     
    7772
    7873#define UHCI_FRAME_LIST_COUNT 1024
    79 #define UHCI_CLEANER_TIMEOUT 10000
     74#define UHCI_CLEANER_TIMEOUT 1000000
    8075#define UHCI_DEBUGER_TIMEOUT 5000000
    8176
     
    8681        link_pointer_t *frame_list;
    8782
     83        link_t batch_list;
     84        fibril_mutex_t batch_list_mutex;
     85
    8886        transfer_list_t transfers_bulk_full;
    8987        transfer_list_t transfers_control_full;
     
    9290
    9391        transfer_list_t *transfers[2][4];
    94 
    95         irq_code_t interrupt_code;
    9692
    9793        fid_t cleaner;
     
    10298int uhci_init(uhci_t *instance, void *regs, size_t reg_size);
    10399
    104 static inline void uhci_fini(uhci_t *instance) {};
     100int uhci_fini(uhci_t *device);
     101
     102int 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 );
    105114
    106115int uhci_schedule(uhci_t *instance, batch_t *batch);
    107116
    108 void uhci_interrupt(uhci_t *instance, uint16_t status);
    109 
    110117static inline uhci_t * dev_to_uhci(device_t *dev)
    111118        { return (uhci_t*)dev->driver_data; }
    112 
    113119
    114120#endif
Note: See TracChangeset for help on using the changeset viewer.