aboutsummaryrefslogtreecommitdiff
path: root/hw/flash.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-07-29 16:35:19 +0100
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-30 06:00:45 +0200
commit522f253ca8c731aafc8e53087a18f6015c4e776e (patch)
tree894cdc4ed1e39119e6315a7add5fdb6a95cfa094 /hw/flash.h
parentc4f05c8cf715fa613e1985421080e62a7b169284 (diff)
downloadqemu-522f253ca8c731aafc8e53087a18f6015c4e776e.zip
qemu-522f253ca8c731aafc8e53087a18f6015c4e776e.tar.gz
qemu-522f253ca8c731aafc8e53087a18f6015c4e776e.tar.bz2
hw/nand: Pass block device state to init function
Pass the BlockDeviceState to the nand_init() function rather than having it look it up via drive_get() itself. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/flash.h')
-rw-r--r--hw/flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/flash.h b/hw/flash.h
index c22e1a9..a992bb8 100644
--- a/hw/flash.h
+++ b/hw/flash.h
@@ -19,7 +19,7 @@ pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off,
/* nand.c */
typedef struct NANDFlashState NANDFlashState;
-NANDFlashState *nand_init(int manf_id, int chip_id);
+NANDFlashState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id);
void nand_done(NANDFlashState *s);
void nand_setpins(NANDFlashState *s, uint8_t cle, uint8_t ale,
uint8_t ce, uint8_t wp, uint8_t gnd);