leds.h
来自「自己根据lkd和情境分析」· C头文件 代码 · 共 36 行
H
36 行
#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 + =
减小字号Ctrl + -
显示快捷键?