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.
Showing the changes to include/uapi (2 of 7 files). Show all
Unified · Split
| @@ -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 | |
| @@ -44,6 +44,7 @@ enum fwctl_device_type { · 43 unmodified lines | ||
| 44 | 44 | FWCTL_DEVICE_TYPE_ERROR = 0, |
| 45 | 45 | FWCTL_DEVICE_TYPE_MLX5 = 1, |
| 46 | 46 | FWCTL_DEVICE_TYPE_CXL = 2, |
| 47 | + FWCTL_DEVICE_TYPE_BNXT = 3, | |
| 47 | 48 | FWCTL_DEVICE_TYPE_PDS = 4, |
| 48 | 49 | }; |
| 49 | 50 | |