blob: 5b7465da05321500315ad3286d3bf90dafb886e3 [file] [log] [blame]
Ronald G. Minnich182615d2004-08-24 16:20:46 +00001//2003 Copywright Tyan
2
3#include <console/console.h>
4#include <device/device.h>
5#include <device/pci.h>
6#include <device/pci_ids.h>
7#include <device/pci_ops.h>
8#include "i82801dbm.h"
9
10static void usb2_init(struct device *dev)
11{
12 uint32_t cmd;
13
14#if 0
15 printk_debug("USB: Setting up controller.. ");
16 cmd = pci_read_config32(dev, PCI_COMMAND);
17 pci_write_config32(dev, PCI_COMMAND,
18 cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
19 PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE);
20
21
22 printk_debug("done.\n");
23#endif
24}
25
26static struct device_operations usb2_ops = {
27 .read_resources = pci_dev_read_resources,
28 .set_resources = pci_dev_set_resources,
29 .enable_resources = pci_dev_enable_resources,
30 .init = usb2_init,
31 .scan_bus = 0,
32 .enable = i82801dbm_enable,
33};
34
35static struct pci_driver usb2_driver __pci_driver = {
36 .ops = &usb2_ops,
37 .vendor = PCI_VENDOR_ID_INTEL,
38 .device = PCI_DEVICE_ID_INTEL_82801ER_1D7,
39};