| 1 |
|
| 2 |
|
| 3 |
#ifndef _PCI_EHCI_H_ |
| 4 |
#define _PCI_EHCI_H_ |
| 5 |
|
| 6 |
#include <device/device.h> |
| 7 |
#include <device/pci_type.h> |
| 8 |
#include <stdint.h> |
| 9 |
|
| 10 |
#define EHCI_BAR_INDEX 0x10 |
| 11 |
#define PCI_EHCI_CLASSCODE 0x0c0320 |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
pci_devfn_t pci_ehci_dbg_dev(unsigned int hcd_idx); |
| 17 |
|
| 18 |
u8 *pci_ehci_base_regs(pci_devfn_t dev); |
| 19 |
void pci_ehci_dbg_set_port(pci_devfn_t dev, unsigned int port); |
| 20 |
|
| 21 |
#if !CONFIG(USBDEBUG) |
| 22 |
#define pci_ehci_read_resources pci_dev_read_resources |
| 23 |
#else |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
struct device; |
| 33 |
void pci_ehci_read_resources(struct device *dev); |
| 34 |
#endif |
| 35 |
|
| 36 |
#endif |