aboutsummaryrefslogtreecommitdiff
path: root/hw/m48t08.h
blob: 2a754b698e6e4f421b76c718b0a4cf5b7a32a5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#if !defined (__M48T08_H__)
#define __M48T08_H__

typedef struct m48t08_t m48t08_t;

void m48t08_write (m48t08_t *NVRAM, uint32_t val);
uint32_t m48t08_read (m48t08_t *NVRAM);
void m48t08_set_addr (m48t08_t *NVRAM, uint32_t addr);
void m48t08_toggle_lock (m48t08_t *NVRAM, int lock);
m48t08_t *m48t08_init(uint32_t mem_base, uint16_t size);

#endif /* !defined (__M48T08_H__) */