Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: serial.h
/* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* include/linux/serial.h
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (C) 1992 by Theodore Ts'o.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution of this file is permitted under the terms of the GNU
[6] Fix | Delete
* Public License (GPL)
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
#ifndef _LINUX_SERIAL_H
[10] Fix | Delete
#define _LINUX_SERIAL_H
[11] Fix | Delete
[12] Fix | Delete
#include <linux/types.h>
[13] Fix | Delete
[14] Fix | Delete
#include <linux/tty_flags.h>
[15] Fix | Delete
[16] Fix | Delete
[17] Fix | Delete
struct serial_struct {
[18] Fix | Delete
int type;
[19] Fix | Delete
int line;
[20] Fix | Delete
unsigned int port;
[21] Fix | Delete
int irq;
[22] Fix | Delete
int flags;
[23] Fix | Delete
int xmit_fifo_size;
[24] Fix | Delete
int custom_divisor;
[25] Fix | Delete
int baud_base;
[26] Fix | Delete
unsigned short close_delay;
[27] Fix | Delete
char io_type;
[28] Fix | Delete
char reserved_char[1];
[29] Fix | Delete
int hub6;
[30] Fix | Delete
unsigned short closing_wait; /* time to wait before closing */
[31] Fix | Delete
unsigned short closing_wait2; /* no longer used... */
[32] Fix | Delete
unsigned char *iomem_base;
[33] Fix | Delete
unsigned short iomem_reg_shift;
[34] Fix | Delete
unsigned int port_high;
[35] Fix | Delete
unsigned long iomap_base; /* cookie passed into ioremap */
[36] Fix | Delete
};
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* For the close wait times, 0 means wait forever for serial port to
[40] Fix | Delete
* flush its output. 65535 means don't wait at all.
[41] Fix | Delete
*/
[42] Fix | Delete
#define ASYNC_CLOSING_WAIT_INF 0
[43] Fix | Delete
#define ASYNC_CLOSING_WAIT_NONE 65535
[44] Fix | Delete
[45] Fix | Delete
/*
[46] Fix | Delete
* These are the supported serial types.
[47] Fix | Delete
*/
[48] Fix | Delete
#define PORT_UNKNOWN 0
[49] Fix | Delete
#define PORT_8250 1
[50] Fix | Delete
#define PORT_16450 2
[51] Fix | Delete
#define PORT_16550 3
[52] Fix | Delete
#define PORT_16550A 4
[53] Fix | Delete
#define PORT_CIRRUS 5 /* usurped by cyclades.c */
[54] Fix | Delete
#define PORT_16650 6
[55] Fix | Delete
#define PORT_16650V2 7
[56] Fix | Delete
#define PORT_16750 8
[57] Fix | Delete
#define PORT_STARTECH 9 /* usurped by cyclades.c */
[58] Fix | Delete
#define PORT_16C950 10 /* Oxford Semiconductor */
[59] Fix | Delete
#define PORT_16654 11
[60] Fix | Delete
#define PORT_16850 12
[61] Fix | Delete
#define PORT_RSA 13 /* RSA-DV II/S card */
[62] Fix | Delete
#define PORT_MAX 13
[63] Fix | Delete
[64] Fix | Delete
#define SERIAL_IO_PORT 0
[65] Fix | Delete
#define SERIAL_IO_HUB6 1
[66] Fix | Delete
#define SERIAL_IO_MEM 2
[67] Fix | Delete
#define SERIAL_IO_MEM32 3
[68] Fix | Delete
#define SERIAL_IO_AU 4
[69] Fix | Delete
#define SERIAL_IO_TSI 5
[70] Fix | Delete
#define SERIAL_IO_MEM32BE 6
[71] Fix | Delete
#define SERIAL_IO_MEM16 7
[72] Fix | Delete
[73] Fix | Delete
#define UART_CLEAR_FIFO 0x01
[74] Fix | Delete
#define UART_USE_FIFO 0x02
[75] Fix | Delete
#define UART_STARTECH 0x04
[76] Fix | Delete
#define UART_NATSEMI 0x08
[77] Fix | Delete
[78] Fix | Delete
[79] Fix | Delete
/*
[80] Fix | Delete
* Multiport serial configuration structure --- external structure
[81] Fix | Delete
*/
[82] Fix | Delete
struct serial_multiport_struct {
[83] Fix | Delete
int irq;
[84] Fix | Delete
int port1;
[85] Fix | Delete
unsigned char mask1, match1;
[86] Fix | Delete
int port2;
[87] Fix | Delete
unsigned char mask2, match2;
[88] Fix | Delete
int port3;
[89] Fix | Delete
unsigned char mask3, match3;
[90] Fix | Delete
int port4;
[91] Fix | Delete
unsigned char mask4, match4;
[92] Fix | Delete
int port_monitor;
[93] Fix | Delete
int reserved[32];
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
/*
[97] Fix | Delete
* Serial input interrupt line counters -- external structure
[98] Fix | Delete
* Four lines can interrupt: CTS, DSR, RI, DCD
[99] Fix | Delete
*/
[100] Fix | Delete
struct serial_icounter_struct {
[101] Fix | Delete
int cts, dsr, rng, dcd;
[102] Fix | Delete
int rx, tx;
[103] Fix | Delete
int frame, overrun, parity, brk;
[104] Fix | Delete
int buf_overrun;
[105] Fix | Delete
int reserved[9];
[106] Fix | Delete
};
[107] Fix | Delete
[108] Fix | Delete
/*
[109] Fix | Delete
* Serial interface for controlling RS485 settings on chips with suitable
[110] Fix | Delete
* support. Set with TIOCSRS485 and get with TIOCGRS485 if supported by your
[111] Fix | Delete
* platform. The set function returns the new state, with any unsupported bits
[112] Fix | Delete
* reverted appropriately.
[113] Fix | Delete
*/
[114] Fix | Delete
[115] Fix | Delete
struct serial_rs485 {
[116] Fix | Delete
__u32 flags; /* RS485 feature flags */
[117] Fix | Delete
#define SER_RS485_ENABLED (1 << 0) /* If enabled */
[118] Fix | Delete
#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for
[119] Fix | Delete
RTS pin when
[120] Fix | Delete
sending */
[121] Fix | Delete
#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for
[122] Fix | Delete
RTS pin after sent*/
[123] Fix | Delete
#define SER_RS485_RX_DURING_TX (1 << 4)
[124] Fix | Delete
#define SER_RS485_TERMINATE_BUS (1 << 5) /* Enable bus
[125] Fix | Delete
termination
[126] Fix | Delete
(if supported) */
[127] Fix | Delete
__u32 delay_rts_before_send; /* Delay before send (milliseconds) */
[128] Fix | Delete
__u32 delay_rts_after_send; /* Delay after send (milliseconds) */
[129] Fix | Delete
__u32 padding[5]; /* Memory is cheap, new structs
[130] Fix | Delete
are a royal PITA .. */
[131] Fix | Delete
};
[132] Fix | Delete
[133] Fix | Delete
/*
[134] Fix | Delete
* Serial interface for controlling ISO7816 settings on chips with suitable
[135] Fix | Delete
* support. Set with TIOCSISO7816 and get with TIOCGISO7816 if supported by
[136] Fix | Delete
* your platform.
[137] Fix | Delete
*/
[138] Fix | Delete
struct serial_iso7816 {
[139] Fix | Delete
__u32 flags; /* ISO7816 feature flags */
[140] Fix | Delete
#define SER_ISO7816_ENABLED (1 << 0)
[141] Fix | Delete
#define SER_ISO7816_T_PARAM (0x0f << 4)
[142] Fix | Delete
#define SER_ISO7816_T(t) (((t) & 0x0f) << 4)
[143] Fix | Delete
__u32 tg;
[144] Fix | Delete
__u32 sc_fi;
[145] Fix | Delete
__u32 sc_di;
[146] Fix | Delete
__u32 clk;
[147] Fix | Delete
__u32 reserved[5];
[148] Fix | Delete
};
[149] Fix | Delete
[150] Fix | Delete
#endif /* _LINUX_SERIAL_H */
[151] Fix | Delete
[152] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function