PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
dev5_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 __DEV5_MMIO_HWPORT__
17#define __DEV5_MMIO_HWPORT__
18
19typedef struct dev5_mmio_hwport_ /* base -> 0xBF402000 */
20{
21 vu8 m_dev5_reg_000;
22 vu8 m_dev5_reg_001;
23 vu8 m_dev5_reg_002;
24 vu8 m_dev5_reg_003;
30 vu8 m_dev5_reg_009; /* Accessed */
33 vu8 m_dev5_reg_00C; /* Accessed */
34 vu8 m_dev5_reg_00D; /* Accessed */
35 vu8 m_dev5_reg_00E; /* Accessed */
37 vu8 m_dev5_reg_010;
38 vu8 m_dev5_reg_011;
39 vu8 m_dev5_reg_012;
40 vu8 m_dev5_reg_013; /* Accessed */
41 vu8 m_dev5_reg_014;
42 vu8 m_dev5_reg_015; /* Accessed */
46 vu8 m_dev5_reg_019;
47 vu8 m_dev5_reg_01A;
48 vu8 m_dev5_reg_01B;
49 vu8 m_dev5_reg_01C;
50 vu8 m_dev5_reg_01D;
51 vu8 m_dev5_reg_01E;
52 vu8 m_dev5_reg_01F;
53 vu8 m_dev5_reg_020; /* Accessed; Key block 0 data 0 */
54 vu8 m_dev5_reg_021; /* Accessed; Key block 0 data 1 */
55 vu8 m_dev5_reg_022; /* Accessed; Key block 0 data 2 */
56 vu8 m_dev5_reg_023; /* Accessed; Key block 0 data 3 */
57 vu8 m_dev5_reg_024; /* Accessed; Key block 0 data 4; used as the XOR key when enabled in CDVDreg_DEC */
58 vu8 m_dev5_reg_025;
59 vu8 m_dev5_reg_026;
60 vu8 m_dev5_reg_027;
61 vu8 m_dev5_reg_028; /* Accessed; Key block 1 data 5 */
62 vu8 m_dev5_reg_029; /* Accessed; Key block 1 data 6 */
63 vu8 m_dev5_reg_02A; /* Accessed; Key block 1 data 7 */
64 vu8 m_dev5_reg_02B; /* Accessed; Key block 1 data 8 */
65 vu8 m_dev5_reg_02C; /* Accessed; Key block 1 data 9 */
66 vu8 m_dev5_reg_02D;
67 vu8 m_dev5_reg_02E;
68 vu8 m_dev5_reg_02F;
69 vu8 m_dev5_reg_030; /* Accessed; Key block 2 data A */
70 vu8 m_dev5_reg_031; /* Accessed; Key block 2 data B */
71 vu8 m_dev5_reg_032; /* Accessed; Key block 2 data C */
72 vu8 m_dev5_reg_033; /* Accessed; Key block 2 data D */
73 vu8 m_dev5_reg_034; /* Accessed; Key block 2 data E */
74 vu8 m_dev5_reg_035;
75 vu8 m_dev5_reg_036;
76 vu8 m_dev5_reg_037;
81
82#if !defined(USE_DEV5_MMIO_HWPORT) && defined(_IOP)
83// cppcheck-suppress-macro constVariablePointer
84#define USE_DEV5_MMIO_HWPORT() dev5_mmio_hwport_t *const dev5_mmio_hwport = (dev5_mmio_hwport_t *)0xBF402000
85#endif
86#if !defined(USE_DEV5_MMIO_HWPORT)
87#define USE_DEV5_MMIO_HWPORT()
88#endif
89
90#endif /* __DEV5_MMIO_HWPORT__ */