Brian Xu - Sun Microsystems - Beijing China wrote:
You can refer to the link Paul Durrant provided:
http://cr.opensolaris.org/~pdurrant/webrev/usr/src/uts/common/io/sfxge/sfxge_rx.c.html
I think besides allocating the dma handle, the ddi_dma_mem_alloc() and
dma_bindle() can also be put in the constructor as well.
Look at the TX code for an example of that:
http://cr.opensolaris.org/~pdurrant/webrev/usr/src/uts/common/io/sfxge/sfxge_tx.c.html
Also, for documentation, the manpages are your friend.
kmem_cache_create() and friends have been part of the DDI for a while.
Paul
--
===================================
Paul Durrant
http://www.linkedin.com/in/pdurrant
===================================
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss