summaryrefslogtreecommitdiff
path: root/hw/flash.h
diff options
context:
space:
mode:
authorJuha Riihimäki <juha.riihimaki@nokia.com>2011-07-29 16:35:21 +0100
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-30 06:09:32 +0200
commit48197dfa6a26fa1807f19f510a2e840bb3885680 (patch)
treec93fc82ffbef046f518212963722f3d8ffdd8756 /hw/flash.h
parentac2466cdc625d0cf9e7a885b7901084ac59d507f (diff)
downloadqemu-48197dfa6a26fa1807f19f510a2e840bb3885680.tar.gz
hw/nand: Support devices wider than 8 bits
Support NAND devices which are wider than 8 bits. Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> [Riku Voipio: Fixes and restructuring patchset] Signed-off-by: Riku Voipio <riku.voipio@iki.fi> [Peter Maydell: More fixes and cleanups for upstream submission] 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/flash.h b/hw/flash.h
index a992bb8157..132ad299d3 100644
--- a/hw/flash.h
+++ b/hw/flash.h
@@ -24,8 +24,9 @@ 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);
void nand_getpins(NANDFlashState *s, int *rb);
-void nand_setio(NANDFlashState *s, uint8_t value);
-uint8_t nand_getio(NANDFlashState *s);
+void nand_setio(NANDFlashState *s, uint32_t value);
+uint32_t nand_getio(NANDFlashState *s);
+uint32_t nand_getbuswidth(NANDFlashState *s);
#define NAND_MFR_TOSHIBA 0x98
#define NAND_MFR_SAMSUNG 0xec