H51945 s 00046/00000/00000 d D 1.1 02/03/13 20:31:05 patch 2 1 cC cF1 cK21063 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:05 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/include/asm-ia64/sn/leds.h cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK09891 cPinclude/asm-ia64/sn/leds.h cR1cd2392658885eca cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 #ifndef _ASM_IA64_SN_LEDS_H #define _ASM_IA64_SN_LEDS_H /* * 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) 2000-2002 Silicon Graphics, Inc. All rights reserved. */ #include #include #include #include #include #ifdef CONFIG_IA64_SGI_SN1 #define LED0 0xc0000b00100000c0LL /* ZZZ fixme */ #define LED_CPU_SHIFT 3 #else #include #define LED0 (LOCAL_MMR_ADDR(SH_REAL_JUNK_BUS_LED0)) #define LED_CPU_SHIFT 16 #endif #define LED_CPU_HEARTBEAT 0x01 #define LED_CPU_ACTIVITY 0x02 #define LED_MASK_AUTOTEST 0xfe /* * Basic macros for flashing the LEDS on an SGI, SN1. */ static __inline__ void set_led_bits(u8 value, u8 mask) { pda.led_state = (pda.led_state & ~mask) | (value & mask); #ifdef CONFIG_IA64_SGI_SN1 *pda.led_address = (long) pda.led_state; #else *pda.led_address = (short) pda.led_state; #endif } #endif /* _ASM_IA64_SN_LEDS_H */ E 2 I 1 E 1