2004-04-12 20:39:29 +00:00
|
|
|
#if !defined (__M48T59_H__)
|
|
|
|
#define __M48T59_H__
|
|
|
|
|
2004-04-12 20:54:52 +00:00
|
|
|
typedef struct m48t59_t m48t59_t;
|
|
|
|
|
2005-10-30 16:58:32 +00:00
|
|
|
void m48t59_write (m48t59_t *NVRAM, uint32_t addr, uint32_t val);
|
|
|
|
uint32_t m48t59_read (m48t59_t *NVRAM, uint32_t addr);
|
2004-05-23 21:17:08 +00:00
|
|
|
void m48t59_toggle_lock (m48t59_t *NVRAM, int lock);
|
2007-05-19 12:58:30 +00:00
|
|
|
m48t59_t *m48t59_init (qemu_irq IRQ, target_phys_addr_t mem_base,
|
2005-10-30 16:58:32 +00:00
|
|
|
uint32_t io_base, uint16_t size,
|
|
|
|
int type);
|
2004-04-12 20:39:29 +00:00
|
|
|
|
|
|
|
#endif /* !defined (__M48T59_H__) */
|