SCCS-vsn: sys/net/if_sl.c 7.32
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)if_sl.c 7.31 (Berkeley) %G%
+ * @(#)if_sl.c 7.32 (Berkeley) %G%
-int sloutput(), slioctl(), ttrstrt();
extern struct timeval time;
extern struct timeval time;
+static int slinit __P((struct sl_softc *));
+static struct mbuf *sl_btom __P((struct sl_softc *, int));
+
/*
* Called from boot code to establish sl interfaces.
*/
/*
* Called from boot code to establish sl interfaces.
*/
slattach()
{
register struct sl_softc *sc;
slattach()
{
register struct sl_softc *sc;
* Attach the given tty to the first available sl unit.
*/
/* ARGSUSED */
* Attach the given tty to the first available sl unit.
*/
/* ARGSUSED */
slopen(dev, tp)
dev_t dev;
register struct tty *tp;
slopen(dev, tp)
dev_t dev;
register struct tty *tp;
/*
* Line specific close routine.
* Detach the tty from the sl unit.
/*
* Line specific close routine.
* Detach the tty from the sl unit.
- * Mimics part of ttyclose().
slclose(tp)
struct tty *tp;
{
slclose(tp)
struct tty *tp;
{
* Provide a way to get the sl unit number.
*/
/* ARGSUSED */
* Provide a way to get the sl unit number.
*/
/* ARGSUSED */
sltioctl(tp, cmd, data, flag)
struct tty *tp;
int cmd;
sltioctl(tp, cmd, data, flag)
struct tty *tp;
int cmd;
/*
* Queue a packet. Start transmission if not active.
*/
/*
* Queue a packet. Start transmission if not active.
*/
+int
+sloutput(ifp, m, dst, rtp)
struct ifnet *ifp;
register struct mbuf *m;
struct sockaddr *dst;
struct ifnet *ifp;
register struct mbuf *m;
struct sockaddr *dst;
{
register struct sl_softc *sc = &sl_softc[ifp->if_unit];
register struct ip *ip;
{
register struct sl_softc *sc = &sl_softc[ifp->if_unit];
register struct ip *ip;
* to send from the interface queue and map it to
* the interface before starting output.
*/
* to send from the interface queue and map it to
* the interface before starting output.
*/
slstart(tp)
register struct tty *tp;
{
slstart(tp)
register struct tty *tp;
{
/*
* tty interface receiver interrupt.
*/
/*
* tty interface receiver interrupt.
*/
slinput(c, tp)
register int c;
register struct tty *tp;
slinput(c, tp)
register int c;
register struct tty *tp;
/*
* Process an ioctl request.
*/
/*
* Process an ioctl request.
*/
slioctl(ifp, cmd, data)
register struct ifnet *ifp;
int cmd;
slioctl(ifp, cmd, data)
register struct ifnet *ifp;
int cmd;