summaryrefslogtreecommitdiffstats
path: root/sys/netatm/ipatm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-10-12 00:03:50 +0000
committerphk <phk@FreeBSD.org>2000-10-12 00:03:50 +0000
commit4d5d6d69caae71da99ba0702fed86b0546c11270 (patch)
treea68c1b4be98329ceb704b534012c2cb72f2e459f /sys/netatm/ipatm
parent11037c013d79eae9f06a8e84c4d35cce975567f2 (diff)
downloadFreeBSD-src-4d5d6d69caae71da99ba0702fed86b0546c11270.zip
FreeBSD-src-4d5d6d69caae71da99ba0702fed86b0546c11270.tar.gz
Do some cleanups of the HARP atm codes interface into the system:
Define the NETISR just like all the other NETISRs. unifdef -Usun -D__FreeBSD__ we will probably never support sun4c and if we do we can't use the solaris code anyway and I doubt anybody will be running Fore ATM cards in then in the first place.
Diffstat (limited to 'sys/netatm/ipatm')
-rw-r--r--sys/netatm/ipatm/ipatm_load.c84
1 files changed, 0 insertions, 84 deletions
diff --git a/sys/netatm/ipatm/ipatm_load.c b/sys/netatm/ipatm/ipatm_load.c
index 08c5d43..e158525 100644
--- a/sys/netatm/ipatm/ipatm_load.c
+++ b/sys/netatm/ipatm/ipatm_load.c
@@ -660,90 +660,7 @@ ipatm_dounload()
}
-#ifdef sun
-/*
- * Loadable driver description
- */
-struct vdldrv ipatm_drv = {
- VDMAGIC_PSEUDO, /* Pseudo Driver */
- "ipatm_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
-ipatm_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 = ipatm_doload();
- if (err == 0)
- /* Let vd driver know about us */
- vdp->vdd_vdtab = (struct vdlinkage *)&ipatm_drv;
- break;
-
- case VDUNLOAD:
- /*
- * Module Unload
- */
- err = ipatm_dounload();
- break;
-
- case VDSTAT:
- /*
- * Module Status
- */
-
- /* Not much to say at the moment */
-
- break;
-
- default:
- log(LOG_ERR, "ipatm_mod: Unknown vd command 0x%x\n", cmd);
- err = EINVAL;
- }
-
- return (err);
-}
-#endif /* sun */
-#ifdef __FreeBSD__
#include <sys/exec.h>
#include <sys/sysent.h>
@@ -831,7 +748,6 @@ ipatm_mod(lkmtp, cmd, ver)
MOD_DISPATCH(ipatm, lkmtp, cmd, ver,
ipatm_load, ipatm_unload, lkm_nullcmd);
}
-#endif /* __FreeBSD__ */
#else /* !ATM_IP_MODULE */
OpenPOWER on IntegriCloud