Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


sdla.h
001: /*
002:  * INET         An implementation of the TCP/IP protocol suite for the LINUX
003:  *              operating system.  INET is implemented using the  BSD Socket
004:  *              interface as the means of communication with the user level.
005:  *
006:  *              Global definitions for the Frame relay interface.
007:  *
008:  * Version:     @(#)if_ifrad.h  0.20    13 Apr 96
009:  *
010:  * Author:      Mike McLagan <mike.mclagan@linux.org>
011:  *
012:  * Changes:
013:  *              0.15    Mike McLagan    Structure packing
014:  *
015:  *              0.20    Mike McLagan    New flags for S508 buffer handling
016:  *
017:  *              This program is free software; you can redistribute it and/or
018:  *              modify it under the terms of the GNU General Public License
019:  *              as published by the Free Software Foundation; either version
020:  *              2 of the License, or (at your option) any later version.
021:  */
022: 
023: #ifndef SDLA_H
024: #define SDLA_H
025: 
026: /* adapter type */
027: #define SDLA_TYPES
028: #define SDLA_S502A                      5020
029: #define SDLA_S502E                      5021
030: #define SDLA_S503                       5030
031: #define SDLA_S507                       5070
032: #define SDLA_S508                       5080
033: #define SDLA_S509                       5090
034: #define SDLA_UNKNOWN                    -1
035: 
036: /* port selection flags for the S508 */
037: #define SDLA_S508_PORT_V35              0x00
038: #define SDLA_S508_PORT_RS232            0x02
039: 
040: /* Z80 CPU speeds */
041: #define SDLA_CPU_3M                     0x00
042: #define SDLA_CPU_5M                     0x01
043: #define SDLA_CPU_7M                     0x02
044: #define SDLA_CPU_8M                     0x03
045: #define SDLA_CPU_10M                    0x04
046: #define SDLA_CPU_16M                    0x05
047: #define SDLA_CPU_12M                    0x06
048: 
049: /* some private IOCTLs */
050: #define SDLA_IDENTIFY                   (FRAD_LAST_IOCTL + 1)
051: #define SDLA_CPUSPEED                   (FRAD_LAST_IOCTL + 2)
052: #define SDLA_PROTOCOL                   (FRAD_LAST_IOCTL + 3)
053: 
054: #define SDLA_CLEARMEM                   (FRAD_LAST_IOCTL + 4)
055: #define SDLA_WRITEMEM                   (FRAD_LAST_IOCTL + 5)
056: #define SDLA_READMEM                    (FRAD_LAST_IOCTL + 6)
057: 
058: struct sdla_mem {
059:    int  addr;
060:    int  len;
061:    void *data;
062: };
063: 
064: #define SDLA_START                      (FRAD_LAST_IOCTL + 7)
065: #define SDLA_STOP                       (FRAD_LAST_IOCTL + 8)
066: 
067: /* some offsets in the Z80's memory space */
068: #define SDLA_NMIADDR                    0x0000
069: #define SDLA_CONF_ADDR                  0x0010
070: #define SDLA_S502A_NMIADDR              0x0066
071: #define SDLA_CODE_BASEADDR              0x0100
072: #define SDLA_WINDOW_SIZE                0x2000
073: #define SDLA_ADDR_MASK                  0x1FFF
074: 
075: /* largest handleable block of data */
076: #define SDLA_MAX_DATA                   4080
077: #define SDLA_MAX_MTU                    4072    /* MAX_DATA - sizeof(fradhdr) */
078: #define SDLA_MAX_DLCI                   24
079: 
080: /* this should be the same as frad_conf */
081: struct sdla_conf {
082:    short station;
083:    short config;
084:    short kbaud;
085:    short clocking;
086:    short max_frm;
087:    short T391;
088:    short T392;
089:    short N391;
090:    short N392;
091:    short N393;
092:    short CIR_fwd;
093:    short Bc_fwd;
094:    short Be_fwd;
095:    short CIR_bwd;
096:    short Bc_bwd;
097:    short Be_bwd;
098: };
099: 
100: /* this should be the same as dlci_conf */
101: struct sdla_dlci_conf {
102:    short config;
103:    short CIR_fwd;
104:    short Bc_fwd;
105:    short Be_fwd;
106:    short CIR_bwd;
107:    short Bc_bwd;
108:    short Be_bwd; 
109:    short Tc_fwd;
110:    short Tc_bwd;
111:    short Tf_max;
112:    short Tb_max;
113: };
114: 
115: 
116: #endif
117: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/