summaryrefslogtreecommitdiffstats
path: root/msys_doc.h
diff options
context:
space:
mode:
authorOllie Lho <ollie@sis.com.tw>2005-11-26 21:55:36 +0000
committerOllie Lho <ollie@sis.com.tw>2005-11-26 21:55:36 +0000
commit184a4040333ccfe624d8765864458b21bb55d1e1 (patch)
tree730168012ceeb517f9c3d14e02f21be6c75cf107 /msys_doc.h
parent8a10d5a631bddff703fdcfd5b33ac76cdc02fb63 (diff)
downloadast2050-flashrom-184a4040333ccfe624d8765864458b21bb55d1e1.zip
ast2050-flashrom-184a4040333ccfe624d8765864458b21bb55d1e1.tar.gz
Flashrom update from Stefan, resolve issue 21
Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
Diffstat (limited to 'msys_doc.h')
-rw-r--r--msys_doc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/msys_doc.h b/msys_doc.h
index 3e2028b..02da23c 100644
--- a/msys_doc.h
+++ b/msys_doc.h
@@ -69,7 +69,7 @@
#define doc_read(base,reg) \
- (*(volatile unsigned char *)(base + MSYSTEMS_DOC_R_##reg))
+ (*(volatile uint8_t *)(base + MSYSTEMS_DOC_R_##reg))
#define doc_read_nop(base) \
doc_read(base, NOP)
@@ -81,7 +81,7 @@
{ doc_read_2nop(base); doc_read_2nop(base); }
#define doc_write(data,base,reg) \
- (*(volatile unsigned char *)(base + MSYSTEMS_DOC_W_##reg)) = data
+ (*(volatile uint8_t *)(base + MSYSTEMS_DOC_W_##reg)) = data
#define doc_write_nop(base) \
doc_write(0, base, NOP)
@@ -101,9 +101,9 @@
extern int probe_md2802(struct flashchip *flash);
-extern int read_md2802(struct flashchip *flash, unsigned char *buf);
+extern int read_md2802(struct flashchip *flash, uint8_t *buf);
extern int erase_md2802(struct flashchip *flash);
-extern int write_md2802(struct flashchip *flash, unsigned char *buf);
+extern int write_md2802(struct flashchip *flash, uint8_t *buf);
OpenPOWER on IntegriCloud