mirror of
https://github.com/qemu/qemu.git
synced 2025-08-09 01:50:43 +00:00
PPC: mac_nvram: Remove unused functions
The macio_nvram_read and macio_nvram_write functions are never called, just remove them. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
d696760b43
commit
a8b0503701
@ -39,29 +39,6 @@
|
|||||||
|
|
||||||
#define DEF_SYSTEM_SIZE 0xc10
|
#define DEF_SYSTEM_SIZE 0xc10
|
||||||
|
|
||||||
/* Direct access to NVRAM */
|
|
||||||
uint8_t macio_nvram_read(MacIONVRAMState *s, uint32_t addr)
|
|
||||||
{
|
|
||||||
uint32_t ret;
|
|
||||||
|
|
||||||
if (addr < s->size) {
|
|
||||||
ret = s->data[addr];
|
|
||||||
} else {
|
|
||||||
ret = -1;
|
|
||||||
}
|
|
||||||
NVR_DPRINTF("read addr %04" PRIx32 " val %" PRIx8 "\n", addr, ret);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void macio_nvram_write(MacIONVRAMState *s, uint32_t addr, uint8_t val)
|
|
||||||
{
|
|
||||||
NVR_DPRINTF("write addr %04" PRIx32 " val %" PRIx8 "\n", addr, val);
|
|
||||||
if (addr < s->size) {
|
|
||||||
s->data[addr] = val;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* macio style NVRAM device */
|
/* macio style NVRAM device */
|
||||||
static void macio_nvram_writeb(void *opaque, hwaddr addr,
|
static void macio_nvram_writeb(void *opaque, hwaddr addr,
|
||||||
uint64_t value, unsigned size)
|
uint64_t value, unsigned size)
|
||||||
|
@ -178,6 +178,4 @@ typedef struct MacIONVRAMState {
|
|||||||
} MacIONVRAMState;
|
} MacIONVRAMState;
|
||||||
|
|
||||||
void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
|
void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
|
||||||
uint8_t macio_nvram_read(MacIONVRAMState *s, uint32_t addr);
|
|
||||||
void macio_nvram_write(MacIONVRAMState *s, uint32_t addr, uint8_t val);
|
|
||||||
#endif /* !defined(__PPC_MAC_H__) */
|
#endif /* !defined(__PPC_MAC_H__) */
|
||||||
|
Loading…
Reference in New Issue
Block a user