Move CMOS handling into separate files in accessors
[coreboot.git] / util / nvramtool / cmos_lowlevel.h
index 3c2efce1e1f05dae16247b3bc5df0d5c3048adc1..264bf85b6629142d09a08ac83eed2c4ef16fd499 100644 (file)
 #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);