diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/altera_jtaguart.h | 16 | ||||
-rw-r--r-- | include/linux/altera_uart.h | 14 | ||||
-rw-r--r-- | include/linux/gsmmux.h | 25 | ||||
-rw-r--r-- | include/linux/serial_core.h | 4 | ||||
-rw-r--r-- | include/linux/tty.h | 3 |
5 files changed, 61 insertions, 1 deletions
diff --git a/include/linux/altera_jtaguart.h b/include/linux/altera_jtaguart.h new file mode 100644 index 000000000000..953b178a1650 --- /dev/null +++ b/include/linux/altera_jtaguart.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * altera_jtaguart.h -- Altera JTAG UART driver defines. | ||
3 | */ | ||
4 | |||
5 | #ifndef __ALTJUART_H | ||
6 | #define __ALTJUART_H | ||
7 | |||
8 | #define ALTERA_JTAGUART_MAJOR 204 | ||
9 | #define ALTERA_JTAGUART_MINOR 186 | ||
10 | |||
11 | struct altera_jtaguart_platform_uart { | ||
12 | unsigned long mapbase; /* Physical address base */ | ||
13 | unsigned int irq; /* Interrupt vector */ | ||
14 | }; | ||
15 | |||
16 | #endif /* __ALTJUART_H */ | ||
diff --git a/include/linux/altera_uart.h b/include/linux/altera_uart.h new file mode 100644 index 000000000000..8d441064a30d --- /dev/null +++ b/include/linux/altera_uart.h | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | * altera_uart.h -- Altera UART driver defines. | ||
3 | */ | ||
4 | |||
5 | #ifndef __ALTUART_H | ||
6 | #define __ALTUART_H | ||
7 | |||
8 | struct altera_uart_platform_uart { | ||
9 | unsigned long mapbase; /* Physical address base */ | ||
10 | unsigned int irq; /* Interrupt vector */ | ||
11 | unsigned int uartclk; /* UART clock rate */ | ||
12 | }; | ||
13 | |||
14 | #endif /* __ALTUART_H */ | ||
diff --git a/include/linux/gsmmux.h b/include/linux/gsmmux.h new file mode 100644 index 000000000000..378de4195caf --- /dev/null +++ b/include/linux/gsmmux.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef _LINUX_GSMMUX_H | ||
2 | #define _LINUX_GSMMUX_H | ||
3 | |||
4 | struct gsm_config | ||
5 | { | ||
6 | unsigned int adaption; | ||
7 | unsigned int encapsulation; | ||
8 | unsigned int initiator; | ||
9 | unsigned int t1; | ||
10 | unsigned int t2; | ||
11 | unsigned int t3; | ||
12 | unsigned int n2; | ||
13 | unsigned int mru; | ||
14 | unsigned int mtu; | ||
15 | unsigned int k; | ||
16 | unsigned int i; | ||
17 | unsigned int unused[8]; /* Padding for expansion without | ||
18 | breaking stuff */ | ||
19 | }; | ||
20 | |||
21 | #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) | ||
22 | #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) | ||
23 | |||
24 | |||
25 | #endif | ||
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 78dd1e7120a9..09d0d2d5a08b 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -182,6 +182,10 @@ | |||
182 | /* Aeroflex Gaisler GRLIB APBUART */ | 182 | /* Aeroflex Gaisler GRLIB APBUART */ |
183 | #define PORT_APBUART 90 | 183 | #define PORT_APBUART 90 |
184 | 184 | ||
185 | /* Altera UARTs */ | ||
186 | #define PORT_ALTERA_JTAGUART 91 | ||
187 | #define PORT_ALTERA_UART 92 | ||
188 | |||
185 | #ifdef __KERNEL__ | 189 | #ifdef __KERNEL__ |
186 | 190 | ||
187 | #include <linux/compiler.h> | 191 | #include <linux/compiler.h> |
diff --git a/include/linux/tty.h b/include/linux/tty.h index bb44fa9ae135..931078b73226 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ | 24 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ |
25 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ | 25 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ |
26 | #define NR_LDISCS 21 | 26 | #define NR_LDISCS 30 |
27 | 27 | ||
28 | /* line disciplines */ | 28 | /* line disciplines */ |
29 | #define N_TTY 0 | 29 | #define N_TTY 0 |
@@ -48,6 +48,7 @@ | |||
48 | #define N_PPS 18 /* Pulse per Second */ | 48 | #define N_PPS 18 /* Pulse per Second */ |
49 | #define N_V253 19 /* Codec control over voice modem */ | 49 | #define N_V253 19 /* Codec control over voice modem */ |
50 | #define N_CAIF 20 /* CAIF protocol for talking to modems */ | 50 | #define N_CAIF 20 /* CAIF protocol for talking to modems */ |
51 | #define N_GSM0710 21 /* GSM 0710 Mux */ | ||
51 | 52 | ||
52 | /* | 53 | /* |
53 | * This character is the same as _POSIX_VDISABLE: it cannot be used as | 54 | * This character is the same as _POSIX_VDISABLE: it cannot be used as |