blob: 69d95912d8851323f51be9e23baf37f967c3d74c [file] [log] [blame]
zbao246e84b2012-07-13 18:47:03 +08001/*
2 * This file is part of the coreboot project.
3 *
zbao246e84b2012-07-13 18:47:03 +08004 *
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.
zbao246e84b2012-07-13 18:47:03 +080013 */
14
zbao246e84b2012-07-13 18:47:03 +080015#include <device/device.h>
16#include <device/pci.h>
17#include <device/pci_ids.h>
zbao246e84b2012-07-13 18:47:03 +080018#include "hudson.h"
19
20static void ide_init(struct device *dev)
21{
22}
23
24static struct pci_operations lops_pci = {
25 .set_subsystem = pci_dev_set_subsystem,
26};
27
28static 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
37static const struct pci_driver ide_driver __pci_driver = {
38 .ops = &ide_ops,
39 .vendor = PCI_VENDOR_ID_AMD,
Kyösti Mälkki9d9a5522016-11-19 22:14:59 +020040 .device = PCI_DEVICE_ID_AMD_SB900_IDE,
zbao246e84b2012-07-13 18:47:03 +080041};