2 * Common code for low-level network console, dump, and debugger code
4 * Derived from netconsole, kgdb-over-ethernet, and netdump patches
7 #ifndef _LINUX_NETPOLL_H
8 #define _LINUX_NETPOLL_H
10 #include <linux/netdevice.h>
11 #include <linux/interrupt.h>
12 #include <linux/list.h>
17 struct net_device *dev;
18 char dev_name[16], *name;
19 void (*rx_hook)(struct netpoll *, short, char *, int);
20 void (*dump_func)(struct pt_regs *);
21 u32 local_ip, remote_ip;
22 u16 local_port, remote_port;
23 unsigned char local_mac[6], remote_mac[6];
24 struct list_head rx_list;
27 void netpoll_poll(struct netpoll *np);
28 void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb);
29 void netpoll_send_udp(struct netpoll *np, const char *msg, int len);
30 int netpoll_parse_options(struct netpoll *np, char *opt);
31 int netpoll_setup(struct netpoll *np);
32 int netpoll_trap(void);
33 void netpoll_set_trap(int trap);
34 void netpoll_cleanup(struct netpoll *np);
35 int netpoll_rx(struct sk_buff *skb);
36 void netpoll_reset_locks(struct netpoll *np);