aboutsummaryrefslogtreecommitdiff
path: root/hw/flash.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-07-29 16:35:25 +0100
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-30 06:42:03 +0200
commitaf5a75f41c2fd172ceaa1cabd4bec99de8dde83a (patch)
tree771b3adfe834fa5014cf82987f35717d68725118 /hw/flash.h
parentd4220389ffcc1e6302e759d3b15f8605201d6369 (diff)
downloadqemu-af5a75f41c2fd172ceaa1cabd4bec99de8dde83a.zip
qemu-af5a75f41c2fd172ceaa1cabd4bec99de8dde83a.tar.gz
qemu-af5a75f41c2fd172ceaa1cabd4bec99de8dde83a.tar.bz2
onenand: Pass BlockDriverState to init function
Pass the BlockDriverState to the onenand init function so it doesn't need to look up the drive 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/flash.h b/hw/flash.h
index 43260ce..d61647f 100644
--- a/hw/flash.h
+++ b/hw/flash.h
@@ -38,7 +38,8 @@ uint32_t nand_getbuswidth(DeviceState *dev);
/* onenand.c */
void onenand_base_update(void *opaque, target_phys_addr_t new);
void onenand_base_unmap(void *opaque);
-void *onenand_init(uint32_t id, int regshift, qemu_irq irq);
+void *onenand_init(BlockDriverState *bdrv, uint32_t id,
+ int regshift, qemu_irq irq);
void *onenand_raw_otp(void *opaque);
/* ecc.c */