On 4/2/07, wendy <[EMAIL PROTECTED]> wrote:
GLDv2 gld_mac_info structure has a gldm_cookie field which is returned by ddi_get_iblock_cookie, ddi_add_intr functions. However, the [b]Writing Device Driver[/b] [i][/i] tutorial uses different set of APIs(ddi_intr_alloc, ddi_intr_add_handler etc) to create MSI handlers which do not return interrupt iblock cookie. I am wondering how to set gldm_cookie? is MSI not supported by GLDv2 driver?
You're ok just setting it to NULL. GLD uses it to initialize an rwlock. If you look at http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/os/rwlock.c#190 then you can see that the cookie argument (the last argument) to rw_init() is completely unused. Paul -- Paul Durrant http://www.linkedin.com/in/pdurrant _______________________________________________ networking-discuss mailing list [email protected]
