xref: /kernel/linux/linux-5.10/arch/um/drivers/slip.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/um/drivers/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __UM_SLIP_H
38c2ecf20Sopenharmony_ci#define __UM_SLIP_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include "slip_common.h"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct slip_data {
88c2ecf20Sopenharmony_ci	void *dev;
98c2ecf20Sopenharmony_ci	char name[sizeof("slnnnnn\0")];
108c2ecf20Sopenharmony_ci	char *addr;
118c2ecf20Sopenharmony_ci	char *gate_addr;
128c2ecf20Sopenharmony_ci	int slave;
138c2ecf20Sopenharmony_ci	struct slip_proto slip;
148c2ecf20Sopenharmony_ci};
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciextern const struct net_user_info slip_user_info;
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciextern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri);
198c2ecf20Sopenharmony_ciextern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif
22

Indexes created Thu Nov 07 10:32:03 CST 2024