Sony PlayStation2 Study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.9 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. # _____ ___ ____ ___ ____
  3. # ____| | ____| | | |____|
  4. # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
  5. #-----------------------------------------------------------------------
  6. # Copyright 2001-2009, ps2dev - http://www.ps2dev.org
  7. # Licenced under Academic Free License version 2.0
  8. # Review ps2sdk README & LICENSE files for further details.
  9. */
  10. /**
  11. * @file
  12. * IOPDEBUG - IOP debugging library.
  13. * Definitions for the IOPDEBUG library.
  14. */
  15. #ifndef __IOPDEBUG_H__
  16. #define __IOPDEBUG_H__
  17. #include <types.h>
  18. #include <irx.h>
  19. #include <iop_cop0_defs.h>
  20. #include <ps2_debug.h>
  21. typedef int (IOP_ExceptionHandler)(struct st_IOP_RegFrame *);
  22. int iop_dbg_install(void);
  23. int iop_dbg_remove(void);
  24. IOP_ExceptionHandler *iop_dbg_get_handler(int cause);
  25. IOP_ExceptionHandler *iop_dbg_set_handler(int cause, IOP_ExceptionHandler *handler);
  26. void iop_dbg_get_reg_frames(IOP_RegFrame **def_frame_ptr, IOP_RegFrame **dbg_frame_ptr);
  27. u32 iop_dbg_get_dcic(void);
  28. void iop_dbg_set_dcic(u32 v);
  29. u32 iop_dbg_get_bpc(void);
  30. void iop_dbg_set_bpc(u32 v);
  31. u32 iop_dbg_get_bpcm(void);
  32. void iop_dbg_set_bpcm(u32 v);
  33. u32 iop_dbg_get_bda(void);
  34. void iop_dbg_set_bda(u32 v);
  35. u32 iop_dbg_get_bdam(void);
  36. void iop_dbg_set_bdam(u32 v);
  37. void iop_dbg_set_bpr(u32 addr, u32 mask, u32 user_mask);
  38. void iop_dbg_set_bpw(u32 addr, u32 mask, u32 user_mask);
  39. void iop_dbg_set_bpx(u32 addr, u32 mask, u32 user_mask);
  40. void iop_dbg_clr_bps(void);
  41. void iop_dbg_clr_bpda(void);
  42. void iop_dbg_clr_bpx(void);
  43. #define iopdebug_IMPORTS_start DECLARE_IMPORT_TABLE(iopdebug, 1, 1)
  44. #define iopdebug_IMPORTS_end END_IMPORT_TABLE
  45. #define I_iop_dbg_install DECLARE_IMPORT(5, iop_dbg_install)
  46. #define I_iop_dbg_remove DECLARE_IMPORT(6, iop_dbg_remove)
  47. #define I_iop_dbg_get_handler DECLARE_IMPORT(7, iop_dbg_get_handler)
  48. #define I_iop_dbg_set_handler DECLARE_IMPORT(8, iop_dbg_set_handler)
  49. #define I_iop_dbg_get_reg_frames DECLARE_IMPORT(9, iop_dbg_get_reg_frames)
  50. #define I_iop_dbg_get_dcic DECLARE_IMPORT(10, iop_dbg_get_dcic)
  51. #define I_iop_dbg_set_dcic DECLARE_IMPORT(11, iop_dbg_set_dcic)
  52. #define I_iop_dbg_get_bpc DECLARE_IMPORT(12, iop_dbg_get_bpc)
  53. #define I_iop_dbg_set_bpc DECLARE_IMPORT(13, iop_dbg_set_bpc)
  54. #define I_iop_dbg_get_bpcm DECLARE_IMPORT(14, iop_dbg_get_bpcm)
  55. #define I_iop_dbg_set_bpcm DECLARE_IMPORT(15, iop_dbg_set_bpcm)
  56. #define I_iop_dbg_bda DECLARE_IMPORT(16, iop_dbg_bda)
  57. #define I_iop_dbg_set_bda DECLARE_IMPORT(17, iop_dbg_set_bda)
  58. #define I_iop_dbg_bdam DECLARE_IMPORT(18, iop_dbg_bdam)
  59. #define I_iop_dbg_set_bdam DECLARE_IMPORT(19, iop_dbg_bdam)
  60. #define I_iop_dbg_set_bpr DECLARE_IMPORT(20, iop_dbg_set_bpr)
  61. #define I_iop_dbg_set_bpw DECLARE_IMPORT(21, iop_dbg_set_bpw)
  62. #define I_iop_dbg_set_bpx DECLARE_IMPORT(22, iop_dbg_bpx)
  63. #define I_iop_dbg_clr_bps DECLARE_IMPORT(23, iop_dbg_clr_bps)
  64. #define I_iop_dbg_clr_bpda DECLARE_IMPORT(24, iop_dbg_clr_bpda)
  65. #define I_iop_dbg_clr_bpx DECLARE_IMPORT(25, iop_dbg_clr_bpx)
  66. #endif /* __IOPDEBUG_H__ */