diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-05-09 10:17:44 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-05-09 10:17:44 +0000 |
commit | c7dc7cc196a4bd5ba1cfafc87b193b89ae01a470 (patch) | |
tree | 06360b19621400a94e7ea8fa8c4a33e33392197b /util/flashrom/m29f400bt.h | |
parent | 33d1af37ae58c34288ae5fad9879a2ea2b752620 (diff) |
Fix coding style of flashrom by running indent on all files:
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch]
Some minor fixups were required, and maybe a few more cosmetic
changeѕ are needed.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/m29f400bt.h')
-rw-r--r-- | util/flashrom/m29f400bt.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/util/flashrom/m29f400bt.h b/util/flashrom/m29f400bt.h index 30a7ee800d..965f731b8c 100644 --- a/util/flashrom/m29f400bt.h +++ b/util/flashrom/m29f400bt.h @@ -5,10 +5,10 @@ extern int probe_m29f400bt(struct flashchip *flash); extern int erase_m29f400bt(struct flashchip *flash); -extern int block_erase_m29f400bt(volatile uint8_t *bios, volatile uint8_t *dst); +extern int block_erase_m29f400bt(volatile uint8_t *bios, + volatile uint8_t *dst); extern int write_m29f400bt(struct flashchip *flash, uint8_t *buf); -extern int write_linuxbios_m29f400bt(struct flashchip *flash, - uint8_t *buf); +extern int write_linuxbios_m29f400bt(struct flashchip *flash, uint8_t *buf); extern __inline__ void toggle_ready_m29f400bt(volatile uint8_t *dst) { @@ -44,23 +44,24 @@ extern __inline__ void data_polling_m29f400bt(volatile uint8_t *dst, extern __inline__ void protect_m29f400bt(volatile uint8_t *bios) { - *(volatile uint8_t *) (bios + 0xAAA) = 0xAA; - *(volatile uint8_t *) (bios + 0x555) = 0x55; - *(volatile uint8_t *) (bios + 0xAAA) = 0xA0; + *(volatile uint8_t *)(bios + 0xAAA) = 0xAA; + *(volatile uint8_t *)(bios + 0x555) = 0x55; + *(volatile uint8_t *)(bios + 0xAAA) = 0xA0; usleep(200); } -extern __inline__ void write_page_m29f400bt(volatile uint8_t *bios, uint8_t *src, +extern __inline__ void write_page_m29f400bt(volatile uint8_t *bios, + uint8_t *src, volatile uint8_t *dst, int page_size) { int i; for (i = 0; i < page_size; i++) { - *(volatile uint8_t *) (bios + 0xAAA) = 0xAA; - *(volatile uint8_t *) (bios + 0x555) = 0x55; - *(volatile uint8_t *) (bios + 0xAAA) = 0xA0; + *(volatile uint8_t *)(bios + 0xAAA) = 0xAA; + *(volatile uint8_t *)(bios + 0x555) = 0x55; + *(volatile uint8_t *)(bios + 0xAAA) = 0xA0; /* transfer data from source to destination */ *dst = *src; |