1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DRIVERS_R8168_CHIP_H__
4 #define __DRIVERS_R8168_CHIP_H__
7 #include <acpi/acpi_device.h>
9 struct drivers_net_config
{
10 uint16_t customized_leds
;
11 /* RTL8125 LED settings */
13 uint16_t customized_led0
;
14 uint16_t customized_led2
;
16 unsigned int wake
; /* Wake pin for ACPI _PRW */
18 /* Does the device have a power resource? */
19 bool has_power_resource
;
21 /* GPIO used to stop operation of device. */
22 struct acpi_gpio stop_gpio
;
23 /* Delay to be inserted after disabling stop. */
24 unsigned int stop_delay_ms
;
25 /* Delay to be inserted after enabling stop. */
26 unsigned int stop_off_delay_ms
;
29 * There maybe many NIC cards in a system.
30 * This parameter is for driver to identify what
31 * the device number is and the valid range is [1-10].
35 /* Allow kernel driver to enable ASPM L1.2. */
36 bool enable_aspm_l1_2
;
38 /* When set to true, this will add a _DSD which contains a single
39 property, `DmaProperty`, set to 1, under the ACPI Device. */
40 bool add_acpi_dma_property
;
43 #endif /* __DRIVERS_R8168_CHIP_H__ */