Ronald G. Minnich | 2bb216a | 2006-01-27 23:46:30 +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 "cs5535.h" |
| 7 | |
| 8 | static void ide_init(struct device *dev) |
| 9 | { |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 10 | printk(BIOS_SPEW, "cs5535_ide: %s\n", __func__); |
Ronald G. Minnich | 2bb216a | 2006-01-27 23:46:30 +0000 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | static void ide_enable(struct device *dev) |
| 14 | { |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 15 | printk(BIOS_SPEW, "cs5535_ide: %s\n", __func__); |
Ronald G. Minnich | 2bb216a | 2006-01-27 23:46:30 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | static struct device_operations ide_ops = { |
| 19 | .read_resources = pci_dev_read_resources, |
| 20 | .set_resources = pci_dev_set_resources, |
| 21 | .enable_resources = pci_dev_enable_resources, |
| 22 | .init = ide_init, |
| 23 | .enable = ide_enable, |
| 24 | }; |
| 25 | |
Stefan Reinauer | f1cf1f7 | 2007-10-24 09:08:58 +0000 | [diff] [blame] | 26 | static const struct pci_driver ide_driver __pci_driver = { |
Ronald G. Minnich | 2bb216a | 2006-01-27 23:46:30 +0000 | [diff] [blame] | 27 | .ops = &ide_ops, |
Ronald G. Minnich | 0f1e9ea | 2006-01-28 20:05:37 +0000 | [diff] [blame] | 28 | .vendor = PCI_VENDOR_ID_NS, |
| 29 | .device = PCI_DEVICE_ID_NS_CS5535_IDE, |
Ronald G. Minnich | 2bb216a | 2006-01-27 23:46:30 +0000 | [diff] [blame] | 30 | }; |