Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 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 | { |
Ronald G. Minnich | 3b00963 | 2004-08-24 22:27:55 +0000 | [diff] [blame] | 10 | |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 11 | |
| 12 | #if 0 |
Ronald G. Minnich | 3b00963 | 2004-08-24 22:27:55 +0000 | [diff] [blame] | 13 | uint32_t cmd; |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 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 | |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame^] | 35 | static const struct pci_driver usb_driver_1 __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 36 | .ops = &usb_ops, |
| 37 | .vendor = PCI_VENDOR_ID_INTEL, |
| 38 | .device = PCI_DEVICE_ID_INTEL_82801ER_1D0, |
| 39 | }; |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame^] | 40 | static const struct pci_driver usb_driver_2 __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 41 | .ops = &usb_ops, |
| 42 | .vendor = PCI_VENDOR_ID_INTEL, |
| 43 | .device = PCI_DEVICE_ID_INTEL_82801ER_1D1, |
| 44 | }; |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame^] | 45 | static const struct pci_driver usb_driver_3 __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 46 | .ops = &usb_ops, |
| 47 | .vendor = PCI_VENDOR_ID_INTEL, |
| 48 | .device = PCI_DEVICE_ID_INTEL_82801ER_1D2, |
| 49 | }; |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame^] | 50 | static const struct pci_driver usb_driver_4 __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 51 | .ops = &usb_ops, |
| 52 | .vendor = PCI_VENDOR_ID_INTEL, |
| 53 | .device = PCI_DEVICE_ID_INTEL_82801ER_1D3, |
| 54 | }; |
| 55 | |