]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Make PCI ID tables const so as not to trigger a warning about a large
authorMichael Brown <mcb30@etherboot.org>
Tue, 3 May 2005 12:36:06 +0000 (12:36 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 3 May 2005 12:36:06 +0000 (12:36 +0000)
symbol.

src/drivers/net/tlan.c
src/drivers/net/tulip.c

index 4ae6f96df308a18b91d40523f2a33c1ec9219922..3c773b6a8580cd73f7dae42643b1e44b1a43609f 100644 (file)
@@ -125,7 +125,7 @@ struct pci_id_info {
        u16 addrOfs;            /* Address Offset */
 };
 
-static struct pci_id_info tlan_pci_tbl[] = {
+static const struct pci_id_info tlan_pci_tbl[] = {
        {"Compaq Netelligent 10 T PCI UTP", NETEL10,
         {0xae340e11, 0xffffffff, 0, 0, 0, 0},
         TLAN_ADAPTER_ACTIVITY_LED, 0x83},
index d874aed0522d0f433da1b8adabec7f305c96f403..28e38d952852ef0adf63e0fc5bc071e27e90aa96 100644 (file)
@@ -180,7 +180,7 @@ struct pci_id_info {
     int drv_flags;                              /* Driver use, intended as capability flags. */
 };
 
-static struct pci_id_info pci_id_tbl[] = {
+static const struct pci_id_info pci_id_tbl[] = {
     { "Digital DC21040 Tulip", { 0x00021011, 0xffffffff, 0, 0, 0, 0 },
       TULIP_IOTYPE, 0x80, DC21040 },
     { "Digital DC21041 Tulip", { 0x00141011, 0xffffffff, 0, 0, 0, 0 },