oops, one URL fix was missing. Add new DirectHW URL
[coreboot.git] / util / nvramtool / cmos_lowlevel.h
index ebe82a7a11257455549c4f6b112049257ffe6ca2..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);
+
 #define CMOS_AREA_OUT_OF_RANGE (CMOS_RESULT_START + 0)
 #define CMOS_AREA_OVERLAPS_RTC (CMOS_RESULT_START + 1)
 #define CMOS_AREA_TOO_WIDE (CMOS_RESULT_START + 2)