zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; version 2 of the License. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 13 | */ |
| 14 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 15 | #include <device/device.h> |
| 16 | #include <device/pci.h> |
| 17 | #include <device/pci_ids.h> |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 18 | #include "hudson.h" |
| 19 | |
| 20 | static void ide_init(struct device *dev) |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | static struct pci_operations lops_pci = { |
| 25 | .set_subsystem = pci_dev_set_subsystem, |
| 26 | }; |
| 27 | |
| 28 | static struct device_operations ide_ops = { |
| 29 | .read_resources = pci_dev_read_resources, |
| 30 | .set_resources = pci_dev_set_resources, |
| 31 | .enable_resources = pci_dev_enable_resources, |
| 32 | .init = ide_init, |
| 33 | .scan_bus = 0, |
| 34 | .ops_pci = &lops_pci, |
| 35 | }; |
| 36 | |
| 37 | static const struct pci_driver ide_driver __pci_driver = { |
| 38 | .ops = &ide_ops, |
| 39 | .vendor = PCI_VENDOR_ID_AMD, |
Kyösti Mälkki | 9d9a552 | 2016-11-19 22:14:59 +0200 | [diff] [blame] | 40 | .device = PCI_DEVICE_ID_AMD_SB900_IDE, |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 41 | }; |