summaryrefslogtreecommitdiffstats
path: root/usr.bin/file2c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2005-05-15 04:27:59 +0000
committerwpaul <wpaul@FreeBSD.org>2005-05-15 04:27:59 +0000
commit09647ee931869435d500b0f24b91d25af5145f6f (patch)
tree52249e86ab10b745ca626f1239199f119e89a939 /usr.bin/file2c
parent2e784092b665281139996ed328c8655147601212 (diff)
downloadFreeBSD-src-09647ee931869435d500b0f24b91d25af5145f6f.zip
FreeBSD-src-09647ee931869435d500b0f24b91d25af5145f6f.tar.gz
Add support for NdisMEthIndicateReceive() and MiniportTransferData().
The Ralink RT2500 driver uses this API instead of NdisMIndicateReceivePacket(). Drivers use NdisMEthIndicateReceive() when they know they support 802.3 media and expect to hand their packets only protocols that want to deal with that particular media type. With this API, the driver does not manage its own NDIS_PACKET/NDIS_BUFFER structures. Instead, it lets bound protocols have a peek at the data, and then they supply an NDIS_PACKET/NDIS_BUFFER combo to the miniport driver, into which it copies the packet data. Drivers use NdisMIndicateReceivePacket() to allow their packets to be read by any protocol, not just those bound to 802.3 media devices. To make this work, we need an internal pool of NDIS_PACKETS for receives. Currently, we check to see if the driver exports a MiniportTransferData() method in its characteristics structure, and only allocate the pool for drivers that have this method. This should allow the RT2500 driver to work correctly, though I still have to fix ndiscvt(8) to parse its .inf file properly. Also, change kern_ndis.c:ndis_halt_nic() to reap timers before acquiring NDIS_LOCK(), since the reaping process might entail sleeping briefly (and we can't sleep with a lock held).
Diffstat (limited to 'usr.bin/file2c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud