ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | CMOS_CLOCK |
struct | CMOS_MEMORY |
Macros | |
#define | RTC_IRQ_NUMBER 8 |
#define | CMOS_ADDRESS_PORT 0x70 |
#define | CMOS_DATA_PORT 0x71 |
#define | CMOS_DISABLE_NMI (1 << 7) |
#define | CMOS_BATTERY_OK 0x80 |
#define | CMOS_STB_DST (1 << 0) |
#define | CMOS_STB_24HOUR (1 << 1) |
#define | CMOS_STB_BINARY (1 << 2) |
#define | CMOS_STB_SQUARE_WAVE (1 << 3) |
#define | CMOS_STB_INT_ON_UPDATE (1 << 4) |
#define | CMOS_STB_INT_ON_ALARM (1 << 5) |
#define | CMOS_STB_INT_PERIODIC (1 << 6) |
#define | CMOS_STB_UPDATE_CYCLE (1 << 7) |
#define | CMOS_STC_UF (1 << 4) |
#define | CMOS_STC_AF (1 << 5) |
#define | CMOS_STC_PF (1 << 6) |
#define | CMOS_STC_IRQF (1 << 7) |
#define | CMOS_DEFAULT_STA 0x26 |
#define | CMOS_DEFAULT_STB CMOS_STB_24HOUR |
#define | CMOS_EQUIPMENT_LIST 0x6F |
#define | WRITE_CMOS_DATA(Cmos, Value) ((Cmos).StatusRegB & CMOS_STB_BINARY) ? (Value) : BCD_TO_BINARY(Value) |
#define | READ_CMOS_DATA(Cmos, Value) ((Cmos).StatusRegB & CMOS_STB_BINARY) ? (Value) : BINARY_TO_BCD(Value) |
Typedefs | |
typedef enum _CMOS_REGISTERS | CMOS_REGISTERS |
typedef enum _CMOS_REGISTERS * | PCMOS_REGISTERS |
typedef struct CMOS_CLOCK * | PCMOS_CLOCK |
typedef struct CMOS_MEMORY * | PCMOS_MEMORY |
Enumerations | |
enum | _CMOS_REGISTERS { CMOS_REG_SECONDS , CMOS_REG_ALARM_SEC , CMOS_REG_MINUTES , CMOS_REG_ALARM_MIN , CMOS_REG_HOURS , CMOS_REG_ALARM_HRS , CMOS_REG_DAY_OF_WEEK , CMOS_REG_DAY , CMOS_REG_MONTH , CMOS_REG_YEAR , CMOS_REG_STATUS_A , CMOS_REG_STATUS_B , CMOS_REG_STATUS_C , CMOS_REG_STATUS_D , CMOS_REG_DIAGNOSTICS , CMOS_REG_SHUTDOWN_STATUS , CMOS_REG_EQUIPMENT_LIST = 0x14 , CMOS_REG_BASE_MEMORY_LOW = 0x15 , CMOS_REG_BASE_MEMORY_HIGH = 0x16 , CMOS_REG_EXT_MEMORY_LOW = 0x17 , CMOS_REG_EXT_MEMORY_HIGH = 0x18 , CMOS_REG_SYSOP = 0x2D , CMOS_REG_ACTUAL_EXT_MEMORY_LOW = 0x30 , CMOS_REG_ACTUAL_EXT_MEMORY_HIGH = 0x31 , CMOS_REG_CENTURY = 0x32 , CMOS_REG_MAX = 0x40 } |
Functions | |
C_ASSERT (sizeof(CMOS_MEMORY)==0x40) | |
BOOLEAN | IsNmiEnabled (VOID) |
DWORD | RtcGetTicksPerSecond (VOID) |
VOID | CmosInitialize (VOID) |
VOID | CmosCleanup (VOID) |
#define CMOS_DEFAULT_STB CMOS_STB_24HOUR |
#define READ_CMOS_DATA | ( | Cmos, | |
Value | |||
) | ((Cmos).StatusRegB & CMOS_STB_BINARY) ? (Value) : BINARY_TO_BCD(Value) |
#define WRITE_CMOS_DATA | ( | Cmos, | |
Value | |||
) | ((Cmos).StatusRegB & CMOS_STB_BINARY) ? (Value) : BCD_TO_BINARY(Value) |
typedef enum _CMOS_REGISTERS CMOS_REGISTERS |
typedef struct CMOS_CLOCK * PCMOS_CLOCK |
typedef struct CMOS_MEMORY * PCMOS_MEMORY |
typedef enum _CMOS_REGISTERS * PCMOS_REGISTERS |
Definition at line 50 of file cmos.h.
C_ASSERT | ( | sizeof(CMOS_MEMORY) | = =0x40 | ) |
Definition at line 568 of file cmos.c.
Referenced by EmulatorCleanup().
Definition at line 460 of file cmos.c.
Referenced by EmulatorInitialize().