[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/13] nand: pin values are uint8_t
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 06/13] nand: pin values are uint8_t |
Date: |
Thu, 10 Mar 2011 12:54:23 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/flash.h | 4 ++--
hw/nand.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/flash.h b/hw/flash.h
index d7d103e..c22e1a9 100644
--- a/hw/flash.h
+++ b/hw/flash.h
@@ -21,8 +21,8 @@ pflash_t *pflash_cfi02_register(target_phys_addr_t base,
ram_addr_t off,
typedef struct NANDFlashState NANDFlashState;
NANDFlashState *nand_init(int manf_id, int chip_id);
void nand_done(NANDFlashState *s);
-void nand_setpins(NANDFlashState *s,
- int cle, int ale, int ce, int wp, int gnd);
+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);
diff --git a/hw/nand.c b/hw/nand.c
index f414aa1..9f978d8 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -52,7 +52,7 @@ struct NANDFlashState {
BlockDriverState *bdrv;
int mem_oob;
- int cle, ale, ce, wp, gnd;
+ uint8_t cle, ale, ce, wp, gnd;
uint8_t io[MAX_PAGE + MAX_OOB + 0x400];
uint8_t *ioaddr;
@@ -329,8 +329,8 @@ static int nand_load(QEMUFile *f, void *opaque, int
version_id)
*
* CE, WP and R/B are active low.
*/
-void nand_setpins(NANDFlashState *s,
- int cle, int ale, int ce, int wp, int gnd)
+void nand_setpins(NANDFlashState *s, uint8_t cle, uint8_t ale,
+ uint8_t ce, uint8_t wp, uint8_t gnd)
{
s->cle = cle;
s->ale = ale;
--
1.7.4
- [Qemu-devel] [PATCH 00/13] VMState port more devices, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 01/13] pxa2xx_lcd: name anonymous struct, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 02/13] pxa2xx_lcd: up field is used as a bool and migrated as an uint8_t, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 03/13] vmstate: port pxa2xx_lcd, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 05/13] vmstate: port max111x, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 04/13] max111x: input field is only used as uint8_t, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 07/13] vmstate: port nand, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 09/13] vmstate: port mac_nvram, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 10/13] piix4: create PIIX4State, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 06/13] nand: pin values are uint8_t,
Juan Quintela <=
- [Qemu-devel] [PATCH 08/13] mac_nvram: size is a size, no need to be a target dependent type, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 13/13] vmstate: port mac_dbdma, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 12/13] mac_dbdma: create DBDMAState instead of passing one array around, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 11/13] vmstate: port piix4, Juan Quintela, 2011/03/10