diff options
Diffstat (limited to 'include/linux/n_r3964.h')
-rw-r--r-- | include/linux/n_r3964.h | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/include/linux/n_r3964.h b/include/linux/n_r3964.h index 54b8e0d8d916..5d0b2a1dee69 100644 --- a/include/linux/n_r3964.h +++ b/include/linux/n_r3964.h | |||
@@ -43,15 +43,12 @@ | |||
43 | * | 43 | * |
44 | * | 44 | * |
45 | */ | 45 | */ |
46 | |||
47 | #ifndef __LINUX_N_R3964_H__ | 46 | #ifndef __LINUX_N_R3964_H__ |
48 | #define __LINUX_N_R3964_H__ | 47 | #define __LINUX_N_R3964_H__ |
49 | 48 | ||
50 | /* line disciplines for r3964 protocol */ | ||
51 | |||
52 | #ifdef __KERNEL__ | ||
53 | 49 | ||
54 | #include <linux/param.h> | 50 | #include <linux/param.h> |
51 | #include <uapi/linux/n_r3964.h> | ||
55 | 52 | ||
56 | /* | 53 | /* |
57 | * Common ascii handshake characters: | 54 | * Common ascii handshake characters: |
@@ -73,32 +70,6 @@ | |||
73 | #define R3964_TO_RX_PANIC ((4000)*HZ/1000) | 70 | #define R3964_TO_RX_PANIC ((4000)*HZ/1000) |
74 | #define R3964_MAX_RETRIES 5 | 71 | #define R3964_MAX_RETRIES 5 |
75 | 72 | ||
76 | #endif | ||
77 | |||
78 | /* | ||
79 | * Ioctl-commands | ||
80 | */ | ||
81 | |||
82 | #define R3964_ENABLE_SIGNALS 0x5301 | ||
83 | #define R3964_SETPRIORITY 0x5302 | ||
84 | #define R3964_USE_BCC 0x5303 | ||
85 | #define R3964_READ_TELEGRAM 0x5304 | ||
86 | |||
87 | /* Options for R3964_SETPRIORITY */ | ||
88 | #define R3964_MASTER 0 | ||
89 | #define R3964_SLAVE 1 | ||
90 | |||
91 | /* Options for R3964_ENABLE_SIGNALS */ | ||
92 | #define R3964_SIG_ACK 0x0001 | ||
93 | #define R3964_SIG_DATA 0x0002 | ||
94 | #define R3964_SIG_ALL 0x000f | ||
95 | #define R3964_SIG_NONE 0x0000 | ||
96 | #define R3964_USE_SIGIO 0x1000 | ||
97 | |||
98 | /* | ||
99 | * r3964 operation states: | ||
100 | */ | ||
101 | #ifdef __KERNEL__ | ||
102 | 73 | ||
103 | enum { R3964_IDLE, | 74 | enum { R3964_IDLE, |
104 | R3964_TX_REQUEST, R3964_TRANSMITTING, | 75 | R3964_TX_REQUEST, R3964_TRANSMITTING, |
@@ -127,29 +98,6 @@ struct r3964_client_info { | |||
127 | }; | 98 | }; |
128 | 99 | ||
129 | 100 | ||
130 | #endif | ||
131 | |||
132 | /* types for msg_id: */ | ||
133 | enum {R3964_MSG_ACK=1, R3964_MSG_DATA }; | ||
134 | |||
135 | #define R3964_MAX_MSG_COUNT 32 | ||
136 | |||
137 | /* error codes for client messages */ | ||
138 | #define R3964_OK 0 /* no error. */ | ||
139 | #define R3964_TX_FAIL -1 /* transmission error, block NOT sent */ | ||
140 | #define R3964_OVERFLOW -2 /* msg queue overflow */ | ||
141 | |||
142 | /* the client gets this struct when calling read(fd,...): */ | ||
143 | struct r3964_client_message { | ||
144 | int msg_id; | ||
145 | int arg; | ||
146 | int error_code; | ||
147 | }; | ||
148 | |||
149 | #define R3964_MTU 256 | ||
150 | |||
151 | |||
152 | #ifdef __KERNEL__ | ||
153 | 101 | ||
154 | struct r3964_block_header; | 102 | struct r3964_block_header; |
155 | 103 | ||
@@ -226,6 +174,4 @@ struct r3964_info { | |||
226 | int nRetry; | 174 | int nRetry; |
227 | }; | 175 | }; |
228 | 176 | ||
229 | #endif | ||
230 | |||
231 | #endif | 177 | #endif |