Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.h

    rd52ab7b r1ae74c6  
    3636#define DRV_UHCI_HC_H
    3737
    38 #include <ddf/interrupt.h>
    39 #include <device/hw_res_parsed.h>
    4038#include <fibril.h>
    4139#include <usb/host/hcd.h>
     
    4644typedef struct uhci_regs {
    4745        /** Command register, controls HC behaviour */
    48         ioport16_t usbcmd;
     46        uint16_t usbcmd;
    4947#define UHCI_CMD_MAX_PACKET (1 << 7)
    5048#define UHCI_CMD_CONFIGURE  (1 << 6)
     
    5755
    5856        /** Status register, 1 means interrupt is asserted (if enabled) */
    59         ioport16_t usbsts;
     57        uint16_t usbsts;
    6058#define UHCI_STATUS_HALTED (1 << 5)
    6159#define UHCI_STATUS_PROCESS_ERROR (1 << 4)
     
    6866
    6967        /** Interrupt enabled registers */
    70         ioport16_t usbintr;
     68        uint16_t usbintr;
    7169#define UHCI_INTR_SHORT_PACKET (1 << 3)
    7270#define UHCI_INTR_COMPLETE (1 << 2)
     
    7573
    7674        /** Register stores frame number used in SOF packet */
    77         ioport16_t frnum;
     75        uint16_t frnum;
    7876
    7977        /** Pointer(physical) to the Frame List */
    80         ioport32_t flbaseadd;
     78        uint32_t flbaseadd;
    8179
    8280        /** SOF modification to match external timers */
    83         ioport8_t sofmod;
     81        uint8_t sofmod;
    8482} uhci_regs_t;
    8583
     
    121119} hc_t;
    122120
    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 *);
     121size_t hc_irq_pio_range_count(void);
     122size_t hc_irq_cmd_count(void);
     123int hc_get_irq_code(irq_pio_range_t [], size_t, irq_cmd_t [], size_t, uintptr_t,
     124    size_t);
    127125void hc_interrupt(hc_t *instance, uint16_t status);
    128 int hc_init(hc_t *instance, addr_range_t *regs, bool interupts);
     126int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts);
    129127
    130128/** Safely dispose host controller internal structures
     
    134132static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/
    135133#endif
    136 
    137134/**
    138135 * @}
Note: See TracChangeset for help on using the changeset viewer.