Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes in uspace/drv/ohci/pci.c [3da17644:4125b7d] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/pci.c

    r3da17644 r4125b7d  
    4646
    4747#include "pci.h"
     48
     49#define PAGE_SIZE_MASK 0xfffff000
     50
     51#define HCC_PARAMS_OFFSET 0x8
     52#define HCC_PARAMS_EECP_MASK 0xff
     53#define HCC_PARAMS_EECP_OFFSET 8
     54
     55#define CMD_OFFSET 0x0
     56#define CONFIGFLAG_OFFSET 0x40
     57
     58#define USBCMD_RUN 1
     59
     60#define USBLEGSUP_OFFSET 0
     61#define USBLEGSUP_BIOS_CONTROL (1 << 16)
     62#define USBLEGSUP_OS_CONTROL (1 << 24)
     63#define USBLEGCTLSTS_OFFSET 4
     64
     65#define DEFAULT_WAIT 10000
     66#define WAIT_STEP 10
    4867
    4968/** Get address of registers and IRQ for given device.
     
    127146int pci_enable_interrupts(ddf_dev_t *device)
    128147{
     148        return ENOTSUP;
    129149        int parent_phone =
    130150            devman_parent_device_connect(device->handle, IPC_FLAG_BLOCKING);
Note: See TracChangeset for help on using the changeset viewer.