📄 leds.h
字号:
#ifndef _ASM_SN_SN1_LED_H#define _ASM_SN_SN1_LED_H/* * Copyright (C) 2000 Silicon Graphics, Inc * Copyright (C) 2000 Jack Steiner (steiner@sgi.com) */#include <asm/smp.h>#define LED0 0xc0000b00100000c0LL /* ZZZ fixme */#define LED_AP_START 0x01 /* AP processor started */#define LED_AP_IDLE 0x01/* * Basic macros for flashing the LEDS on an SGI, SN1. */extern __inline__ voidHUB_SET_LED(int val){ long *ledp; int eid; eid = hard_smp_processor_id() & 3; ledp = (long*) (LED0 + (eid<<3)); *ledp = val;}#endif /* _ASM_SN_SN1_LED_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -