2 * This file is part of the LinuxBIOS project.
4 * Copyright (C) 2005 Tyan Computer
5 * (Written by Yinghai Lu <yinghailu@gmail.com> for Tyan Computer)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include <console/console.h>
23 #include <device/device.h>
24 #include <device/pci.h>
25 #include <device/pci_ids.h>
28 static struct device_operations ac97_ops = {
29 .read_resources = pci_dev_read_resources,
30 .set_resources = pci_dev_set_resources,
31 .enable_resources = pci_dev_enable_resources,
34 .enable = i82801xx_enable,
38 static const struct pci_driver i82801aa_ac97_audio __pci_driver = {
40 .vendor = PCI_VENDOR_ID_INTEL,
44 static const struct pci_driver i82801aa_ac97_modem __pci_driver = {
46 .vendor = PCI_VENDOR_ID_INTEL,
51 static const struct pci_driver i82801ab_ac97_audio __pci_driver = {
53 .vendor = PCI_VENDOR_ID_INTEL,
57 static const struct pci_driver i82801ab_ac97_modem __pci_driver = {
59 .vendor = PCI_VENDOR_ID_INTEL,
64 static const struct pci_driver i82801ba_ac97_audio __pci_driver = {
66 .vendor = PCI_VENDOR_ID_INTEL,
70 static const struct pci_driver i82801ba_ac97_modem __pci_driver = {
72 .vendor = PCI_VENDOR_ID_INTEL,
77 static const struct pci_driver i82801ca_ac97_audio __pci_driver = {
79 .vendor = PCI_VENDOR_ID_INTEL,
83 static const struct pci_driver i82801ca_ac97_modem __pci_driver = {
85 .vendor = PCI_VENDOR_ID_INTEL,
89 /* 82801DB & 82801DBM */
90 static const struct pci_driver i82801db_ac97_audio __pci_driver = {
92 .vendor = PCI_VENDOR_ID_INTEL,
96 static const struct pci_driver i82801db_ac97_modem __pci_driver = {
98 .vendor = PCI_VENDOR_ID_INTEL,
102 /* 82801EB & 82801ER */
103 static const struct pci_driver i82801ex_ac97_audio __pci_driver = {
105 .vendor = PCI_VENDOR_ID_INTEL,
109 static const struct pci_driver i82801ex_ac97_modem __pci_driver = {
111 .vendor = PCI_VENDOR_ID_INTEL,