Chris Sarcone writes:
> Drew --
>
> >
> > Chris Sarcone writes:
> >> You should be using IODMACommand. It works across 32-bit and 64-bit
> >
> > Eeek.
> >
> > Where is IODMACommand documented?
>
> Does HeaderDoc count? ;-). I think TechPubs is working on revamping
> the IOKit literature and providing some sample code for this.
> > Are network drivers still supposed to use IOMbufMemoryCursor?
>
> IIRC, mbufs are special cased (they're allocated out of the special
> chunk of < 4GB memory). I'm not sure about the IOMbufMemoryCursor
If mbufs still come out of low memory, then it should be
safe. Its a fancy wrapper for mcltopaddr.
> question. I think it depends on how you allocate your Rx/Tx ring
> buffers and such.
In my ethernet drivers, my other allocations are made with
IOMallocContiguous (with allocations of a page or less). Since that
gives back a 32-but dma address, I assume that must still be safe.
Thanks,
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
This email sent to email@hidden