PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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
64extern "C" {
65#endif
66
68extern void InitBPC(void);
70extern void SetInstructionBP(u32 addr, u32 mask, u32 options);
75extern void SetDataAddrBP(u32 addr, u32 mask, u32 options);
77extern void SetDataValueBP(u32 addr, u32 mask, u32 value, u32 vmask, u32 options);
78
80extern u32 GetBPC(void);
82extern void SetBPC(u32 bpc);
83
85extern u32 GetIAB(void);
87extern void SetIAB(u32 val);
89extern u32 GetIABM(void);
91extern void SetIABM(u32 val);
93extern u32 GetDAB(void);
95extern void SetDAB(u32 val);
97extern u32 GetDABM(void);
99extern void SetDABM(u32 val);
101extern u32 GetDVB(void);
103extern void SetDVB(u32 val);
105extern u32 GetDVBM(void);
107extern 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)