diff options
author | wpaul <wpaul@FreeBSD.org> | 2004-01-04 03:00:21 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2004-01-04 03:00:21 +0000 |
commit | cc0f677dae73816e334103ecca82ca9875ad0e48 (patch) | |
tree | 49035d218617c9b9af8310dc80d66593acb5a288 /sys/dev/if_ndis/if_ndis.c | |
parent | b872c27d4a11b75c02c4c2615bc9a86aa35611ff (diff) | |
download | FreeBSD-src-cc0f677dae73816e334103ecca82ca9875ad0e48.zip FreeBSD-src-cc0f677dae73816e334103ecca82ca9875ad0e48.tar.gz |
In ndis_attach(), report the NDIS API level that the Windows miniport
driver was compiled with.
Remove debug printf from ndis_assicn_pcirsc(). It doesn't serve
much purpose.
Implement NdisMIndicateStatus() and NdisMIndicateStatusComplete()
as functions in subr_ndis.c. In NDIS 4.0, they were functions. In
NDIS 5.0 and later, they're just macros.
Allocate a few extra packets/buffers beyond what the driver asks
for since sometimes it seems they can lie about how many they really
need, and some extra stupid ones don't check to see if NdisAllocatePacket()
and/or NdisAllocateBuffer() actually succeed.
Diffstat (limited to 'sys/dev/if_ndis/if_ndis.c')
-rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 67a1a1b..96dd832 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -381,6 +381,11 @@ ndis_attach(dev) /* Set up driver image in memory. */ ndis_load_driver((vm_offset_t)img, sc); + /* Tell the user what version of the API the driver is using. */ + device_printf(dev, "NDIS API version: %d.%d\n", + sc->ndis_chars.nmc_version_major, + sc->ndis_chars.nmc_version_minor); + /* Do resource conversion. */ ndis_convert_res(sc); |