diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-14 05:47:29 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-14 05:47:29 +0000 |
commit | 5e557fc6bd95db1b1db3232e918d1477b60ea15d (patch) | |
tree | 0b23397a63155d259042171997a0d2a53e18851d /sys/pci/pcisupport.c | |
parent | 6d407291a85c950fa545a5200d6a66fb4748d70c (diff) | |
download | FreeBSD-src-5e557fc6bd95db1b1db3232e918d1477b60ea15d.zip FreeBSD-src-5e557fc6bd95db1b1db3232e918d1477b60ea15d.tar.gz |
pci_device pd_probe function changed from returning char * to returning
const char *. Originally I was going to add casts from const char * to
char * in some of the pci device drivers, but the reality is that the
pci device probes return constant quoted strings.
Diffstat (limited to 'sys/pci/pcisupport.c')
-rw-r--r-- | sys/pci/pcisupport.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c index f79cb83..5311b23 100644 --- a/sys/pci/pcisupport.c +++ b/sys/pci/pcisupport.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcisupport.c,v 1.77 1998/12/07 21:58:48 archie Exp $ +** $Id: pcisupport.c,v 1.78 1998/12/09 01:33:03 eivind Exp $ ** ** Device driver for DEC/INTEL PCI chipsets. ** @@ -62,7 +62,7 @@ **--------------------------------------------------------- */ -static char* chipset_probe (pcici_t tag, pcidi_t type); +static const char* chipset_probe (pcici_t tag, pcidi_t type); static void chipset_attach(pcici_t tag, int unit); static u_long chipset_count; @@ -161,7 +161,7 @@ fixwsc_natoma(pcici_t tag) } -static char* +static const char* chipset_probe (pcici_t tag, pcidi_t type) { unsigned rev; @@ -845,7 +845,7 @@ chipset_attach (pcici_t config_id, int unit) **--------------------------------------------------------- */ -static char* vga_probe (pcici_t tag, pcidi_t type); +static const char* vga_probe (pcici_t tag, pcidi_t type); static void vga_attach (pcici_t tag, int unit); static u_long vga_count; @@ -859,7 +859,7 @@ static struct pci_device vga_device = { DATA_SET (pcidevice_set, vga_device); -static char* vga_probe (pcici_t tag, pcidi_t typea) +static const char* vga_probe (pcici_t tag, pcidi_t typea) { int data = pci_conf_read(tag, PCI_CLASS_REG); u_int id = pci_conf_read(tag, PCI_ID_REG); @@ -1196,7 +1196,7 @@ static void vga_attach (pcici_t tag, int unit) **--------------------------------------------------------- */ -static char* lkm_probe (pcici_t tag, pcidi_t type); +static const char* lkm_probe (pcici_t tag, pcidi_t type); static void lkm_attach (pcici_t tag, int unit); static u_long lkm_count; @@ -1210,7 +1210,7 @@ static struct pci_device lkm_device = { DATA_SET (pcidevice_set, lkm_device); -static char* +static const char* lkm_probe (pcici_t tag, pcidi_t type) { /* @@ -1231,7 +1231,7 @@ lkm_attach (pcici_t tag, int unit) **--------------------------------------------------------- */ -static char* ign_probe (pcici_t tag, pcidi_t type); +static const char* ign_probe (pcici_t tag, pcidi_t type); static void ign_attach (pcici_t tag, int unit); static u_long ign_count; @@ -1245,7 +1245,7 @@ static struct pci_device ign_device = { DATA_SET (pcidevice_set, ign_device); -static char* +static const char* ign_probe (pcici_t tag, pcidi_t type) { switch (type) { |