patch-2.4.22 linux-2.4.22/include/asm-mips/gt64120/momenco_ocelot/gt64120_dep.h
Next file: linux-2.4.22/include/asm-mips/gt64120.h
Previous file: linux-2.4.22/include/asm-mips/gt64120/mips-boards/gt64120_dep.h
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-mips/gt64120/momenco_ocelot/gt64120_dep.h
- Orig date:
2001-09-09 10:43:01.000000000 -0700
diff -urN linux-2.4.21/include/asm-mips/gt64120/momenco_ocelot/gt64120_dep.h linux-2.4.22/include/asm-mips/gt64120/momenco_ocelot/gt64120_dep.h
@@ -1,29 +1,21 @@
-/***********************************************************************
+/*
* Copyright 2001 MontaVista Software Inc.
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
*
- * include/asm-mips/gt64120/momenco-ocelot/gt64120-dep.h
- * Board-dependent definitions for GT-64120 chip.
- *
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
- ***********************************************************************
*/
-
#ifndef _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H
#define _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H
-#include <asm/addrspace.h> /* for KSEG1ADDR() */
-#include <asm/byteorder.h> /* for cpu_to_le32() */
-
/*
- * PCI address allocation
+ * PCI address allocation
*/
-#define GT_PCI_MEM_BASE (0x22000000)
+#define GT_PCI_MEM_BASE (0x22000000UL)
#define GT_PCI_MEM_SIZE GT_DEF_PCI0_MEM0_SIZE
-#define GT_PCI_IO_BASE (0x20000000)
+#define GT_PCI_IO_BASE (0x20000000UL)
#define GT_PCI_IO_SIZE GT_DEF_PCI0_IO_SIZE
extern unsigned long gt64120_base;
@@ -31,19 +23,8 @@
#define GT64120_BASE (gt64120_base)
/*
- * Because of an error/peculiarity in the Galileo chip, we need to swap the
- * bytes when running bigendian.
- */
-
-#define GT_WRITE(ofs, data) \
- *(volatile u32 *)(GT64120_BASE+ofs) = cpu_to_le32(data)
-#define GT_READ(ofs, data) \
- *data = le32_to_cpu(*(volatile u32 *)(GT64120_BASE+ofs))
-
-
-/*
- * gt timer irq
+ * GT timer irq
*/
-#define TIMER 6
+#define GT_TIMER 6
#endif /* _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)