summaryrefslogtreecommitdiffstats
path: root/82802ab.h
diff options
context:
space:
mode:
authorOllie Lho <ollie@sis.com.tw>2004-03-20 16:46:10 +0000
committerOllie Lho <ollie@sis.com.tw>2004-03-20 16:46:10 +0000
commit761bf1bdb7268f8818dd22b15e944365afdf1459 (patch)
treeecbd632c87d64c6651f84a705ce4c3861108069d /82802ab.h
parent73eca80d9b28bfc38fa4b8d2ef9c580840133a38 (diff)
downloadast2050-flashrom-761bf1bdb7268f8818dd22b15e944365afdf1459.zip
ast2050-flashrom-761bf1bdb7268f8818dd22b15e944365afdf1459.tar.gz
Consolidate more jedec standard code
Corresponding to flashrom svn r15 and coreboot v2 svn r1457.
Diffstat (limited to '82802ab.h')
-rw-r--r--82802ab.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/82802ab.h b/82802ab.h
index 61e7f10..0542068 100644
--- a/82802ab.h
+++ b/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__ */
OpenPOWER on IntegriCloud