summaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/bus/platform.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-08-27 18:21:02 +0200
committerOle Tr�an <otroan@employees.org>2024-09-05 11:42:57 +0000
commitf508e07c14873c5829838a4e59f9425c27fa833f (patch)
tree1fe89a8aca1e5d3c9f1a4e1df34f8c47c8fc3fce /src/vnet/dev/bus/platform.h
parent222ff2beafe238fe47c4bd059b2ab11482d520f2 (diff)
dev: add platform bus and devicetree support
Change-Id: Ief8e159b25d4fc4859c7116da6ff22c15bd3fff0 Type: feature Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/bus/platform.h')
-rw-r--r--src/vnet/dev/bus/platform.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vnet/dev/bus/platform.h b/src/vnet/dev/bus/platform.h
new file mode 100644
index 00000000000..3492aad57ed
--- /dev/null
+++ b/src/vnet/dev/bus/platform.h
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: Apache-2.0
+ * Copyright (c) 2023 Cisco Systems, Inc.
+ */
+
+#ifndef _VNET_DEV_BUS_PLATFORM_H_
+#define _VNET_DEV_BUS_PLATFORM_H_
+
+#include <vppinfra/clib.h>
+#include <vppinfra/devicetree.h>
+#include <vlib/vlib.h>
+#include <vnet/dev/dev.h>
+
+#define PLATFORM_BUS_NAME "platform"
+
+extern clib_dt_main_t vnet_dev_bus_platform_dt_main;
+
+typedef struct
+{
+ clib_dt_node_t *node;
+} vnet_dev_bus_platform_device_info_t;
+
+typedef struct
+{
+ clib_dt_node_t *node;
+} vnet_dev_bus_platform_device_data_t;
+
+#endif /* _VNET_DEV_BUS_PLATFORM_H_ */