linux/drivers/net/ethernet/intel/igc/igc_leds.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2024 Linutronix GmbH */

#include <linux/bits.h>
#include <linux/leds.h>
#include <linux/netdevice.h>
#include <linux/pm_runtime.h>
#include <uapi/linux/uleds.h>

#include "igc.h"

#define IGC_NUM_LEDS

#define IGC_LEDCTL_LED0_MODE_SHIFT
#define IGC_LEDCTL_LED0_MODE_MASK
#define IGC_LEDCTL_LED0_BLINK
#define IGC_LEDCTL_LED1_MODE_SHIFT
#define IGC_LEDCTL_LED1_MODE_MASK
#define IGC_LEDCTL_LED1_BLINK
#define IGC_LEDCTL_LED2_MODE_SHIFT
#define IGC_LEDCTL_LED2_MODE_MASK
#define IGC_LEDCTL_LED2_BLINK

#define IGC_LEDCTL_MODE_ON
#define IGC_LEDCTL_MODE_OFF
#define IGC_LEDCTL_MODE_LINK_10
#define IGC_LEDCTL_MODE_LINK_100
#define IGC_LEDCTL_MODE_LINK_1000
#define IGC_LEDCTL_MODE_LINK_2500
#define IGC_LEDCTL_MODE_ACTIVITY

#define IGC_SUPPORTED_MODES

#define IGC_ACTIVITY_MODES

struct igc_led_classdev {};

#define lcdev_to_igc_ldev(lcdev)

static void igc_led_select(struct igc_adapter *adapter, int led,
			   u32 *mask, u32 *shift, u32 *blink)
{}

static void igc_led_set(struct igc_adapter *adapter, int led, u32 mode,
			bool blink)
{}

static u32 igc_led_get(struct igc_adapter *adapter, int led)
{}

static int igc_led_brightness_set_blocking(struct led_classdev *led_cdev,
					   enum led_brightness brightness)
{}

static int igc_led_hw_control_is_supported(struct led_classdev *led_cdev,
					   unsigned long flags)
{}

static int igc_led_hw_control_set(struct led_classdev *led_cdev,
				  unsigned long flags)
{}

static int igc_led_hw_control_get(struct led_classdev *led_cdev,
				  unsigned long *flags)
{}

static struct device *igc_led_hw_control_get_device(struct led_classdev *led_cdev)
{}

static void igc_led_get_name(struct igc_adapter *adapter, int index, char *buf,
			     size_t buf_len)
{}

static int igc_setup_ldev(struct igc_led_classdev *ldev,
			  struct net_device *netdev, int index)
{}

int igc_led_setup(struct igc_adapter *adapter)
{}

void igc_led_free(struct igc_adapter *adapter)
{}