Angel Pons | 8a3453f | 2020-04-02 23:48:19 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Gaggery Tsai | 65623ef | 2017-09-29 11:15:23 +0800 | [diff] [blame] | 2 | |
| 3 | #ifndef __DRIVERS_R8168_CHIP_H__ |
| 4 | #define __DRIVERS_R8168_CHIP_H__ |
| 5 | |
Elyes HAOUAS | c4e4193 | 2018-11-01 11:29:50 +0100 | [diff] [blame] | 6 | #include <stdint.h> |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 7 | #include <acpi/acpi_device.h> |
Elyes HAOUAS | c4e4193 | 2018-11-01 11:29:50 +0100 | [diff] [blame] | 8 | |
Gaggery Tsai | 65623ef | 2017-09-29 11:15:23 +0800 | [diff] [blame] | 9 | struct drivers_net_config { |
| 10 | uint16_t customized_leds; |
Rory Liu | 2b1e737 | 2021-11-22 10:42:25 +0800 | [diff] [blame] | 11 | /* RTL8125 LED settings */ |
| 12 | uint8_t led_feature; |
| 13 | uint16_t customized_led0; |
| 14 | uint16_t customized_led2; |
| 15 | |
Martin Roth | 38ddbfb | 2019-10-23 21:41:00 -0600 | [diff] [blame] | 16 | unsigned int wake; /* Wake pin for ACPI _PRW */ |
Edward O'Callaghan | b765fa6 | 2020-01-21 21:01:32 +1100 | [diff] [blame] | 17 | |
| 18 | /* Does the device have a power resource? */ |
| 19 | bool has_power_resource; |
| 20 | |
| 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; |
| 27 | |
Gaggery Tsai | 1f84704 | 2017-12-26 17:13:52 +0800 | [diff] [blame] | 28 | /* |
| 29 | * There maybe many NIC cards in a system. |
Elyes HAOUAS | 1895838 | 2018-08-07 12:23:16 +0200 | [diff] [blame] | 30 | * This parameter is for driver to identify what |
Gaggery Tsai | 1f84704 | 2017-12-26 17:13:52 +0800 | [diff] [blame] | 31 | * the device number is and the valid range is [1-10]. |
| 32 | */ |
| 33 | uint8_t device_index; |
Alan Huang | ad90edc | 2022-01-18 11:39:05 +0800 | [diff] [blame] | 34 | |
| 35 | /* Allow kernel driver to enable ASPM L1.2. */ |
| 36 | bool enable_aspm_l1_2; |
Kapil Porwal | 4c2c2c4 | 2022-11-26 02:34:58 +0530 | [diff] [blame] | 37 | |
| 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; |
Gaggery Tsai | 65623ef | 2017-09-29 11:15:23 +0800 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | #endif /* __DRIVERS_R8168_CHIP_H__ */ |