zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2010 Advanced Micro Devices, Inc. |
| 5 | * |
| 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. |
| 9 | * |
| 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. |
| 14 | * |
| 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 |
Paul Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #include <console/console.h> |
| 21 | #include <device/device.h> |
| 22 | #include <delay.h> |
| 23 | #include <device/pci.h> |
| 24 | #include <device/pci_ids.h> |
| 25 | #include <device/pci_ops.h> |
| 26 | #include <arch/io.h> |
| 27 | #include "hudson.h" |
| 28 | |
| 29 | |
| 30 | static void sata_init(struct device *dev) |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | static struct pci_operations lops_pci = { |
| 35 | /* .set_subsystem = pci_dev_set_subsystem, */ |
| 36 | }; |
| 37 | |
| 38 | static struct device_operations sata_ops = { |
| 39 | .read_resources = pci_dev_read_resources, |
| 40 | .set_resources = pci_dev_set_resources, |
| 41 | .enable_resources = pci_dev_enable_resources, |
| 42 | .init = sata_init, |
| 43 | .scan_bus = 0, |
| 44 | .ops_pci = &lops_pci, |
| 45 | }; |
| 46 | |
| 47 | static const struct pci_driver sata0_driver __pci_driver = { |
| 48 | .ops = &sata_ops, |
| 49 | .vendor = PCI_VENDOR_ID_AMD, |
| 50 | .device = PCI_DEVICE_ID_ATI_SB900_SATA, |
| 51 | }; |