File: /usr/src/linux/include/asm-ia64/sn/sn1/leds.h
1 #ifndef _ASM_SN_SN1_LED_H
2 #define _ASM_SN_SN1_LED_H
3
4 /*
5 * Copyright (C) 2000 Silicon Graphics, Inc
6 * Copyright (C) 2000 Jack Steiner (steiner@sgi.com)
7 */
8
9 #include <asm/smp.h>
10
11 #define LED0 0xc0000b00100000c0LL /* ZZZ fixme */
12
13
14
15 #define LED_AP_START 0x01 /* AP processor started */
16 #define LED_AP_IDLE 0x01
17
18 /*
19 * Basic macros for flashing the LEDS on an SGI, SN1.
20 */
21
22 extern __inline__ void
23 HUB_SET_LED(int val)
24 {
25 long *ledp;
26 int eid;
27
28 eid = hard_smp_processor_id() & 3;
29 ledp = (long*) (LED0 + (eid<<3));
30 *ledp = val;
31 }
32
33
34 #endif /* _ASM_SN_SN1_LED_H */
35
36