type.h 627 B

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