summaryrefslogtreecommitdiffstats
path: root/sys/dev/xe
diff options
context:
space:
mode:
authorrsm <rsm@FreeBSD.org>2003-11-02 23:29:33 +0000
committerrsm <rsm@FreeBSD.org>2003-11-02 23:29:33 +0000
commit4294dd364139ab21a5d070c4543ba32782b11ce2 (patch)
tree76ad71d885af0756aa2dbeee9ce9023f0c28bd66 /sys/dev/xe
parent83375877b4b96929e9132ad10789d094de19422e (diff)
downloadFreeBSD-src-4294dd364139ab21a5d070c4543ba32782b11ce2.zip
FreeBSD-src-4294dd364139ab21a5d070c4543ba32782b11ce2.tar.gz
Constify a few more strings that were hidden behind XE_DEBUG define.
Remove XE_VENDOR_ID_* defines in favour of PCMCIA_VENDOR_*. Reviewed by: imp (mentor)
Diffstat (limited to 'sys/dev/xe')
-rw-r--r--sys/dev/xe/if_xe_pccard.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/sys/dev/xe/if_xe_pccard.c b/sys/dev/xe/if_xe_pccard.c
index e2b7541..d32697b 100644
--- a/sys/dev/xe/if_xe_pccard.c
+++ b/sys/dev/xe/if_xe_pccard.c
@@ -61,21 +61,15 @@ __FBSDID("$FreeBSD$");
*/
#define XE_DEBUG 0
-#define XE_VENDOR_ID_XIRCOM 0x0105
-#define XE_VENDOR_ID_COMPAQ_1 0x0138
-#define XE_VENDOR_ID_COMPAQ_2 0x0183
-#define XE_VENDOR_ID_INTEL 0x0089
-#define XE_VENDOR_ID_UNKNOWN 0
-
struct xe_vendor_table {
u_int32_t vendor_id;
char *vendor_desc;
} xe_vendor_devs[] = {
- { XE_VENDOR_ID_XIRCOM, "Xircom" },
- { XE_VENDOR_ID_COMPAQ_1, "Compaq" },
- { XE_VENDOR_ID_COMPAQ_2, "Compaq" }, /* Maybe Paralon Techologies, Inc */
- { XE_VENDOR_ID_INTEL, "Intel" },
- { XE_VENDOR_ID_UNKNOWN, "Unknown" }
+ { PCMCIA_VENDOR_XIRCOM, "Xircom" },
+ { PCMCIA_VENDOR_COMPAQ, "Compaq" },
+ { PCMCIA_VENDOR_COMPAQ2, "Compaq" }, /* Maybe Paralon Techologies, Inc */
+ { PCMCIA_VENDOR_INTEL, "Intel" },
+ { 0, "Unknown" }
};
#define XE_CARD_TYPE_FLAGS_NO 0x0
@@ -224,9 +218,9 @@ xe_pccard_probe(device_t dev)
int i;
#if XE_DEBUG > 1
- char* vendor_str = NULL;
- char* product_str = NULL;
- char* cis4_str = NULL;
+ const char* vendor_str = NULL;
+ const char* product_str = NULL;
+ const char* cis4_str = NULL;
device_printf(dev, "pccard_probe\n");
pccard_get_vendor(dev, &vendor);
pccard_get_product(dev, &prodid);
OpenPOWER on IntegriCloud