OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [sn/] [leds.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_IA64_SN_LEDS_H
2
#define _ASM_IA64_SN_LEDS_H
3
 
4
/*
5
 * This file is subject to the terms and conditions of the GNU General Public
6
 * License.  See the file "COPYING" in the main directory of this archive
7
 * for more details.
8
 * Copyright (C) 2000-2003 Silicon Graphics, Inc. All rights reserved.
9
 */
10
 
11
#include <linux/config.h>
12
#include <asm/smp.h>
13
#include <asm/sn/addrs.h>
14
#include <asm/sn/sn_cpuid.h>
15
#include <asm/sn/pda.h>
16
#include <asm/sn/sn2/shub.h>
17
 
18
#define LED0            (LOCAL_MMR_ADDR(SH_REAL_JUNK_BUS_LED0))
19
#define LED_CPU_SHIFT   16
20
 
21
#define LED_CPU_HEARTBEAT       0x01
22
#define LED_CPU_ACTIVITY        0x02
23
#define LED_ALWAYS_SET          0x00
24
 
25
/*
26
 * Basic macros for flashing the LEDS on an SGI, SN1.
27
 */
28
 
29
static __inline__ void
30
set_led_bits(u8 value, u8 mask)
31
{
32
        pda.led_state = (pda.led_state & ~mask) | (value & mask);
33
        *pda.led_address = (short) pda.led_state;
34
}
35
 
36
#endif /* _ASM_IA64_SN_LEDS_H */
37
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.