Move CMOS handling into separate files in accessors

Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6313 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Patrick Georgi
2011-01-28 07:54:11 +00:00
committed by Patrick Georgi
parent 49a74437aa
commit 1e916e0766
6 changed files with 168 additions and 151 deletions

View File

@@ -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);