summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis/if_ndisvar.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2004-07-11 00:19:30 +0000
committerwpaul <wpaul@FreeBSD.org>2004-07-11 00:19:30 +0000
commit16416501a995d5e0bbb51ba0f371590d3dc0c00a (patch)
treed3e09779ebff5bf50e2694a2ed89854892329112 /sys/dev/if_ndis/if_ndisvar.h
parentaae5483213805c645aad67985fa4f638d6e34915 (diff)
downloadFreeBSD-src-16416501a995d5e0bbb51ba0f371590d3dc0c00a.zip
FreeBSD-src-16416501a995d5e0bbb51ba0f371590d3dc0c00a.tar.gz
Make NdisReadPcmciaAttributeMemory() and NdisWritePcmciaAttributeMemory()
actually work. Make the PCI and PCCARD attachments provide a bus_get_resource_list() method so that resource listing for PCCARD works. PCCARD does not have a bus_get_resource_list() method (yet), so I faked up the resource list management in if_ndis_pccard.c, and added bus_get_resource_list() methods to both if_ndis_pccard.c and if_ndis_pci.c. The one in the PCI attechment just hands off to the PCI bus code. The difference is transparent to the NDIS resource handler code. Fixed ndis_open_file() so that opening files which live on NFS filesystems work: pass an actual ucred structure to VOP_GETATTR() (NFS explodes if the ucred structure is NOCRED). Make NdisMMapIoSpace() handle mapping of PCMCIA attribute memory resources correctly. Turn subr_ndis.c:my_strcasecmp() into ndis_strcasecmp() and export it so that if_ndis_pccard.c can use it, and junk the other copy of my_strcasecmp() from if_ndis_pccard.c.
Diffstat (limited to 'sys/dev/if_ndis/if_ndisvar.h')
-rw-r--r--sys/dev/if_ndis/if_ndisvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndisvar.h b/sys/dev/if_ndis/if_ndisvar.h
index 4560e34..0e60744 100644
--- a/sys/dev/if_ndis/if_ndisvar.h
+++ b/sys/dev/if_ndis/if_ndisvar.h
@@ -90,7 +90,9 @@ struct ndis_softc {
struct resource *ndis_res_altmem;
int ndis_altmem_rid;
struct resource *ndis_res_am; /* attribute mem (pccard) */
+ int ndis_am_rid;
struct resource *ndis_res_cm; /* common mem (pccard) */
+ struct resource_list ndis_rl;
int ndis_rescnt;
struct mtx ndis_mtx;
struct mtx ndis_intrmtx;
OpenPOWER on IntegriCloud