diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-10 01:44:56 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-10 01:44:56 +0100 |
commit | bc24a225af2464dc30f88d6f930779cbf0e22b67 (patch) | |
tree | 6df682b479f89863159f836e1dc292623ab577e1 /hw/flash.h | |
parent | d4ec5228821b8bdd8019cb5dafa2ea3659ddb1f9 (diff) | |
download | qemu-bc24a225af2464dc30f88d6f930779cbf0e22b67.tar.gz qemu-bc24a225af2464dc30f88d6f930779cbf0e22b67.tar.bz2 qemu-bc24a225af2464dc30f88d6f930779cbf0e22b67.zip |
Follow coding conventions
Remove explicit struct qualifiers and rename structure types.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/flash.h')
-rw-r--r-- | hw/flash.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/hw/flash.h b/hw/flash.h index faba93d7e1..69aef8ce29 100644 --- a/hw/flash.h +++ b/hw/flash.h @@ -17,14 +17,14 @@ pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off, uint16_t unlock_addr0, uint16_t unlock_addr1); /* nand.c */ -struct nand_flash_s; -struct nand_flash_s *nand_init(int manf_id, int chip_id); -void nand_done(struct nand_flash_s *s); -void nand_setpins(struct nand_flash_s *s, +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_getpins(struct nand_flash_s *s, int *rb); -void nand_setio(struct nand_flash_s *s, uint8_t value); -uint8_t nand_getio(struct nand_flash_s *s); +void nand_getpins(NANDFlashState *s, int *rb); +void nand_setio(NANDFlashState *s, uint8_t value); +uint8_t nand_getio(NANDFlashState *s); #define NAND_MFR_TOSHIBA 0x98 #define NAND_MFR_SAMSUNG 0xec @@ -42,13 +42,13 @@ void *onenand_init(uint32_t id, int regshift, qemu_irq irq); void *onenand_raw_otp(void *opaque); /* ecc.c */ -struct ecc_state_s { +typedef struct { uint8_t cp; /* Column parity */ uint16_t lp[2]; /* Line parity */ uint16_t count; -}; +} ECCState; -uint8_t ecc_digest(struct ecc_state_s *s, uint8_t sample); -void ecc_reset(struct ecc_state_s *s); -void ecc_put(QEMUFile *f, struct ecc_state_s *s); -void ecc_get(QEMUFile *f, struct ecc_state_s *s); +uint8_t ecc_digest(ECCState *s, uint8_t sample); +void ecc_reset(ECCState *s); +void ecc_put(QEMUFile *f, ECCState *s); +void ecc_get(QEMUFile *f, ECCState *s); |