2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __MCONSOLE_KERN_H__
7 #define __MCONSOLE_KERN_H__
9 #include "linux/list.h"
12 struct mconsole_entry {
13 struct list_head list;
14 struct mc_request request;
18 struct list_head list;
20 int (*config)(char *);
21 int (*get_config)(char *, char *, int, char **);
22 int (*id)(char **, int *, int *);
26 #define CONFIG_CHUNK(str, size, current, chunk, end) \
28 current += strlen(chunk); \
33 str += strlen(chunk); \
39 #ifdef CONFIG_MCONSOLE
41 extern void mconsole_register_dev(struct mc_device *new);
45 static inline void mconsole_register_dev(struct mc_device *new)
54 * Overrides for Emacs so that we follow Linus's tabbing style.
55 * Emacs will notice this stuff at the end of the file and automatically
56 * adjust the settings for this buffer only. This must remain at the end
58 * ---------------------------------------------------------------------------
60 * c-file-style: "linux"