summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2011-04-12 20:55:03 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2011-04-12 20:55:03 (GMT)
commit81dab211200deb1f6b665810ab0e430181cf7bfd (patch)
tree1bc72e789dda7952551b58c5b4684456b692b602 /uClinux-2.4.20-uc1/include/asm-armnommu/arch-W90N745/cdefs.h
parent53d491d04770dac7e402b20340561ccb399981c9 (diff)
downloadopenipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.zip
openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.gz
openipcam-81dab211200deb1f6b665810ab0e430181cf7bfd.tar.bz2
Architecture specific stuff, basically, without drivers.
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