#define BIOS_OPEN 0xf100 #define BIOS_CLOSE 0xf200 #define BIOS_GET 0xf300 #define BIOS_SET 0xf400 #define BIOS_POWERSW_MODE 0x0100 # define POWERSW_BOOT 0x0000 # define POWERSW_HIBER 0x0001 #define BIOS_VOL 0x0109 # define VOL_OFF 0x0000 # define VOL_LOW 0x0001 # define VOL_MID 0x0002 # define VOL_HIGH 0x0003 #define BIOS_SYS_BEEP 0x010a #define BIOS_BATT_ALARM 0x010b #define BIOS_PANEL_ALARM 0x010c #define BIOS_PANELSW 0x010d #define BIOS_WAKEUP_DATE 0x010e #define BIOS_WAKEUP_TIME 0x010f #define BIOS_AUTOOFF 0x0110 #define BIOS_STANDBYTIME 0x0125 # define TIME_UNLIMIT 0x0002 # define TIME_00 0x0001 # define TIME_05 0x0010 # define TIME_10 0x0020 # define TIME_15 0x0040 # define TIME_20 0x0080 # define TIME_25 0x0100 # define TIME_30 0x0200 # define TIME_35 0x0400 # define TIME_40 0x0800 # define TIME_45 0x1000 # define TIME_50 0x2000 # define TIME_55 0x4000 # define TIME_60 0x8000 #define BIOS_SUSPEND 0x012d #define BIOS_LCD 0x0305 extern u_short bios_read(short, u_short *); extern u_short bios_write(short, u_short);