License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / um / drivers / slirp.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef __UM_SLIRP_H
3#define __UM_SLIRP_H
4
a3c77c67 5#include "slip_common.h"
1da177e4
LT
6
7#define SLIRP_MAX_ARGS 100
8/*
9 * XXX this next definition is here because I don't understand why this
10 * initializer doesn't work in slirp_kern.c:
11 *
12 * argv : { init->argv[ 0 ... SLIRP_MAX_ARGS-1 ] },
13 *
14 * or why I can't typecast like this:
15 *
16 * argv : (char* [SLIRP_MAX_ARGS])(init->argv),
17 */
18struct arg_list_dummy_wrapper { char *argv[SLIRP_MAX_ARGS]; };
19
20struct slirp_data {
21 void *dev;
22 struct arg_list_dummy_wrapper argw;
23 int pid;
24 int slave;
a3c77c67 25 struct slip_proto slip;
1da177e4
LT
26};
27
5e7672ec 28extern const struct net_user_info slirp_user_info;
1da177e4 29
1da177e4 30extern int slirp_user_read(int fd, void *buf, int len, struct slirp_data *pri);
a3c77c67
JD
31extern int slirp_user_write(int fd, void *buf, int len,
32 struct slirp_data *pri);
1da177e4
LT
33
34#endif