pci drivers should be const.
[coreboot.git] / src / southbridge / amd / sb600 / sb600_ac97.c
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.
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
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #include <console/console.h>
21 #include <device/device.h>
22 #include <device/pci.h>
23 #include <device/pci_ids.h>
24 #include <device/pci_ops.h>
25 #include "sb600.h"
26
27 static struct pci_operations lops_pci = {
28         .set_subsystem = pci_dev_set_subsystem,
29 };
30
31 static struct device_operations ac97audio_ops = {
32         .read_resources = pci_dev_read_resources,
33         .set_resources = pci_dev_set_resources,
34         .enable_resources = pci_dev_enable_resources,
35 /*      .enable           = sb600_enable, */
36         .init = 0,
37         .scan_bus = 0,
38         .ops_pci = &lops_pci,
39 };
40
41 static const struct pci_driver ac97audio_driver __pci_driver = {
42         .ops = &ac97audio_ops,
43         .vendor = PCI_VENDOR_ID_ATI,
44         .device = PCI_DEVICE_ID_ATI_SB600_ACI,
45 };
46
47 static struct device_operations ac97modem_ops = {
48         .read_resources = pci_dev_read_resources,
49         .set_resources = pci_dev_set_resources,
50         .enable_resources = pci_dev_enable_resources,
51 /*      .enable           = sb600_enable, */
52         .init = 0,
53         .scan_bus = 0,
54         .ops_pci = &lops_pci,
55 };
56
57 static const struct pci_driver ac97modem_driver __pci_driver = {
58         .ops = &ac97modem_ops,
59         .vendor = PCI_VENDOR_ID_ATI,
60         .device = PCI_DEVICE_ID_ATI_SB600_MCI,
61 };