summaryrefslogtreecommitdiff
path: root/hw/mips.h
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-13 19:23:00 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-13 19:23:00 +0000
commit02cb1585fdf732f2b776c079f736028520aab4f4 (patch)
tree763444d3726b4d256e86b94c8f38239ba0920fb3 /hw/mips.h
parentf442e08b418785e13b1161edfa9e0c72cc324c41 (diff)
downloadqemu-02cb1585fdf732f2b776c079f736028520aab4f4.tar.gz
ds1225y nvram: Fix some bugs
- whole nvram was erased in some conditions - fix out of range accesses - improve reading speed by keeping contents in memory - rename capacity to chip_size (Hervé Poussineau) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4051 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips.h')
-rw-r--r--hw/mips.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips.h b/hw/mips.h
index 0196b6cedf..f4599a43da 100644
--- a/hw/mips.h
+++ b/hw/mips.h
@@ -6,8 +6,8 @@
PCIBus *pci_gt64120_init(qemu_irq *pic);
/* ds1225y.c */
-typedef struct ds1225y_t ds1225y_t;
-ds1225y_t *ds1225y_init(target_phys_addr_t mem_base, const char *filename);
+void *ds1225y_init(target_phys_addr_t mem_base, const char *filename);
+void ds1225y_set_protection(void *opaque, int protection);
/* mipsnet.c */
void mipsnet_init(int base, qemu_irq irq, NICInfo *nd);