sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
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
17#ifndef __SIF_MMIO_HWPORT__
18#define __SIF_MMIO_HWPORT__
19
20typedef struct sif_mmio_hwport_ /* base -> 0xBD000000 */
21{
22 vu32 mscom;
23 u32 unused04[3];
24 vu32 smcom;
25 u32 unused14[3];
26 vu32 msflag;
27 u32 unused24[3];
28 vu32 smflag;
29 u32 unused34[3];
30 vu32 controlreg;
31 u32 unused44[7];
32 vu32 unk60;
33 u32 unused64[3];
34} sif_mmio_hwport_t;
35
36#if !defined(USE_SIF_MMIO_HWPORT) && defined(_EE)
37// cppcheck-suppress-macro constVariablePointer
38#define USE_SIF_MMIO_HWPORT() \
39 sif_mmio_hwport_t *const sif_mmio_hwport = (sif_mmio_hwport_t *)0xB000F200
40#endif
41#if !defined(USE_SIF_MMIO_HWPORT) && defined(_IOP)
42// cppcheck-suppress-macro constVariablePointer
43#define USE_SIF_MMIO_HWPORT() \
44 sif_mmio_hwport_t *const sif_mmio_hwport = (sif_mmio_hwport_t *)0xBD000000
45#endif
46#if !defined(USE_SIF_MMIO_HWPORT)
47#define USE_SIF_MMIO_HWPORT()
48#endif
49
50#endif /* __SIF_MMIO_HWPORT__ */