|
|
#include <sys/types.h> #include <sys/stream.h> #include <sys/mdi.h> #include <sys/confmgr.h> #include <sys/ddi.h>int mdi_hw_resumed(queue_t *q, rm_key_t rmkey)
Driver-defined basic locks, read/write locks, and sleep locks may not be held across calls to this function.
The caller cannot have the stream frozen (see freezestr(D3str)) when calling this function.
``Hotplug devices'' in HDK Technical Reference
int
e3Dconfig(cfg_func_t func, void *idata, rm_key_t rmkey)
{
int ret;
e3Ddev_t *dev=idata;
switch(func) {
case CFG_RESUME:
/* Always call mdi_hw_resumed to tell the stack to resume
* frames, as we don't know if user a) never issued the
* BIND_REQ before the suspend or b) issued the BIND_REQ
* successfully, got the suspend, then closed the device
* while we were suspended.
*/
if ((ret=mdi_hw_resumed(dev->ex_up_queue, rmkey)) != 0) {
return(ret);
}
}
}