PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
dev9regs.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright (c) 2003 Marcus R. Brown <mrbrown@0xd6.org>
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __DEV9REGS_H__
17
#define __DEV9REGS_H__
18
19
#include <
tamtypes.h
>
20
21
enum
_dev9_regnames {
22
DEV9_R_1460,
23
DEV9_R_1462,
24
DEV9_R_1464,
25
DEV9_R_1466,
26
DEV9_R_1468,
27
DEV9_R_146A,
28
DEV9_R_POWER,
29
DEV9_R_REV,
30
DEV9_R_1470,
31
DEV9_R_1472,
32
DEV9_R_1474,
33
DEV9_R_1476,
34
DEV9_R_1478,
35
DEV9_R_147A,
36
DEV9_R_147C,
37
DEV9_R_147E,
38
DEV9_R_MAX
39
};
40
41
#define DEV9_R_146C DEV9_R_POWER
42
#define DEV9_R_146E DEV9_R_REV
43
44
typedef
struct
_dev9_regs
45
{
46
vu16 val[DEV9_R_MAX];
47
}
dev9_regs_t
;
48
49
#define DEV9_REGBASE 0xbf801460
50
#define USE_DEV9_REGS dev9_regs_t *dev9_regs = \
51
(dev9_regs_t *)DEV9_REGBASE
52
#define DEV9_REG(reg) dev9_regs->val[(reg)]
53
54
/* DEV9 DMAC registers. */
55
#define DEV9_DMAC_BASE 0xbf801510
56
#define DEV9_DMAC_MADR DEV9_DMAC_BASE
57
#define DEV9_DMAC_BCR (DEV9_DMAC_BASE + 0x04)
58
#define DEV9_DMAC_CHCR (DEV9_DMAC_BASE + 0x08)
59
60
#define DEV9_DEV9C_9566 0x20
61
#define DEV9_DEV9C_9611 0x30
62
63
#endif
/* __DEV9REGS_H__ */
_dev9_regs
Definition
dev9regs.h:45
tamtypes.h
common
include
dev9regs.h
Generated on Thu Nov 14 2024 05:25:24 for PS2SDK by
1.9.8