NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
ether_export.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ETHER_EXPORT_H
19 #define ETHER_EXPORT_H
20 
21 #include <nvethernetrm_export.h>
22 
26 #define ETHER_EXPORT_VERSION (0x72400001U)
27 
37 #define ETHER_AVB_ALGORITHM 27
38 
41 #define ETHER_CONFIG_EST 49
42 
45 #define ETHER_CONFIG_FPE 50
46 
49 #define ETHER_CONFIG_FRP_CMD 51
50 
53 #define ETHER_L2_ADDR 61
54 
57 #define ETHER_GET_AVB_PERF 62
58 
61 #define ETHER_VERIFY_TS 63
62 
65 #define ETHER_GET_STATUS 64
66 
80  unsigned int pkt_dup;
82  unsigned int dma_chan;
83 };
84 
100  void *ptr;
103 };
105 #endif /* ETHER_EXPORT_H */
ether_exported_ifr_data::connected_speed
nveu32_t connected_speed
Used to query the connected link speed.
Definition: ether_export.h:96
nve32_t
my_int32_t nve32_t
typedef equivalent to int
Definition: nvethernet_type.h:75
ether_exported_ifr_data::ptr
void * ptr
IOCTL cmd specific structure pointer.
Definition: ether_export.h:100
nveu32_t
my_uint32_t nveu32_t
typedef equivalent to unsigned int
Definition: nvethernet_type.h:71
ether_exported_ifr_data::mac_id
nve32_t mac_id
MAC instance ID (eqos:0 mgbe0:1 mgbe1:2 mgbe2:3 mgbe3:4)
Definition: ether_export.h:102
ether_l2_filter::mac_addr
nveu8_t mac_addr[OSI_ETH_ALEN]
Ethernet MAC address to be added.
Definition: ether_export.h:78
ether_exported_ifr_data::command_error
nve32_t command_error
The return value of IOCTL handler func.
Definition: ether_export.h:98
ether_exported_ifr_data::if_flags
nveu32_t if_flags
Flags used for specific ioctl - like enable/disable.
Definition: ether_export.h:90
ether_exported_ifr_data
struct ether_exported_ifr_data - Private data of struct ifreq
Definition: ether_export.h:88
nveu8_t
my_uint8_t nveu8_t
typedef equivalent to unsigned char
Definition: nvethernet_type.h:87
ether_l2_filter::index
nveu32_t index
Indicates the index of the filter to be modified.
Definition: ether_export.h:76
nvethernetrm_export.h
ether_l2_filter::dma_chan
unsigned int dma_chan
DMA channel selection.
Definition: ether_export.h:82
ether_exported_ifr_data::ifcmd
nveu32_t ifcmd
The private ioctl command number.
Definition: ether_export.h:94
ether_l2_filter
Structure for L2 filters input.
Definition: ether_export.h:70
ether_l2_filter::pkt_dup
unsigned int pkt_dup
enable/disable packet duplication
Definition: ether_export.h:80
ether_l2_filter::en_dis
nveu32_t en_dis
indicates enable(1)/disable(0) L2 filter
Definition: ether_export.h:73
ether_exported_ifr_data::qinx
nveu32_t qinx
qinx: Queue index to be used for certain ioctls
Definition: ether_export.h:92
OSI_ETH_ALEN
#define OSI_ETH_ALEN
Ethernet Address length.
Definition: nvethernetrm_export.h:55