Ever wondered where those "setting incorrect section attributes for
[coreboot.git] / src / southbridge / intel / i82801xx / i82801xx_ac97.c
1 /*
2  * This file is part of the LinuxBIOS project.
3  *
4  * Copyright (C) 2005 Tyan Computer
5  * (Written by Yinghai Lu <yinghailu@gmail.com> for Tyan Computer)
6  *
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.
11  *
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.
16  *
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
20  */
21
22 #include <console/console.h>
23 #include <device/device.h>
24 #include <device/pci.h>
25 #include <device/pci_ids.h>
26 #include "i82801xx.h"
27
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,
32         .init                   = 0,
33         .scan_bus               = 0,
34         .enable                 = i82801xx_enable,
35 };
36
37 /* 82801AA */
38 static const struct pci_driver i82801aa_ac97_audio __pci_driver = {
39         .ops    = &ac97_ops,
40         .vendor = PCI_VENDOR_ID_INTEL,
41         .device = 0x2415,
42 };
43
44 static const struct pci_driver i82801aa_ac97_modem __pci_driver = {
45         .ops    = &ac97_ops,
46         .vendor = PCI_VENDOR_ID_INTEL,
47         .device = 0x2416,
48 };
49
50 /* 82801AB */
51 static const struct pci_driver i82801ab_ac97_audio __pci_driver = {
52         .ops    = &ac97_ops,
53         .vendor = PCI_VENDOR_ID_INTEL,
54         .device = 0x2425,
55 };
56
57 static const struct pci_driver i82801ab_ac97_modem __pci_driver = {
58         .ops    = &ac97_ops,
59         .vendor = PCI_VENDOR_ID_INTEL,
60         .device = 0x2426,
61 };
62
63 /* 82801BA */
64 static const struct pci_driver i82801ba_ac97_audio __pci_driver = {
65         .ops    = &ac97_ops,
66         .vendor = PCI_VENDOR_ID_INTEL,
67         .device = 0x2445,
68 };
69
70 static const struct pci_driver i82801ba_ac97_modem __pci_driver = {
71         .ops    = &ac97_ops,
72         .vendor = PCI_VENDOR_ID_INTEL,
73         .device = 0x2446,
74 };
75
76 /* 82801CA */
77 static const struct pci_driver i82801ca_ac97_audio __pci_driver = {
78         .ops    = &ac97_ops,
79         .vendor = PCI_VENDOR_ID_INTEL,
80         .device = 0x2485,
81 };
82
83 static const struct pci_driver i82801ca_ac97_modem __pci_driver = {
84         .ops    = &ac97_ops,
85         .vendor = PCI_VENDOR_ID_INTEL,
86         .device = 0x2486,
87 };
88
89 /* 82801DB & 82801DBM */
90 static const struct pci_driver i82801db_ac97_audio __pci_driver = {
91         .ops    = &ac97_ops,
92         .vendor = PCI_VENDOR_ID_INTEL,
93         .device = 0x24c5,
94 };
95
96 static const struct pci_driver i82801db_ac97_modem __pci_driver = {
97         .ops    = &ac97_ops,
98         .vendor = PCI_VENDOR_ID_INTEL,
99         .device = 0x24c6,
100 };
101
102 /* 82801EB & 82801ER */
103 static const struct pci_driver i82801ex_ac97_audio __pci_driver = {
104         .ops    = &ac97_ops,
105         .vendor = PCI_VENDOR_ID_INTEL,
106         .device = 0x24d5,
107 };
108
109 static const struct pci_driver i82801ex_ac97_modem __pci_driver = {
110         .ops    = &ac97_ops,
111         .vendor = PCI_VENDOR_ID_INTEL,
112         .device = 0x24d6,
113 };