sdla.h
001:
002:
003:
004:
005:
006:
007:
008:
009:
010: <mike.mclagan@linux.org>
011:
012:
013:
014:
015:
016:
017:
018:
019:
020:
021:
022:
023: #ifndef SDLA_H
024: #define SDLA_H
025:
026:
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:
037: #define SDLA_S508_PORT_V35 0x00
038: #define SDLA_S508_PORT_RS232 0x02
039:
040:
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:
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:
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:
076: #define SDLA_MAX_DATA 4080
077: #define SDLA_MAX_MTU 4072
078: #define SDLA_MAX_DLCI 24
079:
080:
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:
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:
© Andrew Scott 2006 -
2025,
All Rights Reserved