OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [net/] [mkiss.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/****************************************************************************
2
 *      Defines for the Multi-KISS driver.
3
 ****************************************************************************/
4
 
5
#define AX25_MAXDEV     16              /* MAX number of AX25 channels;
6
                                           This can be overridden with
7
                                           insmod -oax25_maxdev=nnn     */
8
#define AX_MTU          236     
9
 
10
/* SLIP/KISS protocol characters. */
11
#define END             0300            /* indicates end of frame       */
12
#define ESC             0333            /* indicates byte stuffing      */
13
#define ESC_END         0334            /* ESC ESC_END means END 'data' */
14
#define ESC_ESC         0335            /* ESC ESC_ESC means ESC 'data' */
15
 
16
struct ax_disp {
17
        int                magic;
18
 
19
        /* Various fields. */
20
        struct tty_struct  *tty;                /* ptr to TTY structure         */
21
        struct device      *dev;                /* easy for intr handling       */
22
        struct ax_disp     *mkiss;              /* mkiss txport if mkiss channel*/
23
 
24
        /* These are pointers to the malloc()ed frame buffers. */
25
        unsigned char      *rbuff;              /* receiver buffer              */
26
        int                rcount;              /* received chars counter       */
27
        unsigned char      *xbuff;              /* transmitter buffer           */
28
        unsigned char      *xhead;              /* pointer to next byte to XMIT */
29
        int                xleft;               /* bytes left in XMIT queue     */
30
 
31
        /* SLIP interface statistics. */
32
        unsigned long      rx_packets;          /* inbound frames counter       */
33
        unsigned long      tx_packets;          /* outbound frames counter      */
34
        unsigned long      rx_errors;           /* Parity, etc. errors          */
35
        unsigned long      tx_errors;           /* Planned stuff                */
36
        unsigned long      rx_dropped;          /* No memory for skb            */
37
        unsigned long      tx_dropped;          /* When MTU change              */
38
        unsigned long      rx_over_errors;      /* Frame bigger then SLIP buf.  */
39
 
40
        /* Detailed SLIP statistics. */
41
        int                 mtu;                /* Our mtu (to spot changes!)   */
42
        int                 buffsize;           /* Max buffers sizes            */
43
 
44
 
45
        unsigned char       flags;              /* Flag values/ mode etc        */
46
#define AXF_INUSE       0                /* Channel in use               */
47
#define AXF_ESCAPE      1               /* ESC received                 */
48
#define AXF_ERROR       2               /* Parity, etc. error           */
49
#define AXF_KEEPTEST    3               /* Keepalive test flag          */
50
#define AXF_OUTWAIT     4               /* is outpacket was flag        */
51
 
52
        int                 mode;
53
};
54
 
55
#define AX25_MAGIC              0x5316
56
#define MKISS_DRIVER_MAGIC      1215

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.