Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 2 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 6 | #include "hudson.h" |
| 7 | |
| 8 | static void ide_init(struct device *dev) |
| 9 | { |
| 10 | } |
| 11 | |
| 12 | static struct pci_operations lops_pci = { |
| 13 | .set_subsystem = pci_dev_set_subsystem, |
| 14 | }; |
| 15 | |
| 16 | static struct device_operations ide_ops = { |
| 17 | .read_resources = pci_dev_read_resources, |
| 18 | .set_resources = pci_dev_set_resources, |
| 19 | .enable_resources = pci_dev_enable_resources, |
| 20 | .init = ide_init, |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 21 | .ops_pci = &lops_pci, |
| 22 | }; |
| 23 | |
| 24 | static const struct pci_driver ide_driver __pci_driver = { |
| 25 | .ops = &ide_ops, |
| 26 | .vendor = PCI_VENDOR_ID_AMD, |
Kyösti Mälkki | 9d9a552 | 2016-11-19 22:14:59 +0200 | [diff] [blame] | 27 | .device = PCI_DEVICE_ID_AMD_SB900_IDE, |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 28 | }; |