Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: sdla.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* INET An implementation of the TCP/IP protocol suite for the LINUX
[2] Fix | Delete
* operating system. INET is implemented using the BSD Socket
[3] Fix | Delete
* interface as the means of communication with the user level.
[4] Fix | Delete
*
[5] Fix | Delete
* Global definitions for the Frame relay interface.
[6] Fix | Delete
*
[7] Fix | Delete
* Version: @(#)if_ifrad.h 0.20 13 Apr 96
[8] Fix | Delete
*
[9] Fix | Delete
* Author: Mike McLagan <mike.mclagan@linux.org>
[10] Fix | Delete
*
[11] Fix | Delete
* Changes:
[12] Fix | Delete
* 0.15 Mike McLagan Structure packing
[13] Fix | Delete
*
[14] Fix | Delete
* 0.20 Mike McLagan New flags for S508 buffer handling
[15] Fix | Delete
*
[16] Fix | Delete
* This program is free software; you can redistribute it and/or
[17] Fix | Delete
* modify it under the terms of the GNU General Public License
[18] Fix | Delete
* as published by the Free Software Foundation; either version
[19] Fix | Delete
* 2 of the License, or (at your option) any later version.
[20] Fix | Delete
*/
[21] Fix | Delete
[22] Fix | Delete
#ifndef SDLA_H
[23] Fix | Delete
#define SDLA_H
[24] Fix | Delete
[25] Fix | Delete
/* adapter type */
[26] Fix | Delete
#define SDLA_TYPES
[27] Fix | Delete
#define SDLA_S502A 5020
[28] Fix | Delete
#define SDLA_S502E 5021
[29] Fix | Delete
#define SDLA_S503 5030
[30] Fix | Delete
#define SDLA_S507 5070
[31] Fix | Delete
#define SDLA_S508 5080
[32] Fix | Delete
#define SDLA_S509 5090
[33] Fix | Delete
#define SDLA_UNKNOWN -1
[34] Fix | Delete
[35] Fix | Delete
/* port selection flags for the S508 */
[36] Fix | Delete
#define SDLA_S508_PORT_V35 0x00
[37] Fix | Delete
#define SDLA_S508_PORT_RS232 0x02
[38] Fix | Delete
[39] Fix | Delete
/* Z80 CPU speeds */
[40] Fix | Delete
#define SDLA_CPU_3M 0x00
[41] Fix | Delete
#define SDLA_CPU_5M 0x01
[42] Fix | Delete
#define SDLA_CPU_7M 0x02
[43] Fix | Delete
#define SDLA_CPU_8M 0x03
[44] Fix | Delete
#define SDLA_CPU_10M 0x04
[45] Fix | Delete
#define SDLA_CPU_16M 0x05
[46] Fix | Delete
#define SDLA_CPU_12M 0x06
[47] Fix | Delete
[48] Fix | Delete
/* some private IOCTLs */
[49] Fix | Delete
#define SDLA_IDENTIFY (FRAD_LAST_IOCTL + 1)
[50] Fix | Delete
#define SDLA_CPUSPEED (FRAD_LAST_IOCTL + 2)
[51] Fix | Delete
#define SDLA_PROTOCOL (FRAD_LAST_IOCTL + 3)
[52] Fix | Delete
[53] Fix | Delete
#define SDLA_CLEARMEM (FRAD_LAST_IOCTL + 4)
[54] Fix | Delete
#define SDLA_WRITEMEM (FRAD_LAST_IOCTL + 5)
[55] Fix | Delete
#define SDLA_READMEM (FRAD_LAST_IOCTL + 6)
[56] Fix | Delete
[57] Fix | Delete
struct sdla_mem {
[58] Fix | Delete
int addr;
[59] Fix | Delete
int len;
[60] Fix | Delete
void *data;
[61] Fix | Delete
};
[62] Fix | Delete
[63] Fix | Delete
#define SDLA_START (FRAD_LAST_IOCTL + 7)
[64] Fix | Delete
#define SDLA_STOP (FRAD_LAST_IOCTL + 8)
[65] Fix | Delete
[66] Fix | Delete
/* some offsets in the Z80's memory space */
[67] Fix | Delete
#define SDLA_NMIADDR 0x0000
[68] Fix | Delete
#define SDLA_CONF_ADDR 0x0010
[69] Fix | Delete
#define SDLA_S502A_NMIADDR 0x0066
[70] Fix | Delete
#define SDLA_CODE_BASEADDR 0x0100
[71] Fix | Delete
#define SDLA_WINDOW_SIZE 0x2000
[72] Fix | Delete
#define SDLA_ADDR_MASK 0x1FFF
[73] Fix | Delete
[74] Fix | Delete
/* largest handleable block of data */
[75] Fix | Delete
#define SDLA_MAX_DATA 4080
[76] Fix | Delete
#define SDLA_MAX_MTU 4072 /* MAX_DATA - sizeof(fradhdr) */
[77] Fix | Delete
#define SDLA_MAX_DLCI 24
[78] Fix | Delete
[79] Fix | Delete
/* this should be the same as frad_conf */
[80] Fix | Delete
struct sdla_conf {
[81] Fix | Delete
short station;
[82] Fix | Delete
short config;
[83] Fix | Delete
short kbaud;
[84] Fix | Delete
short clocking;
[85] Fix | Delete
short max_frm;
[86] Fix | Delete
short T391;
[87] Fix | Delete
short T392;
[88] Fix | Delete
short N391;
[89] Fix | Delete
short N392;
[90] Fix | Delete
short N393;
[91] Fix | Delete
short CIR_fwd;
[92] Fix | Delete
short Bc_fwd;
[93] Fix | Delete
short Be_fwd;
[94] Fix | Delete
short CIR_bwd;
[95] Fix | Delete
short Bc_bwd;
[96] Fix | Delete
short Be_bwd;
[97] Fix | Delete
};
[98] Fix | Delete
[99] Fix | Delete
/* this should be the same as dlci_conf */
[100] Fix | Delete
struct sdla_dlci_conf {
[101] Fix | Delete
short config;
[102] Fix | Delete
short CIR_fwd;
[103] Fix | Delete
short Bc_fwd;
[104] Fix | Delete
short Be_fwd;
[105] Fix | Delete
short CIR_bwd;
[106] Fix | Delete
short Bc_bwd;
[107] Fix | Delete
short Be_bwd;
[108] Fix | Delete
short Tc_fwd;
[109] Fix | Delete
short Tc_bwd;
[110] Fix | Delete
short Tf_max;
[111] Fix | Delete
short Tb_max;
[112] Fix | Delete
};
[113] Fix | Delete
[114] Fix | Delete
[115] Fix | Delete
#endif /* SDLA_H */
[116] Fix | Delete
[117] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function