Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) 2003 Linux Networx |
| 3 | */ |
| 4 | #include <console/console.h> |
| 5 | #include <device/device.h> |
| 6 | #include <device/pci.h> |
| 7 | #include <device/pci_ids.h> |
| 8 | #include <device/pci_ops.h> |
Stefan Reinauer | 138be83 | 2010-02-27 01:50:21 +0000 | [diff] [blame] | 9 | #include "i82801dx.h" |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 10 | |
| 11 | |
| 12 | static struct device_operations ac97audio_ops = { |
| 13 | .read_resources = pci_dev_read_resources, |
| 14 | .set_resources = pci_dev_set_resources, |
| 15 | .enable_resources = pci_dev_enable_resources, |
Stefan Reinauer | 138be83 | 2010-02-27 01:50:21 +0000 | [diff] [blame] | 16 | .enable = i82801dx_enable, |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 17 | .init = 0, |
| 18 | .scan_bus = 0, |
| 19 | }; |
| 20 | |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame] | 21 | static const struct pci_driver ac97audio_driver __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 22 | .ops = &ac97audio_ops, |
| 23 | .vendor = PCI_VENDOR_ID_INTEL, |
Uwe Hermann | a29ec06 | 2007-11-04 03:21:37 +0000 | [diff] [blame] | 24 | .device = PCI_DEVICE_ID_INTEL_82801DBM_AC97_AUDIO, |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | |
| 28 | static struct device_operations ac97modem_ops = { |
| 29 | .read_resources = pci_dev_read_resources, |
| 30 | .set_resources = pci_dev_set_resources, |
| 31 | .enable_resources = pci_dev_enable_resources, |
Stefan Reinauer | 138be83 | 2010-02-27 01:50:21 +0000 | [diff] [blame] | 32 | .enable = i82801dx_enable, |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 33 | .init = 0, |
| 34 | .scan_bus = 0, |
| 35 | }; |
| 36 | |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame] | 37 | static const struct pci_driver ac97modem_driver __pci_driver = { |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 38 | .ops = &ac97modem_ops, |
| 39 | .vendor = PCI_VENDOR_ID_INTEL, |
Uwe Hermann | a29ec06 | 2007-11-04 03:21:37 +0000 | [diff] [blame] | 40 | .device = PCI_DEVICE_ID_INTEL_82801DBM_AC97_MODEM, |
Ronald G. Minnich | 182615d | 2004-08-24 16:20:46 +0000 | [diff] [blame] | 41 | }; |