2 * This file is part of the coreboot project.
4 * Copyright (C) 2010 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
20 #include <console/console.h>
21 #include <device/device.h>
22 #include <device/pci.h>
23 #include <device/pci_ids.h>
24 #include <device/pci_ops.h>
27 static void ide_init(struct device
*dev
)
31 static struct pci_operations lops_pci
= {
32 .set_subsystem
= pci_dev_set_subsystem
,
35 static struct device_operations ide_ops
= {
36 .read_resources
= pci_dev_read_resources
,
37 .set_resources
= pci_dev_set_resources
,
38 .enable_resources
= pci_dev_enable_resources
,
44 static const struct pci_driver ide_driver __pci_driver
= {
46 .vendor
= PCI_VENDOR_ID_AMD
,
47 .device
= PCI_DEVICE_ID_ATI_SB900_IDE
,