2 * linux/drivers/net/netconsole.h
4 * Copyright (C) 2001 Ingo Molnar <mingo@redhat.com>
6 * This file contains the implementation of an IRQ-safe, crash-safe
7 * kernel console implementation that outputs kernel messages to the
10 * Modification history:
12 * 2001-09-17 started by Ingo Molnar.
15 /****************************************************************
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2, or (at your option)
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 ****************************************************************/
32 #define NETCONSOLE_VERSION 0x03
34 enum netdump_commands {
40 COMM_GET_NR_PAGES = 5,
41 COMM_GET_PAGE_SIZE = 6,
42 COMM_START_NETDUMP_ACK = 7,
45 COMM_START_WRITE_NETDUMP_ACK = 10,
48 typedef struct netdump_req_s {
56 enum netdump_replies {
65 REPLY_START_NETDUMP = 8,
66 REPLY_END_NETDUMP = 9,
69 REPLY_START_WRITE_NETDUMP = 12,
72 typedef struct netdump_reply_s {
78 #define HEADER_LEN (1 + sizeof(reply_t))