linux/drivers/net/ethernet/marvell/octeon_ep/octep_cp_version.h
Sathesh Edara a20b4c5f3a octeon_ep: Add control plane host and firmware versions.
Implement control plane mailbox versions for host and firmware.
Versions are published in info area of control mailbox bar4
memory structure.Firmware will publish minimum and maximum
supported versions.Control plane mailbox apis will check for
firmware version before sending any control commands to firmware.
Notifications from firmware will similarly be checked for host
version compatibility.

Signed-off-by: Sathesh Edara <sedara@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-08-11 09:51:01 +01:00

12 lines
287 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Marvell.
*/
#ifndef __OCTEP_CP_VERSION_H__
#define __OCTEP_CP_VERSION_H__
#define OCTEP_CP_VERSION(a, b, c) ((((a) & 0xff) << 16) + \
(((b) & 0xff) << 8) + \
((c) & 0xff))
#endif /* __OCTEP_CP_VERSION_H__ */