Barrelfish
Macros | Functions
cmos.h File Reference

CMOS memory interface. More...

Macros

#define CMOS_RAM_SHUTDOWN_ADDR   0x0f
 
#define CMOS_RAM_WARM_SHUTDOWN   0x0a
 

Functions

void cmos_write (int addr, uint8_t b)
 This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values. More...
 

Detailed Description

CMOS memory interface.

Macro Definition Documentation

#define CMOS_RAM_SHUTDOWN_ADDR   0x0f

This byte is read upon startup after CPU reset in order to determine if the reset was used as a way to get out of 80286 protected mode.

#define CMOS_RAM_WARM_SHUTDOWN   0x0a

Shutdown with FAR JMP (immediate jmp to address at 0:[0467H])

See also
CMOS_RAM_BIOS_WARM_START_INIT_VECTOR

Function Documentation

void cmos_write ( int  addr,
uint8_t  b 
)

This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values.

Parameters
tpointer to a rtc_time struct