vnex.c revision a195726fa33097e56cf1c25c31feddb827e140f0
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
typedef struct vnex_regspec {
struct vnex_pil_map {
typedef struct vnex_id {
} vnex_id_t;
sizeof (struct vnex_pil_map))
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
_init(void)
_fini(void)
int intr_state;
while (!panicstr &&
switch (cmd) {
case DDI_ATTACH:
return (DDI_SUCCESS);
case DDI_RESUME:
return (DDI_SUCCESS);
return (DDI_FAILURE);
switch (cmd) {
case DDI_DETACH:
return (DDI_FAILURE);
case DDI_SUSPEND:
return (DDI_SUCCESS);
return (DDI_FAILURE);
int reglen;
switch (ctlop) {
case DDI_CTLOPS_REPORTDEV:
return (DDI_FAILURE);
return (DDI_SUCCESS);
case DDI_CTLOPS_INITCHILD:
return (DDI_FAILURE);
return (DDI_SUCCESS);
case DDI_CTLOPS_UNINITCHILD:
return (DDI_SUCCESS);
case DDI_CTLOPS_DMAPMAPC:
case DDI_CTLOPS_REPORTINT:
case DDI_CTLOPS_REGSIZE:
return (DDI_SUCCESS);
case DDI_CTLOPS_NREGS:
return (DDI_FAILURE);
return (DDI_SUCCESS);
case DDI_CTLOPS_SIDDEV:
case DDI_CTLOPS_SLAVEONLY:
case DDI_CTLOPS_AFFINITY:
case DDI_CTLOPS_IOMIN:
case DDI_CTLOPS_POKE:
case DDI_CTLOPS_PEEK:
return (DDI_FAILURE);
for (i = 0; i < VNEX_MAX_DEVS; i++) {
name) == 0) {
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_SUCCESS);
return (DDI_FAILURE);
return (DDI_SUCCESS);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (ret);
return (ret);
return (ret);
switch (intr_op) {
case DDI_INTROP_GETCAP:
case DDI_INTROP_ALLOC:
case DDI_INTROP_GETPRI:
case DDI_INTROP_FREE:
case DDI_INTROP_SETPRI:
case DDI_INTROP_ADDISR:
case DDI_INTROP_REMISR:
case DDI_INTROP_ENABLE:
case DDI_INTROP_DISABLE:
case DDI_INTROP_NINTRS:
case DDI_INTROP_NAVAIL:
DDI_INTR_TYPE_FIXED : 0;
return (ret);
return (vid_p);
return (vid_p);
return (NULL);
int res;
return (res);