mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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
This commit is contained in:
parent
f442e08b41
commit
02cb1585fd
2 changed files with 130 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue