summaryrefslogtreecommitdiff
path: root/util/nvramtool/cmos_lowlevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvramtool/cmos_lowlevel.h')
-rw-r--r--util/nvramtool/cmos_lowlevel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/nvramtool/cmos_lowlevel.h b/util/nvramtool/cmos_lowlevel.h
index 3c2efce1e1..264bf85b66 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);