X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=util%2Fnvramtool%2Fcmos_lowlevel.h;h=264bf85b6629142d09a08ac83eed2c4ef16fd499;hb=1e916e076640c133dd32d69804325db02f1707be;hp=3c2efce1e1f05dae16247b3bc5df0d5c3048adc1;hpb=49a74437aab0c253243e62aca20966cf22f864e6;p=coreboot.git diff --git a/util/nvramtool/cmos_lowlevel.h b/util/nvramtool/cmos_lowlevel.h index 3c2efce1e..264bf85b6 100644 --- a/util/nvramtool/cmos_lowlevel.h +++ b/util/nvramtool/cmos_lowlevel.h @@ -34,6 +34,13 @@ #include "common.h" #include "layout.h" +typedef struct { + void (*init)(void* data); + unsigned char (*read)(unsigned addr); + void (*write)(unsigned addr, unsigned char value); + void (*set_iopl)(int level); +} cmos_access_t; + typedef enum { HAL_CMOS, HAL_MEMORY } hal_t; void select_hal(hal_t hal, void *data);