patch-2.4.19 linux-2.4.19/include/asm-mips/jazz.h
Next file: linux-2.4.19/include/asm-mips/jmr3927/ds1742rtc.h
Previous file: linux-2.4.19/include/asm-mips/it8172/it8172_int.h
Back to the patch index
Back to the overall index
- Lines: 128
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/asm-mips/jazz.h
- Orig date:
Sat May 13 08:31:25 2000
diff -urN linux-2.4.18/include/asm-mips/jazz.h linux-2.4.19/include/asm-mips/jazz.h
@@ -1,13 +1,12 @@
-/* $Id: jazz.h,v 1.9 1998/09/19 19:19:37 ralf Exp $
- *
+/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1995 - 1998 by Andreas Busse and Ralf Baechle
*/
-#ifndef __ASM_MIPS_JAZZ_H
-#define __ASM_MIPS_JAZZ_H
+#ifndef __ASM_JAZZ_H
+#define __ASM_JAZZ_H
/*
* The addresses below are virtual address. The mappings are
@@ -71,7 +70,7 @@
#define LED_E 0x9e
#define LED_F 0x8e
-#ifndef _LANGUAGE_ASSEMBLY
+#ifndef __ASSEMBLY__
extern __inline__ void pica_set_led(unsigned int bits)
{
@@ -80,7 +79,7 @@
*led_register = bits;
}
-#endif
+#endif /* !__ASSEMBLY__ */
/*
* Base address of the Sonic Ethernet adapter in Jazz machines.
@@ -101,7 +100,7 @@
#define JAZZ_KEYBOARD_DATA 0xe0005000
#define JAZZ_KEYBOARD_COMMAND 0xe0005001
-#ifndef _LANGUAGE_ASSEMBLY
+#ifndef __ASSEMBLY__
typedef struct {
unsigned char data;
@@ -120,7 +119,7 @@
*/
#define keyboard_hardware jazz_keyboard_hardware
-#endif
+#endif /* !__ASSEMBLY__ */
/*
* i8042 keyboard controller for most other Mips machines.
@@ -153,7 +152,7 @@
/*
* DRAM configuration register
*/
-#ifndef _LANGUAGE_ASSEMBLY
+#ifndef __ASSEMBLY__
#ifdef __MIPSEL__
typedef struct {
unsigned int bank2 : 3;
@@ -173,7 +172,7 @@
unsigned int bank2 : 3;
} dram_configuration;
#endif
-#endif /* _LANGUAGE_ASSEMBLY */
+#endif /* !__ASSEMBLY__ */
#define PICA_DRAM_CONFIG 0xe00fffe0
@@ -271,9 +270,9 @@
/*
* Access the R4030 DMA and I/O Controller
*/
-#ifndef _LANGUAGE_ASSEMBLY
+#ifndef __ASSEMBLY__
-extern inline void r4030_delay(void)
+static inline void r4030_delay(void)
{
__asm__ __volatile__(
".set\tnoreorder\n\t"
@@ -284,33 +283,33 @@
".set\treorder");
}
-extern inline unsigned short r4030_read_reg16(unsigned addr)
+static inline unsigned short r4030_read_reg16(unsigned addr)
{
unsigned short ret = *((volatile unsigned short *)addr);
r4030_delay();
return ret;
}
-extern inline unsigned int r4030_read_reg32(unsigned addr)
+static inline unsigned int r4030_read_reg32(unsigned addr)
{
unsigned int ret = *((volatile unsigned int *)addr);
r4030_delay();
return ret;
}
-extern inline void r4030_write_reg16(unsigned addr, unsigned val)
+static inline void r4030_write_reg16(unsigned addr, unsigned val)
{
*((volatile unsigned short *)addr) = val;
r4030_delay();
}
-extern inline void r4030_write_reg32(unsigned addr, unsigned val)
+static inline void r4030_write_reg32(unsigned addr, unsigned val)
{
*((volatile unsigned int *)addr) = val;
r4030_delay();
}
-#endif /* !LANGUAGE_ASSEMBLY__ */
+#endif /* !__ASSEMBLY__ */
#define JAZZ_FDC_BASE 0xe0003000
#define JAZZ_RTC_BASE 0xe0004000
@@ -318,4 +317,4 @@
#define JAZZ_EISA_BASE 0xe3000000
-#endif /* __ASM_MIPS_JAZZ_H */
+#endif /* __ASM_JAZZ_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)