3fd61673b2a0228053054d949b6b421c143972f4
[coreboot.git] / src / southbridge / intel / i82801dbm / i82801dbm_usb.c
1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <device/pci_ids.h>
5 #include <device/pci_ops.h>
6 #include "i82801dbm.h"
7
8 static void usb_init(struct device *dev)
9 {
10
11
12 #if 0
13         uint32_t cmd;
14         printk_debug("USB: Setting up controller.. ");
15         cmd = pci_read_config32(dev, PCI_COMMAND);
16         pci_write_config32(dev, PCI_COMMAND, 
17                 cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | 
18                 PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE);
19
20
21         printk_debug("done.\n");
22 #endif
23
24 }
25
26 static struct device_operations usb_ops  = {
27         .read_resources   = pci_dev_read_resources,
28         .set_resources    = pci_dev_set_resources,
29         .enable_resources = pci_dev_enable_resources,
30         .init             = usb_init,
31         .scan_bus         = 0,
32         .enable           = i82801dbm_enable,
33 };
34
35 static const struct pci_driver usb_driver_1 __pci_driver = {
36         .ops    = &usb_ops,
37         .vendor = PCI_VENDOR_ID_INTEL,
38         .device = PCI_DEVICE_ID_INTEL_82801DBM_USB1,
39 };
40 static const struct pci_driver usb_driver_2 __pci_driver = {
41         .ops    = &usb_ops,
42         .vendor = PCI_VENDOR_ID_INTEL,
43         .device = PCI_DEVICE_ID_INTEL_82801DBM_USB2,
44 };
45 static const struct pci_driver usb_driver_3 __pci_driver = {
46         .ops    = &usb_ops,
47         .vendor = PCI_VENDOR_ID_INTEL,
48         .device = PCI_DEVICE_ID_INTEL_82801DBM_USB3,
49 };