PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
dev9regs.h File Reference
#include <tamtypes.h>
+ Include dependency graph for dev9regs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _dev9_regs
 

Macros

#define DEV9_R_146C   DEV9_R_POWER
 
#define DEV9_R_146E   DEV9_R_REV
 
#define DEV9_REGBASE   0xbf801460
 
#define USE_DEV9_REGS
 
#define DEV9_REG(reg)   dev9_regs->val[(reg)]
 
#define DEV9_DMAC_BASE   0xbf801510
 
#define DEV9_DMAC_MADR   DEV9_DMAC_BASE
 
#define DEV9_DMAC_BCR   (DEV9_DMAC_BASE + 0x04)
 
#define DEV9_DMAC_CHCR   (DEV9_DMAC_BASE + 0x08)
 
#define DEV9_DEV9C_9566   0x20
 
#define DEV9_DEV9C_9611   0x30
 

Typedefs

typedef struct _dev9_regs dev9_regs_t
 

Enumerations

enum  _dev9_regnames {
  DEV9_R_1460 , DEV9_R_1462 , DEV9_R_1464 , DEV9_R_1466 ,
  DEV9_R_1468 , DEV9_R_146A , DEV9_R_POWER , DEV9_R_REV ,
  DEV9_R_1470 , DEV9_R_1472 , DEV9_R_1474 , DEV9_R_1476 ,
  DEV9_R_1478 , DEV9_R_147A , DEV9_R_147C , DEV9_R_147E ,
  DEV9_R_MAX
}
 

Detailed Description

DEV9 register definitions.

Definition in file dev9regs.h.


Data Structure Documentation

◆ _dev9_regs

struct _dev9_regs

Definition at line 44 of file dev9regs.h.

Data Fields
vu16 val[DEV9_R_MAX]

Macro Definition Documentation

◆ DEV9_R_146C

#define DEV9_R_146C   DEV9_R_POWER

Definition at line 41 of file dev9regs.h.

◆ DEV9_R_146E

#define DEV9_R_146E   DEV9_R_REV

Definition at line 42 of file dev9regs.h.

◆ DEV9_REGBASE

#define DEV9_REGBASE   0xbf801460

Definition at line 49 of file dev9regs.h.

◆ USE_DEV9_REGS

#define USE_DEV9_REGS
Value:
dev9_regs_t *dev9_regs = \
(dev9_regs_t *)DEV9_REGBASE

Definition at line 50 of file dev9regs.h.

◆ DEV9_REG

#define DEV9_REG (   reg)    dev9_regs->val[(reg)]

Definition at line 52 of file dev9regs.h.

◆ DEV9_DMAC_BASE

#define DEV9_DMAC_BASE   0xbf801510

Definition at line 55 of file dev9regs.h.

◆ DEV9_DMAC_MADR

#define DEV9_DMAC_MADR   DEV9_DMAC_BASE

Definition at line 56 of file dev9regs.h.

◆ DEV9_DMAC_BCR

#define DEV9_DMAC_BCR   (DEV9_DMAC_BASE + 0x04)

Definition at line 57 of file dev9regs.h.

◆ DEV9_DMAC_CHCR

#define DEV9_DMAC_CHCR   (DEV9_DMAC_BASE + 0x08)

Definition at line 58 of file dev9regs.h.

◆ DEV9_DEV9C_9566

#define DEV9_DEV9C_9566   0x20

Definition at line 60 of file dev9regs.h.

◆ DEV9_DEV9C_9611

#define DEV9_DEV9C_9611   0x30

Definition at line 61 of file dev9regs.h.

Enumeration Type Documentation

◆ _dev9_regnames

enum _dev9_regnames

Definition at line 21 of file dev9regs.h.