PS2SDK
PS2 Homebrew Libraries
sif_mmio_hwport.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 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 __SIF_MMIO_HWPORT__
17 #define __SIF_MMIO_HWPORT__
18 
19 typedef struct sif_mmio_hwport_ /* base -> 0xBD000000 */
20 {
21  vu32 mscom;
22  u32 unused04[3];
23  vu32 smcom;
24  u32 unused14[3];
25  vu32 msflag;
26  u32 unused24[3];
27  vu32 smflag;
28  u32 unused34[3];
29  vu32 controlreg;
30  u32 unused44[7];
31  vu32 unk60;
32  u32 unused64[3];
34 
35 #if !defined(USE_SIF_MMIO_HWPORT) && defined(_EE)
36 // cppcheck-suppress-macro constVariablePointer
37 #define USE_SIF_MMIO_HWPORT() \
38  sif_mmio_hwport_t *const sif_mmio_hwport = (sif_mmio_hwport_t *)0xB000F200
39 #endif
40 #if !defined(USE_SIF_MMIO_HWPORT) && defined(_IOP)
41 // cppcheck-suppress-macro constVariablePointer
42 #define USE_SIF_MMIO_HWPORT() \
43  sif_mmio_hwport_t *const sif_mmio_hwport = (sif_mmio_hwport_t *)0xBD000000
44 #endif
45 #if !defined(USE_SIF_MMIO_HWPORT)
46 #define USE_SIF_MMIO_HWPORT()
47 #endif
48 
49 #endif /* __SIF_MMIO_HWPORT__ */
sif_mmio_hwport_
Definition: sif_mmio_hwport.h:19