summaryrefslogtreecommitdiffstats
path: root/m29f400bt.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-05-09 10:17:44 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-05-09 10:17:44 +0000
commita7e0548cea45ec60616936c536efbb2a34605093 (patch)
tree8d31e1c7e3343980b1c0724103f39dbb5baae77a /m29f400bt.h
parent7977f4ef2ea478a5460e6730aa2adc23e9685be1 (diff)
downloadast2050-flashrom-a7e0548cea45ec60616936c536efbb2a34605093.zip
ast2050-flashrom-a7e0548cea45ec60616936c536efbb2a34605093.tar.gz
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 changes are needed. Corresponding to flashrom svn r108 and coreboot v2 svn r2643. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'm29f400bt.h')
-rw-r--r--m29f400bt.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/m29f400bt.h b/m29f400bt.h
index 30a7ee8..965f731 100644
--- a/m29f400bt.h
+++ b/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;
OpenPOWER on IntegriCloud