I starting work on a new Ethernet card driver, using the PcNet code as a
model. I’ve bumped into the _nic_allocator structure and functions, but
other than the definitions in support.h I can’t find any documentation.
Am I just looking in all the wrong places, or looking for something that
doesn’t exist? Or did I pick a bad card to use as a model?
Murf
In addition, I’m curious as to why the io-net allocator goes to so much
trouble to avoid crossing physical page boundaries, thus wasting a fair
amount of memory with larger buffers (e.g., Ethernet). Seems like back
in the 2nd-party DMA days, that would be important, but with modern bus
master devices, why go to so much trouble?
lew
“John A. Murphy” wrote:
I starting work on a new Ethernet card driver, using the PcNet code as a
model. I’ve bumped into the _nic_allocator structure and functions, but
other than the definitions in support.h I can’t find any documentation.
Am I just looking in all the wrong places, or looking for something that
doesn’t exist? Or did I pick a bad card to use as a model?
Murf