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:
committed by
Patrick Georgi
parent
49a74437aa
commit
1e916e0766
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user