fix the readwrite/readonly clashes for the pci_driver structs in the sis
code. This is trivial, I did it for the other components before. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
f32325ed8a
commit
83b52e7193
|
@ -31,8 +31,7 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include "sis966.h"
|
#include "sis966.h"
|
||||||
|
|
||||||
uint8_t SiS_SiS7502_init[6][3]={
|
uint8_t SiS_SiS7502_init[7][3]={
|
||||||
|
|
||||||
{0x04, 0xFF, 0x07},
|
{0x04, 0xFF, 0x07},
|
||||||
{0x2C, 0xFF, 0x39},
|
{0x2C, 0xFF, 0x39},
|
||||||
{0x2D, 0xFF, 0x10},
|
{0x2D, 0xFF, 0x10},
|
||||||
|
@ -493,7 +492,7 @@ static struct device_operations aza_audio_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver azaaudio_driver __pci_driver = {
|
static const struct pci_driver azaaudio_driver __pci_driver = {
|
||||||
.ops = &aza_audio_ops,
|
.ops = &aza_audio_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_AZA,
|
.device = PCI_DEVICE_ID_SIS_SIS966_AZA,
|
||||||
|
|
|
@ -48,7 +48,7 @@ static struct device_operations ht_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver ht_driver __pci_driver = {
|
static const struct pci_driver ht_driver __pci_driver = {
|
||||||
.ops = &ht_ops,
|
.ops = &ht_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_HT,
|
.device = PCI_DEVICE_ID_SIS_SIS966_HT,
|
||||||
|
|
|
@ -167,7 +167,7 @@ static struct device_operations ide_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver ide_driver __pci_driver = {
|
static const struct pci_driver ide_driver __pci_driver = {
|
||||||
.ops = &ide_ops,
|
.ops = &ide_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_IDE,
|
.device = PCI_DEVICE_ID_SIS_SIS966_IDE,
|
||||||
|
|
|
@ -397,39 +397,39 @@ static struct device_operations lpc_ops = {
|
||||||
// .enable = sis966_enable,
|
// .enable = sis966_enable,
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
static struct pci_driver lpc_driver __pci_driver = {
|
static const struct pci_driver lpc_driver __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver lpc_driver_pro __pci_driver = {
|
static const struct pci_driver lpc_driver_pro __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PRO,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PRO,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver lpc_driver_lpc2 __pci_driver = {
|
static const struct pci_driver lpc_driver_lpc2 __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_2,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_2,
|
||||||
};
|
};
|
||||||
static struct pci_driver lpc_driver_lpc3 __pci_driver = {
|
static const struct pci_driver lpc_driver_lpc3 __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_3,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_3,
|
||||||
};
|
};
|
||||||
static struct pci_driver lpc_driver_lpc4 __pci_driver = {
|
static const struct pci_driver lpc_driver_lpc4 __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_4,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_4,
|
||||||
};
|
};
|
||||||
static struct pci_driver lpc_driver_lpc5 __pci_driver = {
|
static const struct pci_driver lpc_driver_lpc5 __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_5,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_5,
|
||||||
};
|
};
|
||||||
static struct pci_driver lpc_driver_lpc6 __pci_driver = {
|
static const struct pci_driver lpc_driver_lpc6 __pci_driver = {
|
||||||
.ops = &lpc_ops,
|
.ops = &lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_6,
|
.device = PCI_DEVICE_ID_SIS_SIS966_LPC_6,
|
||||||
|
@ -444,7 +444,7 @@ static struct device_operations lpc_slave_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver lpc_driver_slave __pci_driver = {
|
static const struct pci_driver lpc_driver_slave __pci_driver = {
|
||||||
.ops = &lpc_slave_ops,
|
.ops = &lpc_slave_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_SLAVE,
|
.device = PCI_DEVICE_ID_SIS_SIS966_SLAVE,
|
||||||
|
|
|
@ -631,12 +631,12 @@ static struct device_operations nic_ops = {
|
||||||
// .enable = sis966_enable,
|
// .enable = sis966_enable,
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
static struct pci_driver nic_driver __pci_driver = {
|
static const struct pci_driver nic_driver __pci_driver = {
|
||||||
.ops = &nic_ops,
|
.ops = &nic_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_NIC1,
|
.device = PCI_DEVICE_ID_SIS_SIS966_NIC1,
|
||||||
};
|
};
|
||||||
static struct pci_driver nic_bridge_driver __pci_driver = {
|
static const struct pci_driver nic_bridge_driver __pci_driver = {
|
||||||
.ops = &nic_ops,
|
.ops = &nic_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_NIC_BRIDGE,
|
.device = PCI_DEVICE_ID_SIS_SIS966_NIC_BRIDGE,
|
||||||
|
|
|
@ -101,7 +101,7 @@ static struct device_operations pci_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver pci_driver __pci_driver = {
|
static const struct pci_driver pci_driver __pci_driver = {
|
||||||
.ops = &pci_ops,
|
.ops = &pci_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCI,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCI,
|
||||||
|
|
|
@ -58,27 +58,27 @@ static struct device_operations pcie_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver pciebc_driver __pci_driver = {
|
static const struct pci_driver pciebc_driver __pci_driver = {
|
||||||
.ops = &pcie_ops,
|
.ops = &pcie_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_B_C,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_B_C,
|
||||||
};
|
};
|
||||||
static struct pci_driver pciee_driver __pci_driver = {
|
static const struct pci_driver pciee_driver __pci_driver = {
|
||||||
.ops = &pcie_ops,
|
.ops = &pcie_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_E,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_E,
|
||||||
};
|
};
|
||||||
static struct pci_driver pciea_driver __pci_driver = {
|
static const struct pci_driver pciea_driver __pci_driver = {
|
||||||
.ops = &pcie_ops,
|
.ops = &pcie_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_A,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_A,
|
||||||
};
|
};
|
||||||
static struct pci_driver pcief_driver __pci_driver = {
|
static const struct pci_driver pcief_driver __pci_driver = {
|
||||||
.ops = &pcie_ops,
|
.ops = &pcie_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_F,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_F,
|
||||||
};
|
};
|
||||||
static struct pci_driver pcied_driver __pci_driver = {
|
static const struct pci_driver pcied_driver __pci_driver = {
|
||||||
.ops = &pcie_ops,
|
.ops = &pcie_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_D,
|
.device = PCI_DEVICE_ID_SIS_SIS966_PCIE_D,
|
||||||
|
|
|
@ -288,13 +288,13 @@ static struct device_operations sata_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver sata0_driver __pci_driver = {
|
static const struct pci_driver sata0_driver __pci_driver = {
|
||||||
.ops = &sata_ops,
|
.ops = &sata_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_SATA0,
|
.device = PCI_DEVICE_ID_SIS_SIS966_SATA0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver sata1_driver __pci_driver = {
|
static const struct pci_driver sata1_driver __pci_driver = {
|
||||||
.ops = &sata_ops,
|
.ops = &sata_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_SATA1,
|
.device = PCI_DEVICE_ID_SIS_SIS966_SATA1,
|
||||||
|
|
|
@ -146,7 +146,7 @@ static struct device_operations smbus_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
.ops_smbus_bus = &lops_smbus_bus,
|
.ops_smbus_bus = &lops_smbus_bus,
|
||||||
};
|
};
|
||||||
static struct pci_driver smbus_driver __pci_driver = {
|
static const struct pci_driver smbus_driver __pci_driver = {
|
||||||
.ops = &smbus_ops,
|
.ops = &smbus_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_SM2,
|
.device = PCI_DEVICE_ID_SIS_SIS966_SM2,
|
||||||
|
|
|
@ -107,7 +107,7 @@ static struct device_operations usb_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver usb_driver __pci_driver = {
|
static const struct pci_driver usb_driver __pci_driver = {
|
||||||
.ops = &usb_ops,
|
.ops = &usb_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_USB,
|
.device = PCI_DEVICE_ID_SIS_SIS966_USB,
|
||||||
|
|
|
@ -161,7 +161,7 @@ static struct device_operations usb2_ops = {
|
||||||
.ops_pci = &lops_pci,
|
.ops_pci = &lops_pci,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver usb2_driver __pci_driver = {
|
static const struct pci_driver usb2_driver __pci_driver = {
|
||||||
.ops = &usb2_ops,
|
.ops = &usb2_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS966_EHCI,
|
.device = PCI_DEVICE_ID_SIS_SIS966_EHCI,
|
||||||
|
|
|
@ -185,7 +185,7 @@ static struct device_operations sisnb_ops = {
|
||||||
.ops_pci = 0,
|
.ops_pci = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver sisnb_driver __pci_driver = {
|
static const struct pci_driver sisnb_driver __pci_driver = {
|
||||||
.ops = &sisnb_ops,
|
.ops = &sisnb_ops,
|
||||||
.vendor = PCI_VENDOR_ID_SIS,
|
.vendor = PCI_VENDOR_ID_SIS,
|
||||||
.device = PCI_DEVICE_ID_SIS_SIS761,
|
.device = PCI_DEVICE_ID_SIS_SIS761,
|
||||||
|
|
Loading…
Reference in New Issue