blob: 2b65617e71adad5bcd7062f2b7c3b14972f5a77a [file] [log] [blame]
Michael Xie7586cef2008-09-22 13:11:39 +00001/*
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 Xie7586cef2008-09-22 13:11:39 +000014 */
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
23static struct pci_operations lops_pci = {
24 .set_subsystem = pci_dev_set_subsystem,
25};
26
27static 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 Reinauer8e96ba22010-03-16 23:33:29 +000037static const struct pci_driver ac97audio_driver __pci_driver = {
Michael Xie7586cef2008-09-22 13:11:39 +000038 .ops = &ac97audio_ops,
39 .vendor = PCI_VENDOR_ID_ATI,
40 .device = PCI_DEVICE_ID_ATI_SB600_ACI,
41};
42
43static 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 Reinauer8e96ba22010-03-16 23:33:29 +000053static const struct pci_driver ac97modem_driver __pci_driver = {
Michael Xie7586cef2008-09-22 13:11:39 +000054 .ops = &ac97modem_ops,
55 .vendor = PCI_VENDOR_ID_ATI,
56 .device = PCI_DEVICE_ID_ATI_SB600_MCI,
57};