NVIDIA DOCA SDK
Data Center on a Chip Framework Documentation
urom_graph.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 NVIDIA CORPORATION AND AFFILIATES. All rights reserved.
3
*
4
* Redistribution and use in source and binary forms, with or without modification, are permitted
5
* provided that the following conditions are met:
6
* * Redistributions of source code must retain the above copyright notice, this list of
7
* conditions and the following disclaimer.
8
* * Redistributions in binary form must reproduce the above copyright notice, this list of
9
* conditions and the following disclaimer in the documentation and/or other materials
10
* provided with the distribution.
11
* * Neither the name of the NVIDIA CORPORATION nor the names of its contributors may be used
12
* to endorse or promote products derived from this software without specific prior written
13
* permission.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
16
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE
18
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
19
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21
* STRICT LIABILITY, OR TOR (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
*
24
*/
25
26
#ifndef UROM_GRAPH_H_
27
#define UROM_GRAPH_H_
28
29
#include <
stdint.h
>
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
/* Graph command types */
36
enum
urom_worker_graph_cmd_type
{
37
UROM_WORKER_CMD_GRAPH_LOOPBACK
,
/* Graph loopback command */
38
};
39
40
/* Graph loopback command structure */
41
struct
urom_worker_graph_cmd_loopback
{
42
uint64_t
data
;
/* Loopback data */
43
};
44
45
/* UROM Graph worker command structure */
46
struct
urom_worker_graph_cmd
{
47
uint64_t
type
;
/* Type of command as defined urom_worker_graph_cmd_loopback */
48
union
{
49
struct
urom_worker_graph_cmd_loopback
loopback
;
/* Loopback command */
50
};
51
};
52
53
/* Graph notification types */
54
enum
urom_worker_graph_notify_type
{
55
UROM_WORKER_NOTIFY_GRAPH_LOOPBACK
,
/* Graph loopback notification */
56
};
57
58
/* Graph loopback notification structure */
59
struct
urom_worker_graph_notify_loopback
{
60
uint64_t
data
;
/* Loopback data */
61
};
62
63
/* UROM Graph worker notification structure */
64
65
struct
urom_worker_notify_graph
{
66
uint64_t
type
;
/* Notify type as defined by urom_worker_graph_notify_type */
67
union
{
68
struct
urom_worker_graph_notify_loopback
loopback
;
/* Loopback notification */
69
};
70
};
71
72
#ifdef __cplusplus
73
}
/* extern "C" */
74
#endif
75
76
#endif
stdint.h
urom_worker_graph_cmd_loopback
Definition:
urom_graph.h:41
urom_worker_graph_cmd_loopback::data
uint64_t data
Definition:
urom_graph.h:42
urom_worker_graph_cmd
Definition:
urom_graph.h:46
urom_worker_graph_cmd::type
uint64_t type
Definition:
urom_graph.h:47
urom_worker_graph_cmd::loopback
struct urom_worker_graph_cmd_loopback loopback
Definition:
urom_graph.h:49
urom_worker_graph_notify_loopback
Definition:
urom_graph.h:59
urom_worker_graph_notify_loopback::data
uint64_t data
Definition:
urom_graph.h:60
urom_worker_notify_graph
Definition:
urom_graph.h:65
urom_worker_notify_graph::type
uint64_t type
Definition:
urom_graph.h:66
urom_worker_notify_graph::loopback
struct urom_worker_graph_notify_loopback loopback
Definition:
urom_graph.h:68
urom_worker_graph_cmd_type
urom_worker_graph_cmd_type
Definition:
urom_graph.h:36
UROM_WORKER_CMD_GRAPH_LOOPBACK
@ UROM_WORKER_CMD_GRAPH_LOOPBACK
Definition:
urom_graph.h:37
urom_worker_graph_notify_type
urom_worker_graph_notify_type
Definition:
urom_graph.h:54
UROM_WORKER_NOTIFY_GRAPH_LOOPBACK
@ UROM_WORKER_NOTIFY_GRAPH_LOOPBACK
Definition:
urom_graph.h:55
samples
doca_urom
plugins
worker_graph
urom_graph.h
Generated on Wed Aug 13 2025 09:23:37 for NVIDIA DOCA SDK by
1.9.1