/* SPDX-License-Identifier: GPL-2.0 */1#ifndef LED_H2#define LED_H34#define LED7 0x80 /* top (or furthest right) LED */5#define LED6 0x406#define LED5 0x207#define LED4 0x108#define LED3 0x089#define LED2 0x0410#define LED1 0x0211#define LED0 0x01 /* bottom (or furthest left) LED */1213#define LED_LAN_RCV LED0 /* for LAN receive activity */14#define LED_LAN_TX LED1 /* for LAN transmit activity */15#define LED_DISK_IO LED2 /* for disk activity */16#define LED_HEARTBEAT LED3 /* heartbeat */1718/* values for pdc_chassis_lcd_info_ret_block.model: */19#define DISPLAY_MODEL_LCD 0 /* KittyHawk LED or LCD */20#define DISPLAY_MODEL_NONE 1 /* no LED or LCD */21#define DISPLAY_MODEL_LASI 2 /* LASI style 8 bit LED */22#define DISPLAY_MODEL_OLD_ASP 0x7F /* faked: ASP style 8 x 1 bit LED (only very old ASP versions) */2324#define LED_CMD_REG_NONE 0 /* NULL == no addr for the cmd register */2526/* register_led_driver() */27int register_led_driver(int model, unsigned long cmd_reg, unsigned long data_reg);2829#ifdef CONFIG_CHASSIS_LCD_LED30/* writes a string to the LCD display (if possible on this h/w) */31void lcd_print(const char *str);32#else33#define lcd_print(str) do { } while (0)34#endif3536#endif /* LED_H */373839