diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-03-20 16:46:10 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-03-20 16:46:10 +0000 |
commit | fbf43ac5a6d90468b4f32c0ea0fc29bd41fabf87 (patch) | |
tree | 3cdf0a8d629f9e92cb432a41626255f3ae3dd806 /util/flash_and_burn/82802ab.h | |
parent | 6a1a1102ea2cd8aed7014c90241f8db7b71847f1 (diff) |
consolidate more jedec standard code
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1457 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flash_and_burn/82802ab.h')
-rw-r--r-- | util/flash_and_burn/82802ab.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/flash_and_burn/82802ab.h b/util/flash_and_burn/82802ab.h index 61e7f100af..05420685d6 100644 --- a/util/flash_and_burn/82802ab.h +++ b/util/flash_and_burn/82802ab.h @@ -1,11 +1,11 @@ #ifndef __82802AB_H__ #define __82802AB_H__ 1 -extern int probe_82802ab (struct flashchip * flash); -extern int erase_82802ab (struct flashchip * flash); -extern int write_82802ab (struct flashchip * flash, unsigned char * buf); +extern int probe_82802ab(struct flashchip *flash); +extern int erase_82802ab(struct flashchip *flash); +extern int write_82802ab(struct flashchip *flash, unsigned char *buf); -extern __inline__ void toggle_ready_82802ab (volatile char * dst) +extern __inline__ void toggle_ready_82802ab(volatile char *dst) { unsigned int i = 0; char tmp1, tmp2; @@ -21,7 +21,7 @@ extern __inline__ void toggle_ready_82802ab (volatile char * dst) } } -extern __inline__ void data_polling_82802ab (volatile char * dst, char data) +extern __inline__ void data_polling_82802ab(volatile char *dst, char data) { unsigned int i = 0; char tmp; @@ -36,7 +36,7 @@ extern __inline__ void data_polling_82802ab (volatile char * dst, char data) } } -extern __inline__ void protect_82802ab (volatile char * bios) +extern __inline__ void protect_82802ab(volatile char *bios) { *(volatile char *) (bios + 0x5555) = 0xAA; *(volatile char *) (bios + 0x2AAA) = 0x55; @@ -45,4 +45,4 @@ extern __inline__ void protect_82802ab (volatile char * bios) usleep(200); } -#endif /* !__82802AB_H__ */ +#endif /* !__82802AB_H__ */ |