Changeset c95c00e in mainline for uspace/drv/bus/usb/uhci/hc.h


Ignore:
Timestamp:
2013-01-06T02:46:00Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3848fec
Parents:
ea30cc1
Message:

uhci: Add root hub emulation.

This device uses libusbvirt and si controlled by standard usbhub driver.

File:
1 edited

Legend:

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

    rea30cc1 rc95c00e  
    3737
    3838#include <fibril.h>
     39#include <macros.h>
    3940#include <usb/host/hcd.h>
     41#include "uhci_rh.h"
    4042
    4143#include "transfer_list.h"
     
    4446typedef struct uhci_regs {
    4547        /** Command register, controls HC behaviour */
    46         uint16_t usbcmd;
     48        ioport16_t usbcmd;
    4749#define UHCI_CMD_MAX_PACKET (1 << 7)
    4850#define UHCI_CMD_CONFIGURE  (1 << 6)
     
    5557
    5658        /** Status register, 1 means interrupt is asserted (if enabled) */
    57         uint16_t usbsts;
     59        ioport16_t usbsts;
    5860#define UHCI_STATUS_HALTED (1 << 5)
    5961#define UHCI_STATUS_PROCESS_ERROR (1 << 4)
     
    6668
    6769        /** Interrupt enabled registers */
    68         uint16_t usbintr;
     70        ioport16_t usbintr;
    6971#define UHCI_INTR_SHORT_PACKET (1 << 3)
    7072#define UHCI_INTR_COMPLETE (1 << 2)
     
    7375
    7476        /** Register stores frame number used in SOF packet */
    75         uint16_t frnum;
     77        ioport16_t frnum;
    7678
    7779        /** Pointer(physical) to the Frame List */
    78         uint32_t flbaseadd;
     80        ioport32_t flbaseadd;
    7981
    8082        /** SOF modification to match external timers */
    81         uint8_t sofmod;
     83        ioport8_t sofmod;
     84
     85        PADD8[3];
     86        ioport16_t ports[];
    8287} uhci_regs_t;
    8388
     
    9095/** Main UHCI driver structure */
    9196typedef struct hc {
     97        uhci_rh_t rh;
    9298        /** Addresses of I/O registers */
    9399        uhci_regs_t *registers;
Note: See TracChangeset for help on using the changeset viewer.