summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-03-30 13:28:23 +0000
committerphk <phk@FreeBSD.org>1999-03-30 13:28:23 +0000
commit4b075acb2951e25a5a0c5fedd65c6ad62e92ede9 (patch)
tree71eb059b76cedd9c225b862f92e75b5e834aa9cb /sys/i386/isa/if_cx.c
parent0ccb1feb7bb2b9e8aa8932bbb4ca6ac09c7812d1 (diff)
downloadFreeBSD-src-4b075acb2951e25a5a0c5fedd65c6ad62e92ede9.zip
FreeBSD-src-4b075acb2951e25a5a0c5fedd65c6ad62e92ede9.tar.gz
Organize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better,
centralize the code. Remember to call TLF/TLS on the hardware in CISCO mode.
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index d8e5999..0b3b6d7 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -54,9 +54,6 @@ extern struct cdevsw cx_cdevsw;
#include <machine/cronyx.h>
#include <i386/isa/cxreg.h>
-/* XXX exported. */
-void cxswitch (cx_chan_t *c, cx_soft_opt_t new);
-
static int cxprobe __P((struct isa_device *id));
static int cxattach __P((struct isa_device *id));
static void cxput __P((cx_chan_t *c, char b));
@@ -821,20 +818,3 @@ cxinput (cx_chan_t *c, void *buf, unsigned len)
sppp_input (c->master, m);
}
-void cxswitch (cx_chan_t *c, cx_soft_opt_t new)
-{
- new.ext = 0;
- if (! new.ext) {
- struct sppp *sp = (struct sppp*) c->ifp;
-
- if (new.cisco)
- sp->pp_flags |= PP_CISCO;
- else
- sp->pp_flags &= ~PP_CISCO;
- if (new.keepalive)
- sp->pp_flags |= PP_KEEPALIVE;
- else
- sp->pp_flags &= ~PP_KEEPALIVE;
- }
- c->sopt = new;
-}
OpenPOWER on IntegriCloud