ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
Go to the source code of this file.
Macros | |
#define | AIF_REGBASE (SPD_REGBASE + 0x4000000) |
#define | USE_AIF_REGS |
#define | AIF_INTCL AIF_INTSR |
#define | AIF_INTR_ATA0 (1<<AIF_INUM_ATA0) |
#define | AIF_INTR_RTC (1<<AIF_INUM_RTC) |
#define | AIF_INTR_PCMCIA (1<<AIF_INUM_PCMCIA) |
#define | USE_AIF_RTC_REGS |
#define | RTC_FREQ_SELECT RTC_REG_A |
#define | RTC_UIP 0x80 |
#define | RTC_DIV_CTL 0x70 |
#define | RTC_REF_CLCK_4MHZ 0x00 |
#define | RTC_REF_CLCK_1MHZ 0x10 |
#define | RTC_REF_CLCK_32KHZ 0x20 |
#define | RTC_DIV_RESET1 0x60 |
#define | RTC_DIV_RESET2 0x70 |
#define | RTC_RATE_SELECT 0x0F |
#define | RTC_CONTROL RTC_REG_B |
#define | RTC_SET 0x80 |
#define | RTC_PIE 0x40 |
#define | RTC_AIE 0x20 |
#define | RTC_UIE 0x10 |
#define | RTC_SQWE 0x08 |
#define | RTC_DM_BINARY 0x04 |
#define | RTC_24H 0x02 |
#define | RTC_DST_EN 0x01 |
#define | RTC_INTR_FLAGS RTC_REG_C |
#define | RTC_IRQF 0x80 |
#define | RTC_PF 0x40 |
#define | RTC_AF 0x20 |
#define | RTC_UF 0x10 |
#define | RTC_VALID RTC_REG_D |
#define | RTC_VRT 0x80 |
Enumerations | |
enum | AIF_REGS { AIF_IDENT = 0x00 , AIF_REVISION , AIF_INTSR , AIF_INTEN , AIF_TIMCFG , AIF_COUNT_L = 0x08 , AIF_COUNT_H , AIF_ATA_TCFG = 0x20 , AIF_ATA = 0x30 , AIF_ATACTL = 0x3C , AIF_RTC = 0x80 } |
enum | AIF_INUM { AIF_INUM_ATA0 = 0 , AIF_INUM_RTC , AIF_INUM_PCMCIA , AIF_INUM_COUNT } |
enum | RTC_REGS { RTC_SECONDS = 0x00 , RTC_SECONDS_ALARM , RTC_MINUTES , RTC_MINUTES_ALARM , RTC_HOURS , RTC_HOURS_ALARM , RTC_DAY_OF_WEEK , RTC_DAY_OF_MONTH , RTC_MONTH , RTC_YEAR , RTC_REG_A , RTC_REG_B , RTC_REG_C , RTC_REG_D } |
AIF and RTC registers
Definition in file aifregs.h.
#define AIF_INTR_ATA0 (1<<AIF_INUM_ATA0) |
#define AIF_INTR_PCMCIA (1<<AIF_INUM_PCMCIA) |
#define AIF_INTR_RTC (1<<AIF_INUM_RTC) |
#define AIF_REGBASE (SPD_REGBASE + 0x4000000) |
#define RTC_24H 0x02 |
#define RTC_DIV_RESET1 0x60 |
#define RTC_DM_BINARY 0x04 |
#define RTC_DST_EN 0x01 |
#define RTC_RATE_SELECT 0x0F |
#define RTC_REF_CLCK_4MHZ 0x00 |
#define RTC_UIP 0x80 |
#define USE_AIF_REGS |
#define USE_AIF_RTC_REGS |
enum AIF_INUM |
Enumerator | |
---|---|
AIF_INUM_ATA0 | |
AIF_INUM_RTC | |
AIF_INUM_PCMCIA | |
AIF_INUM_COUNT |
Definition at line 33 of file aifregs.h.
enum AIF_REGS |