MC_NVRAM_START
for (nreg = MC_NVRAM_START; nreg < MC_NVRAM_CSUM;
return mc146818_read(RTC, byteno + MC_NVRAM_START) & 0xff;
uint8_t buf[MC_NVRAM_CSUM - MC_NVRAM_START + 1];
offset = uio->uio_offset + MC_NVRAM_START;
for (csum = 0, nreg = MC_NVRAM_START; nreg < MC_NVRAM_CSUM; nreg++)
#define MC_NVRAM_CSUM (MC_NVRAM_START + MC_NVRAM_SIZE - 2)
#define NVRAM_SUM (MC_NVRAM_START + CMOS_SUM)
#define NVRAM_BIOSSPEC (MC_NVRAM_START + CMOS_BIOSSPEC)
#define NVRAM_DIAG (MC_NVRAM_START + 0) /* RTC offset 0xe */
#define NVRAM_RESET (MC_NVRAM_START + 1) /* RTC offset 0xf */
#define NVRAM_DISKETTE (MC_NVRAM_START + 2) /* RTC offset 0x10 */
#define NVRAM_EQUIPMENT (MC_NVRAM_START + 6)
#define NVRAM_BASELO (MC_NVRAM_START + 7) /* low byte; RTC off. 0x15 */
#define NVRAM_BASEHI (MC_NVRAM_START + 8) /* high byte; RTC off. 0x16 */
#define NVRAM_EXTLO (MC_NVRAM_START + 9) /* low byte; RTC off. 0x17 */
#define NVRAM_EXTHI (MC_NVRAM_START + 10) /* high byte; RTC off. 0x18 */
#define NVRAM_CENTURY (MC_NVRAM_START + 36) /* RTC offset 0x32 */
#define NVRAM_DIAG (MC_NVRAM_START + 0) /* RTC offset 0xe */
#define NVRAM_RESET (MC_NVRAM_START + 1) /* RTC offset 0xf */
#define NVRAM_DISKETTE (MC_NVRAM_START + 2) /* RTC offset 0x10 */
#define NVRAM_EQUIPMENT (MC_NVRAM_START + 6)
#define NVRAM_BASELO (MC_NVRAM_START + 7) /* low byte; RTC off. 0x15 */
#define NVRAM_BASEHI (MC_NVRAM_START + 8) /* high byte; RTC off. 0x16 */
#define NVRAM_EXTLO (MC_NVRAM_START + 9) /* low byte; RTC off. 0x17 */
#define NVRAM_EXTHI (MC_NVRAM_START + 10) /* high byte; RTC off. 0x18 */
#define NVRAM_CENTURY (MC_NVRAM_START + 36) /* RTC offset 0x32 */
#define NVRAM_DIAG (MC_NVRAM_START + 0) /* RTC offset 0xe */
#define NVRAM_RESET (MC_NVRAM_START + 1) /* RTC offset 0xf */
#define NVRAM_DISKETTE (MC_NVRAM_START + 2) /* RTC offset 0x10 */
#define NVRAM_EQUIPMENT (MC_NVRAM_START + 6)
#define NVRAM_BASELO (MC_NVRAM_START + 7) /* low byte; RTC off. 0x15 */
#define NVRAM_BASEHI (MC_NVRAM_START + 8) /* high byte; RTC off. 0x16 */
#define NVRAM_EXTLO (MC_NVRAM_START + 9) /* low byte; RTC off. 0x17 */
#define NVRAM_EXTHI (MC_NVRAM_START + 10) /* high byte; RTC off. 0x18 */
#define NVRAM_CENTURY (MC_NVRAM_START + 36) /* RTC offset 0x32 */
if (acpi_active && AcpiGbl_FADT.Century >= MC_NVRAM_START &&
AcpiGbl_FADT.Century < (MC_NVRAM_START + MC_NVRAM_SIZE))