Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2008 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. |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <console/console.h> |
| 17 | #include <device/device.h> |
| 18 | #include <device/pci.h> |
| 19 | #include <device/pci_ids.h> |
| 20 | #include <device/pci_ops.h> |
| 21 | #include "sb600.h" |
| 22 | |
| 23 | static struct pci_operations lops_pci = { |
| 24 | .set_subsystem = pci_dev_set_subsystem, |
| 25 | }; |
| 26 | |
| 27 | static struct device_operations ac97audio_ops = { |
| 28 | .read_resources = pci_dev_read_resources, |
| 29 | .set_resources = pci_dev_set_resources, |
| 30 | .enable_resources = pci_dev_enable_resources, |
| 31 | /* .enable = sb600_enable, */ |
| 32 | .init = 0, |
| 33 | .scan_bus = 0, |
| 34 | .ops_pci = &lops_pci, |
| 35 | }; |
| 36 | |
Stefan Reinauer | 8e96ba2 | 2010-03-16 23:33:29 +0000 | [diff] [blame] | 37 | static const struct pci_driver ac97audio_driver __pci_driver = { |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 38 | .ops = &ac97audio_ops, |
| 39 | .vendor = PCI_VENDOR_ID_ATI, |
| 40 | .device = PCI_DEVICE_ID_ATI_SB600_ACI, |
| 41 | }; |
| 42 | |
| 43 | static struct device_operations ac97modem_ops = { |
| 44 | .read_resources = pci_dev_read_resources, |
| 45 | .set_resources = pci_dev_set_resources, |
| 46 | .enable_resources = pci_dev_enable_resources, |
| 47 | /* .enable = sb600_enable, */ |
| 48 | .init = 0, |
| 49 | .scan_bus = 0, |
| 50 | .ops_pci = &lops_pci, |
| 51 | }; |
| 52 | |
Stefan Reinauer | 8e96ba2 | 2010-03-16 23:33:29 +0000 | [diff] [blame] | 53 | static const struct pci_driver ac97modem_driver __pci_driver = { |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 54 | .ops = &ac97modem_ops, |
| 55 | .vendor = PCI_VENDOR_ID_ATI, |
| 56 | .device = PCI_DEVICE_ID_ATI_SB600_MCI, |
| 57 | }; |