Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef __UM_SLIP_H |
| 3 | #define __UM_SLIP_H |
| 4 | |
Jeff Dike | a3c77c6 | 2005-06-13 15:52:18 -0700 | [diff] [blame] | 5 | #include "slip_common.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | struct slip_data { |
| 8 | void *dev; |
| 9 | char name[sizeof("slnnnnn\0")]; |
| 10 | char *addr; |
| 11 | char *gate_addr; |
| 12 | int slave; |
Jeff Dike | a3c77c6 | 2005-06-13 15:52:18 -0700 | [diff] [blame] | 13 | struct slip_proto slip; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | }; |
| 15 | |
Jeff Dike | 5e7672e | 2006-09-27 01:50:33 -0700 | [diff] [blame] | 16 | extern const struct net_user_info slip_user_info; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | extern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri); |
| 19 | extern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri); |
| 20 | |
| 21 | #endif |