2004-04-13 04:39:29 +08:00
|
|
|
#if !defined (__M48T59_H__)
|
|
|
|
#define __M48T59_H__
|
|
|
|
|
2004-04-13 04:54:52 +08:00
|
|
|
typedef struct m48t59_t m48t59_t;
|
|
|
|
|
|
|
|
void m48t59_write (m48t59_t *NVRAM, uint32_t val);
|
|
|
|
uint32_t m48t59_read (m48t59_t *NVRAM);
|
|
|
|
void m48t59_set_addr (m48t59_t *NVRAM, uint32_t addr);
|
2004-05-24 05:17:08 +08:00
|
|
|
void m48t59_toggle_lock (m48t59_t *NVRAM, int lock);
|
2004-06-22 00:49:53 +08:00
|
|
|
m48t59_t *m48t59_init (int IRQ, uint32_t io_base,
|
|
|
|
uint32_t mem_base, uint16_t size);
|
2004-04-13 04:39:29 +08:00
|
|
|
|
|
|
|
#endif /* !defined (__M48T59_H__) */
|