xref: /f-stack/dpdk/drivers/net/igc/base/igc_osdep.c (revision 2d9fd380)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019-2020 Intel Corporation
3  */
4 
5 #include "igc_api.h"
6 
7 /*
8  * NOTE: the following routines using the igc
9  * naming style are provided to the shared
10  * code but are OS specific
11  */
12 
13 void
igc_write_pci_cfg(struct igc_hw * hw,u32 reg,u16 * value)14 igc_write_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value)
15 {
16 	(void)hw;
17 	(void)reg;
18 	(void)value;
19 }
20 
21 void
igc_read_pci_cfg(struct igc_hw * hw,u32 reg,u16 * value)22 igc_read_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value)
23 {
24 	(void)hw;
25 	(void)reg;
26 	*value = 0;
27 }
28 
29 void
igc_pci_set_mwi(struct igc_hw * hw)30 igc_pci_set_mwi(struct igc_hw *hw)
31 {
32 	(void)hw;
33 }
34 
35 void
igc_pci_clear_mwi(struct igc_hw * hw)36 igc_pci_clear_mwi(struct igc_hw *hw)
37 {
38 	(void)hw;
39 }
40 
41 /*
42  * Read the PCI Express capabilities
43  */
44 int32_t
igc_read_pcie_cap_reg(struct igc_hw * hw,u32 reg,u16 * value)45 igc_read_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value)
46 {
47 	(void)hw;
48 	(void)reg;
49 	(void)value;
50 	return IGC_NOT_IMPLEMENTED;
51 }
52 
53 /*
54  * Write the PCI Express capabilities
55  */
56 int32_t
igc_write_pcie_cap_reg(struct igc_hw * hw,u32 reg,u16 * value)57 igc_write_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value)
58 {
59 	(void)hw;
60 	(void)reg;
61 	(void)value;
62 
63 	return IGC_NOT_IMPLEMENTED;
64 }
65