Return to if_stripvar.h CVS log | Up to [local] / sys / net |
File: [local] / sys / net / if_stripvar.h (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:16:28 2008 UTC (16 years, 6 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
/* $OpenBSD: if_stripvar.h,v 1.8 2002/03/14 01:27:09 millert Exp $ */ /* $NetBSD: if_stripvar.h,v 1.2.4.1 1996/08/05 20:37:51 jtc Exp $ */ #ifndef _NET_IF_STRIPVAR_H_ #define _NET_IF_STRIPVAR_H_ /* * Definitions for SLIP interface data structures * * (This exists so programs like slstats can get at the definition * of sl_softc.) */ struct st_softc { struct ifnet sc_if; /* network-visible interface */ int sc_unit; /* XXX unit number */ struct ifqueue sc_fastq; /* interactive output queue */ struct tty *sc_ttyp; /* pointer to tty structure */ u_char *sc_mp; /* pointer to next available buf char */ u_char *sc_ep; /* pointer to last available buf char */ u_char *sc_buf; /* input buffer */ u_char *sc_rxbuf; /* input destuffing buffer */ u_char *sc_txbuf; /* output stuffing buffer */ u_int sc_flags; /* see below */ long sc_oqlen; /* previous output queue size */ long sc_otimeout; /* number of times output's stalled */ #if defined(__NetBSD__) || defined(__OpenBSD__) int sc_oldbufsize; /* previous output buffer size */ int sc_oldbufquot; /* previous output buffer quoting */ #endif #ifdef INET /* XXX */ struct slcompress sc_comp; /* tcp compression data */ #endif int sc_state; /* Radio reset state-machine */ #define ST_ALIVE 0x0 /* answered probe */ #define ST_PROBE_SENT 0x1 /* probe sent, answer pending */ #define ST_DEAD 0x2 /* no answer to probe; do reset */ long sc_statetimo; /* When (secs) current state ends */ caddr_t sc_bpf; /* BPF data */ struct timeout sc_timo; struct timeval sc_lastpacket; /* for watchdog */ }; /* Internal flags */ #define SC_ERROR 0x0001 /* Incurred error reading current pkt*/ #define SC_TIMEOUT 0x00000400 /* timeout is currently pending */ /* visible flags */ #define SC_COMPRESS IFF_LINK0 /* compress TCP traffic */ #define SC_NOICMP IFF_LINK1 /* supress ICMP traffic */ #define SC_AUTOCOMP IFF_LINK2 /* auto-enable TCP compression */ #ifdef _KERNEL void stripattach(int n); void stripclose(struct tty *); void stripinput(int, struct tty *); int stripioctl(struct ifnet *, u_long, caddr_t); int stripopen(dev_t, struct tty *); int stripoutput(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *); void stripstart(struct tty *); int striptioctl(struct tty *, u_long, caddr_t, int); #endif /* _KERNEL */ #endif /* _NET_IF_STRIPVAR_H_ */