^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) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef __DAEMON_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define __DAEMON_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <net_user.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define SWITCH_VERSION 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct daemon_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) char *sock_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) char *ctl_sock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void *ctl_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) void *data_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void *local_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int fd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int control;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern const struct net_user_info daemon_user_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern int daemon_user_write(int fd, void *buf, int len,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct daemon_data *pri);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif