summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/chip.h
blob: 203707c43677434ffdd3046155755ff4a5ac47c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __DRIVERS_R8168_CHIP_H__
#define __DRIVERS_R8168_CHIP_H__

#include <stdint.h>
#include <acpi/acpi_device.h>

struct drivers_net_config {
	uint16_t customized_leds;
	/* RTL8125 LED settings */
	uint8_t led_feature;
	uint16_t customized_led0;
	uint16_t customized_led2;

	unsigned int wake;	/* Wake pin for ACPI _PRW */

	/* Does the device have a power resource? */
	bool has_power_resource;

	/* GPIO used to stop operation of device. */
	struct acpi_gpio stop_gpio;
	/* Delay to be inserted after disabling stop. */
	unsigned int stop_delay_ms;
	/* Delay to be inserted after enabling stop. */
	unsigned int stop_off_delay_ms;

	/*
	 * There maybe many NIC cards in a system.
	 * This parameter is for driver to identify what
	 * the device number is and the valid range is [1-10].
	 */
	uint8_t device_index;

	/* Allow kernel driver to enable ASPM L1.2. */
	bool enable_aspm_l1_2;

	/* When set to true, this will add a _DSD which contains a single
	   property, `DmaProperty`, set to 1, under the ACPI Device. */
	bool add_acpi_dma_property;
};

#endif /* __DRIVERS_R8168_CHIP_H__ */