diff options
Diffstat (limited to 'sys/netatm/sigpvc')
-rw-r--r-- | sys/netatm/sigpvc/sigpvc_if.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/sys/netatm/sigpvc/sigpvc_if.c b/sys/netatm/sigpvc/sigpvc_if.c index 3c454f6d6422..81636985210c 100644 --- a/sys/netatm/sigpvc/sigpvc_if.c +++ b/sys/netatm/sigpvc/sigpvc_if.c @@ -737,90 +737,7 @@ sigpvc_dounload() } -#ifdef sun -/* - * Loadable driver description - */ -struct vdldrv sigpvc_drv = { - VDMAGIC_PSEUDO, /* Pseudo Driver */ - "sigpvc_mod", /* name */ - NULL, /* dev_ops */ - NULL, /* bdevsw */ - NULL, /* cdevsw */ - 0, /* blockmajor */ - 0 /* charmajor */ -}; - - -/* - * Loadable module support entry point - * - * This is the routine called by the vd driver for all loadable module - * functions for this pseudo driver. This routine name must be specified - * on the modload(1) command. This routine will be called whenever the - * modload(1), modunload(1) or modstat(1) commands are issued for this - * module. - * - * Arguments: - * cmd vd command code - * vdp pointer to vd driver's structure - * vdi pointer to command-specific vdioctl_* structure - * vds pointer to status structure (VDSTAT only) - * - * Returns: - * 0 command was successful - * errno command failed - reason indicated - * - */ -int -sigpvc_mod(cmd, vdp, vdi, vds) - int cmd; - struct vddrv *vdp; - caddr_t vdi; - struct vdstat *vds; -{ - int err = 0; - - switch (cmd) { - - case VDLOAD: - /* - * Module Load - * - * We dont support any user configuration - */ - err = sigpvc_doload(); - if (err == 0) - /* Let vd driver know about us */ - vdp->vdd_vdtab = (struct vdlinkage *)&sigpvc_drv; - break; - - case VDUNLOAD: - /* - * Module Unload - */ - err = sigpvc_dounload(); - break; - - case VDSTAT: - /* - * Module Status - */ - - /* Not much to say at the moment */ - - break; - - default: - log(LOG_ERR, "sigpvc_mod: Unknown vd command 0x%x\n", cmd); - err = EINVAL; - } - - return (err); -} -#endif /* sun */ -#ifdef __FreeBSD__ #include <sys/exec.h> #include <sys/sysent.h> @@ -908,7 +825,6 @@ sigpvc_mod(lkmtp, cmd, ver) MOD_DISPATCH(sigpvc, lkmtp, cmd, ver, sigpvc_load, sigpvc_unload, lkm_nullcmd); } -#endif /* __FreeBSD__ */ #else /* !ATM_SIGPVC_MODULE */ |