diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2010-06-25 11:09:21 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:36:28 -0500 |
commit | 5fce2b3e46b697230996568e1fed39d02a6bedb2 (patch) | |
tree | e3509a473032f8a4192e245fe47f6ce1195c2dbb /hw/eeprom93xx.h | |
parent | 7685ee6abcb939104801f84b3fe9645412528088 (diff) |
eepro100: Add a dev field to eeprom new/free functions
This allows us to create a more meaningful savevm string.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eeprom93xx.h')
-rw-r--r-- | hw/eeprom93xx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/eeprom93xx.h b/hw/eeprom93xx.h index 47282d381e..8ba0e287f2 100644 --- a/hw/eeprom93xx.h +++ b/hw/eeprom93xx.h @@ -23,10 +23,10 @@ typedef struct _eeprom_t eeprom_t; /* Create a new EEPROM with (nwords * 2) bytes. */ -eeprom_t *eeprom93xx_new(uint16_t nwords); +eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords); /* Destroy an existing EEPROM. */ -void eeprom93xx_free(eeprom_t *eeprom); +void eeprom93xx_free(DeviceState *dev, eeprom_t *eeprom); /* Read from the EEPROM. */ uint16_t eeprom93xx_read(eeprom_t *eeprom); |