^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __UM_SLIP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __UM_SLIP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include "slip_common.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct slip_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) void *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) char name[sizeof("slnnnnn\0")];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) char *addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) char *gate_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int slave;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct slip_proto slip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern const struct net_user_info slip_user_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif