ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
hwbp.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, 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 
16 #ifndef __HWBP_H__
17 #define __HWBP_H__
18 
19 #include <tamtypes.h>
20 
22 #define BPC_IAE (1 << 31)
24 #define BPC_DRE (1 << 30)
26 #define BPC_DWE (1 << 29)
28 #define BPC_DVE (1 << 28)
29 
31 #define BPC_IUE (1 << 26)
33 #define BPC_ISE (1 << 25)
35 #define BPC_IKE (1 << 24)
37 #define BPC_IXE (1 << 23)
38 
40 #define BPC_DUE (1 << 21)
42 #define BPC_DSE (1 << 20)
44 #define BPC_DKE (1 << 19)
46 #define BPC_DXE (1 << 18)
47 
49 #define BPC_ITE (1 << 17)
51 #define BPC_DTE (1 << 16)
52 
54 #define BPC_BED (1 << 15)
55 
57 #define BPC_DWB (1 << 2)
59 #define BPC_DRB (1 << 1)
61 #define BPC_IAB (1 << 0)
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
68 void InitBPC(void);
70 void SetInstructionBP(u32 addr, u32 mask, u32 options);
75 void SetDataAddrBP(u32 addr, u32 mask, u32 options);
77 void SetDataValueBP(u32 addr, u32 mask, u32 value, u32 vmask, u32 options);
78 
80 u32 GetBPC(void);
82 void SetBPC(u32 bpc);
83 
85 u32 GetIAB(void);
87 void SetIAB(u32 val);
89 u32 GetIABM(void);
91 void SetIABM(u32 val);
93 u32 GetDAB(void);
95 void SetDAB(u32 val);
97 u32 GetDABM(void);
99 void SetDABM(u32 val);
101 u32 GetDVB(void);
103 void SetDVB(u32 val);
105 u32 GetDVBM(void);
107 void SetDVBM(u32 val);
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* __HWBP_H__ */
u32 GetDAB(void)
void InitBPC(void)
u32 GetIABM(void)
void SetDAB(u32 val)
void SetDataValueBP(u32 addr, u32 mask, u32 value, u32 vmask, u32 options)
void SetDataAddrBP(u32 addr, u32 mask, u32 options)
void SetDVB(u32 val)
u32 GetDVBM(void)
void SetIABM(u32 val)
void SetDVBM(u32 val)
void SetIAB(u32 val)
u32 GetDABM(void)
void SetBPC(u32 bpc)
void SetDABM(u32 val)
void SetInstructionBP(u32 addr, u32 mask, u32 options)
u32 GetDVB(void)
u32 GetBPC(void)
u32 GetIAB(void)
unsigned int u32
Definition: tamtypes.h:30