1 #ifndef _TYPE_BEDBUG_H
2 #define _TYPE_BEDBUG_H
3 
4 struct cmd_tbl;
5 
6 /* Supporting routines */
7 int bedbug_puts (const char *);
8 int bedbug_init(void);
9 void bedbug860_init (void);
10 void do_bedbug_breakpoint (struct pt_regs *);
11 void bedbug_main_loop (unsigned long, struct pt_regs *);
12 
13 
14 typedef struct {
15 	int hw_debug_enabled;
16 	int stopped;
17 	int current_bp;
18 	struct pt_regs *regs;
19 
20 	void (*do_break)(struct cmd_tbl *cmd, int flags, int argc,
21 			 char *const argv[]);
22 	void (*break_isr) (struct pt_regs *);
23 	int (*find_empty) (void);
24 	int (*set) (int, unsigned long);
25 	int (*clear) (int);
26 } CPU_DEBUG_CTX;
27 
28 
29 #endif /* _TYPE_BEDBUG_H  */
30