Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) |
| 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #include "linux/init.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include "mconsole_kern.h" |
| 8 | |
| 9 | #ifdef CONFIG_MCONSOLE |
| 10 | |
| 11 | extern int gdb_config(char *str); |
Jeff Dike | 29d56cf | 2005-06-25 14:55:25 -0700 | [diff] [blame] | 12 | extern int gdb_remove(int n); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
| 14 | static struct mc_device gdb_mc = { |
| 15 | .name = "gdb", |
| 16 | .config = gdb_config, |
| 17 | .remove = gdb_remove, |
| 18 | }; |
| 19 | |
| 20 | int gdb_mc_init(void) |
| 21 | { |
| 22 | mconsole_register_dev(&gdb_mc); |
| 23 | return(0); |
| 24 | } |
| 25 | |
| 26 | __initcall(gdb_mc_init); |
| 27 | |
| 28 | #endif |
| 29 | |
| 30 | /* |
| 31 | * Overrides for Emacs so that we follow Linus's tabbing style. |
| 32 | * Emacs will notice this stuff at the end of the file and automatically |
| 33 | * adjust the settings for this buffer only. This must remain at the end |
| 34 | * of the file. |
| 35 | * --------------------------------------------------------------------------- |
| 36 | * Local variables: |
| 37 | * c-file-style: "linux" |
| 38 | * End: |
| 39 | */ |