summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h')
-rw-r--r--uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h
new file mode 100644
index 0000000..c28c011
--- /dev/null
+++ b/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h
@@ -0,0 +1,24 @@
+#ifndef CDEFS_H
+#define CDEFS_H
+
+#define AHBBASE 0xFFF00000
+#define FLASH_BASE (0x7F000000)
+#define ROMCON (AHBBASE + 0x1004)
+#define W90N745_FLASH_SIZE (0x40000<<(( *((UINT *)ROMCON)>>16 )&0x7))
+#define FLASH_BLOCK_SIZE (0x10000)
+#define FLASH_SIZE (W90N745_FLASH_SIZE)
+//------------------------------------------------------------------------------
+#define UINT16 u16
+typedef int INT;
+typedef int SIGNED;
+typedef unsigned int UNSIGNED;
+typedef unsigned int UINT;
+typedef unsigned int UINT32;
+typedef unsigned char UCHAR;
+typedef char CHAR;
+typedef void VOID;
+typedef unsigned long ULONG;
+#define NULL 0
+
+//------------------------------------------------------------------------------
+#endif