History

fwctl/bnxt_fwctl: Add bnxt fwctl device

Create bnxt_fwctl device. This will bind to bnxt's aux device. On the upper edge, it will register with the fwctl subsystem. It will make use of bnxt's ULP functions to send FW commands.

Pavan Chebbi committed 8 months ago

Commit e782efb1 parent 51028367 files · +330 −0Browse files

Showing the changes to include/uapi (2 of 7 files). Show all

Unified · Split

2 files
  1. include/uapi/fwctl/bnxt.h +26 −0
  2. include/uapi/fwctl/fwctl.h +1 −0
include/uapi/fwctl/bnxt.h+26−0
@@ -0,0 +1,26 @@
1+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+/*
3+ * Copyright (c) 2026, Broadcom Inc
4+ */
5+
6+#ifndef _UAPI_FWCTL_BNXT_H_
7+#define _UAPI_FWCTL_BNXT_H_
8+
9+#include <linux/types.h>
10+
11+enum fwctl_bnxt_commands {
12+ FWCTL_BNXT_INLINE_COMMANDS = 0,
13+ FWCTL_BNXT_QUERY_COMMANDS,
14+ FWCTL_BNXT_SEND_COMMANDS,
15+};
16+
17+/**
18+ * struct fwctl_info_bnxt - ioctl(FWCTL_INFO) out_device_data
19+ * @uctx_caps: The command capabilities driver accepts.
20+ *
21+ * Return basic information about the FW interface available.
22+ */
23+struct fwctl_info_bnxt {
24+ __u32 uctx_caps;
25+};
26+#endif
include/uapi/fwctl/fwctl.h+1−0
@@ -44,6 +44,7 @@ enum fwctl_device_type { · 43 unmodified lines
4444 FWCTL_DEVICE_TYPE_ERROR = 0,
4545 FWCTL_DEVICE_TYPE_MLX5 = 1,
4646 FWCTL_DEVICE_TYPE_CXL = 2,
47+ FWCTL_DEVICE_TYPE_BNXT = 3,
4748 FWCTL_DEVICE_TYPE_PDS = 4,
4849 };
4950