dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* Copyright (C) 2016 National Instruments Corp.
|
|
*/
|
|
#ifndef __PHY_LED_TRIGGERS
|
|
#define __PHY_LED_TRIGGERS
|
|
|
|
struct phy_device;
|
|
|
|
#ifdef CONFIG_LED_TRIGGER_PHY
|
|
|
|
#include <linux/leds.h>
|
|
#include <linux/phy.h>
|
|
|
|
#define PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE 11
|
|
|
|
#define PHY_LINK_LED_TRIGGER_NAME_SIZE (MII_BUS_ID_SIZE + \
|
|
sizeof_field(struct mdio_device, addr)+\
|
|
PHY_LED_TRIGGER_SPEED_SUFFIX_SIZE)
|
|
|
|
struct phy_led_trigger {
|
|
struct led_trigger trigger;
|
|
char name[PHY_LINK_LED_TRIGGER_NAME_SIZE];
|
|
unsigned int speed;
|
|
};
|
|
|
|
|
|
extern int phy_led_triggers_register(struct phy_device *phy);
|
|
extern void phy_led_triggers_unregister(struct phy_device *phy);
|
|
extern void phy_led_trigger_change_speed(struct phy_device *phy);
|
|
|
|
#else
|
|
|
|
static inline int phy_led_triggers_register(struct phy_device *phy)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void phy_led_triggers_unregister(struct phy_device *phy) { }
|
|
static inline void phy_led_trigger_change_speed(struct phy_device *phy) { }
|
|
|
|
#endif
|
|
|
|
#endif
|