#include <linux/leds.h>
#include <linux/netdevice.h>
#include <uapi/linux/uleds.h>
#include "r8169.h"
#define RTL8168_LED_CTRL_OPTION2 …
#define RTL8168_LED_CTRL_ACT …
#define RTL8168_LED_CTRL_LINK_1000 …
#define RTL8168_LED_CTRL_LINK_100 …
#define RTL8168_LED_CTRL_LINK_10 …
#define RTL8125_LED_CTRL_ACT …
#define RTL8125_LED_CTRL_LINK_2500 …
#define RTL8125_LED_CTRL_LINK_1000 …
#define RTL8125_LED_CTRL_LINK_100 …
#define RTL8125_LED_CTRL_LINK_10 …
#define RTL8168_NUM_LEDS …
#define RTL8125_NUM_LEDS …
struct r8169_led_classdev { … };
#define lcdev_to_r8169_ldev(lcdev) …
static bool r8169_trigger_mode_is_valid(unsigned long flags)
{ … }
static int rtl8168_led_hw_control_is_supported(struct led_classdev *led_cdev,
unsigned long flags)
{ … }
static int rtl8168_led_hw_control_set(struct led_classdev *led_cdev,
unsigned long flags)
{ … }
static int rtl8168_led_hw_control_get(struct led_classdev *led_cdev,
unsigned long *flags)
{ … }
static struct device *
r8169_led_hw_control_get_device(struct led_classdev *led_cdev)
{ … }
static void rtl8168_setup_ldev(struct r8169_led_classdev *ldev,
struct net_device *ndev, int index)
{ … }
struct r8169_led_classdev *rtl8168_init_leds(struct net_device *ndev)
{ … }
static int rtl8125_led_hw_control_is_supported(struct led_classdev *led_cdev,
unsigned long flags)
{ … }
static int rtl8125_led_hw_control_set(struct led_classdev *led_cdev,
unsigned long flags)
{ … }
static int rtl8125_led_hw_control_get(struct led_classdev *led_cdev,
unsigned long *flags)
{ … }
static void rtl8125_setup_led_ldev(struct r8169_led_classdev *ldev,
struct net_device *ndev, int index)
{ … }
struct r8169_led_classdev *rtl8125_init_leds(struct net_device *ndev)
{ … }
void r8169_remove_leds(struct r8169_led_classdev *leds)
{ … }