summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/system-arm.h')
-rw-r--r--firmware/target/arm/system-arm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/system-arm.h b/firmware/target/arm/system-arm.h
index 1a9cccc711..aeb90df399 100644
--- a/firmware/target/arm/system-arm.h
+++ b/firmware/target/arm/system-arm.h
@@ -22,6 +22,15 @@
22#define nop \ 22#define nop \
23 asm volatile ("nop") 23 asm volatile ("nop")
24 24
25//#define outw(v,a) *(volatile unsigned short *)(a+PHY_IO_BASE) = (v)
26#ifndef outw
27#define outw(v,p) (*((unsigned short*)(p + PHY_IO_BASE)) = v)
28#endif
29
30#ifndef inw
31#define inw(p) (*((unsigned short*)(p + PHY_IO_BASE)))
32#endif
33
25/* This gets too complicated otherwise with all the ARM variation and would 34/* This gets too complicated otherwise with all the ARM variation and would
26 have conflicts with another system-target.h elsewhere so include a 35 have conflicts with another system-target.h elsewhere so include a
27 subheader from here. */ 36 subheader from here. */