PS2SDK
PS2 Homebrew Libraries
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)
23 
24 #define BPC_DRE (1 << 30)
25 
26 #define BPC_DWE (1 << 29)
27 
28 #define BPC_DVE (1 << 28)
29 
31 #define BPC_IUE (1 << 26)
32 
33 #define BPC_ISE (1 << 25)
34 
35 #define BPC_IKE (1 << 24)
36 
37 #define BPC_IXE (1 << 23)
38 
40 #define BPC_DUE (1 << 21)
41 
42 #define BPC_DSE (1 << 20)
43 
44 #define BPC_DKE (1 << 19)
45 
46 #define BPC_DXE (1 << 18)
47 
49 #define BPC_ITE (1 << 17)
50 
51 #define BPC_DTE (1 << 16)
52 
54 #define BPC_BED (1 << 15)
55 
57 #define BPC_DWB (1 << 2)
58 
59 #define BPC_DRB (1 << 1)
60 
61 #define BPC_IAB (1 << 0)
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
68 extern void InitBPC(void);
70 extern void SetInstructionBP(u32 addr, u32 mask, u32 options);
75 extern void SetDataAddrBP(u32 addr, u32 mask, u32 options);
77 extern void SetDataValueBP(u32 addr, u32 mask, u32 value, u32 vmask, u32 options);
78 
80 extern u32 GetBPC(void);
82 extern void SetBPC(u32 bpc);
83 
85 extern u32 GetIAB(void);
87 extern void SetIAB(u32 val);
89 extern u32 GetIABM(void);
91 extern void SetIABM(u32 val);
93 extern u32 GetDAB(void);
95 extern void SetDAB(u32 val);
97 extern u32 GetDABM(void);
99 extern void SetDABM(u32 val);
101 extern u32 GetDVB(void);
103 extern void SetDVB(u32 val);
105 extern u32 GetDVBM(void);
107 extern void SetDVBM(u32 val);
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif /* __HWBP_H__ */
GetDVB
u32 GetDVB(void)
GetIABM
u32 GetIABM(void)
SetInstructionBP
void SetInstructionBP(u32 addr, u32 mask, u32 options)
GetBPC
u32 GetBPC(void)
GetIAB
u32 GetIAB(void)
SetDVB
void SetDVB(u32 val)
tamtypes.h
GetDAB
u32 GetDAB(void)
SetIABM
void SetIABM(u32 val)
InitBPC
void InitBPC(void)
SetIAB
void SetIAB(u32 val)
SetBPC
void SetBPC(u32 bpc)
SetDABM
void SetDABM(u32 val)
SetDVBM
void SetDVBM(u32 val)
SetDataValueBP
void SetDataValueBP(u32 addr, u32 mask, u32 value, u32 vmask, u32 options)
GetDABM
u32 GetDABM(void)
GetDVBM
u32 GetDVBM(void)
SetDAB
void SetDAB(u32 val)
SetDataAddrBP
void SetDataAddrBP(u32 addr, u32 mask, u32 options)