diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 03:10:11 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 09:44:33 -0800 |
commit | 81fbc637185fb0007dbe84c866794800851295b5 (patch) | |
tree | f4becaf14928d69a1141ff9bb6ed03738e14ed63 /src/flash/nand.h | |
parent | 5e9d18f027954c5f5e883934d6c54cb20817ea9f (diff) |
src/flash: remove 'extern' and wrap headers
Removes 'extern' keywords from function prototypes in the flash headers.
Wraps long lines to fit into 80 columns.
Adds multiple inclusion protection for s3c2xx_nand.h.
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r-- | src/flash/nand.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h index d8674943..16558c2b 100644 --- a/src/flash/nand.h +++ b/src/flash/nand.h @@ -206,16 +206,23 @@ enum oob_formats NAND_OOB_YAFFS2 = 0x100,/* when writing, use YAFFS2 OOB layout */ }; -/* Function prototypes */ -extern nand_device_t *get_nand_device_by_num(int num); -extern int nand_read_page_raw(struct nand_device_s *device, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); -extern int nand_write_page_raw(struct nand_device_s *device, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); -extern int nand_read_status(struct nand_device_s *device, uint8_t *status); -extern int nand_calculate_ecc(struct nand_device_s *device, const uint8_t *dat, uint8_t *ecc_code); -extern int nand_calculate_ecc_kw(struct nand_device_s *device, const uint8_t *dat, uint8_t *ecc_code); - -extern int nand_register_commands(struct command_context_s *cmd_ctx); -extern int nand_init(struct command_context_s *cmd_ctx); + +nand_device_t *get_nand_device_by_num(int num); + +int nand_read_page_raw(struct nand_device_s *device, uint32_t page, + uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); +int nand_write_page_raw(struct nand_device_s *device, uint32_t page, + uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); + +int nand_read_status(struct nand_device_s *device, uint8_t *status); + +int nand_calculate_ecc(struct nand_device_s *device, + const uint8_t *dat, uint8_t *ecc_code); +int nand_calculate_ecc_kw(struct nand_device_s *device, + const uint8_t *dat, uint8_t *ecc_code); + +int nand_register_commands(struct command_context_s *cmd_ctx); +int nand_init(struct command_context_s *cmd_ctx); /// helper for parsing a nand device command argument string int nand_command_get_device_by_num(struct command_context_s *cmd_ctx, |