aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/mconsole_kern.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/um/include/mconsole_kern.h
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/um/include/mconsole_kern.h')
-rw-r--r--arch/um/include/mconsole_kern.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/arch/um/include/mconsole_kern.h b/arch/um/include/mconsole_kern.h
new file mode 100644
index 00000000000..61c274fcee5
--- /dev/null
+++ b/arch/um/include/mconsole_kern.h
@@ -0,0 +1,62 @@
1/*
2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __MCONSOLE_KERN_H__
7#define __MCONSOLE_KERN_H__
8
9#include "linux/config.h"
10#include "linux/list.h"
11#include "mconsole.h"
12
13struct mconsole_entry {
14 struct list_head list;
15 struct mc_request request;
16};
17
18struct mc_device {
19 struct list_head list;
20 char *name;
21 int (*config)(char *);
22 int (*get_config)(char *, char *, int, char **);
23 int (*remove)(char *);
24};
25
26#define CONFIG_CHUNK(str, size, current, chunk, end) \
27do { \
28 current += strlen(chunk); \
29 if(current >= size) \
30 str = NULL; \
31 if(str != NULL){ \
32 strcpy(str, chunk); \
33 str += strlen(chunk); \
34 } \
35 if(end) \
36 current++; \
37} while(0)
38
39#ifdef CONFIG_MCONSOLE
40
41extern void mconsole_register_dev(struct mc_device *new);
42
43#else
44
45static inline void mconsole_register_dev(struct mc_device *new)
46{
47}
48
49#endif
50
51#endif
52
53/*
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
57 * of the file.
58 * ---------------------------------------------------------------------------
59 * Local variables:
60 * c-file-style: "linux"
61 * End:
62 */