diff options
author | nate <nate@FreeBSD.org> | 1997-12-02 22:27:58 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1997-12-02 22:27:58 +0000 |
commit | efe10091d359433e3cd033a946c00f43e8623771 (patch) | |
tree | 5801c560adb82fb48dabd4c2142287f0bb20befb /sys/pccard | |
parent | 781ba4a835b6a347a618186c67cc31450c11ee45 (diff) | |
download | FreeBSD-src-efe10091d359433e3cd033a946c00f43e8623771.zip FreeBSD-src-efe10091d359433e3cd033a946c00f43e8623771.tar.gz |
- Add necessary include files and fix bugs in last.
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pcic_pci.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index f7681d4..6c9240e 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -37,6 +37,8 @@ #include <pci/pcireg.h> #include <pci/pcivar.h> #include <pci/pcic_p.h> +#include <vm/vm.h> +#include <vm/pmap.h> static u_long pcic_pci_count = 0; @@ -91,7 +93,7 @@ pcic_pci_attach(pcici_t config_id, int unit) switch (pcic_type) { case PCI_DEVICE_ID_PCIC_CLPD6832: - pd6832_legacy_init(config_id,unit); + pd6832_legacy_init(config_id, unit); break; } @@ -104,10 +106,11 @@ pcic_pci_attach(pcici_t config_id, int unit) for (j = 0; j < 0x98; j += 16) { printf("%02x: ", j); for (i = 0; i < 16; i += 4) - printf(" %08x", pci_conf_read(tag, i+j)); + printf(" %08x", pci_conf_read(config_id, i+j)); printf("\n"); } - p = (u_char *)pmap_mapdev(pci_conf_read(tag, 0x10), 0x1000); + p = (u_char *)pmap_mapdev(pci_conf_read(config_id, 0x10), + 0x1000); pl = (u_long *)p; printf("Cardbus Socket registers:\n"); printf("00: "); |