Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / southbridge / intel / i82801cx / i82801cx_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 "i82801cx.h"
7
8 static void usb_init(struct device *dev)
9 {
10
11 #if 0
12         uint32_t cmd;
13         printk(BIOS_DEBUG, "USB: Setting up controller.. ");
14         cmd = pci_read_config32(dev, PCI_COMMAND);
15         pci_write_config32(dev, PCI_COMMAND,
16                 cmd | PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
17                 PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE);
18
19
20         printk(BIOS_DEBUG, "done.\n");
21 #endif
22
23 }
24
25 static struct device_operations usb_ops  = {
26         .read_resources   = pci_dev_read_resources,
27         .set_resources    = pci_dev_set_resources,
28         .enable_resources = pci_dev_enable_resources,
29         .init             = usb_init,
30         .scan_bus         = 0,
31         .enable           = i82801cx_enable,
32 };
33
34 static const struct pci_driver usb_driver_1 __pci_driver = {
35         .ops    = &usb_ops,
36         .vendor = PCI_VENDOR_ID_INTEL,
37         .device = PCI_DEVICE_ID_INTEL_82801CA_USB1,
38 };
39 static const struct pci_driver usb_driver_2 __pci_driver = {
40         .ops    = &usb_ops,
41         .vendor = PCI_VENDOR_ID_INTEL,
42         .device = PCI_DEVICE_ID_INTEL_82801CA_USB2,
43 };
44 static const struct pci_driver usb_driver_3 __pci_driver = {
45         .ops    = &usb_ops,
46         .vendor = PCI_VENDOR_ID_INTEL,
47         .device = PCI_DEVICE_ID_INTEL_82801CA_USB3,
48 };
49