xref: /linux/drivers/net/ethernet/marvell/octeon_ep/octep_cp_version.h (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2022 Marvell.
3  */
4 #ifndef __OCTEP_CP_VERSION_H__
5 #define __OCTEP_CP_VERSION_H__
6 
7 #define OCTEP_CP_VERSION(a, b, c)	((((a) & 0xff) << 16) + \
8 					 (((b) & 0xff) << 8) + \
9 					  ((c) & 0xff))
10 
11 #endif /* __OCTEP_CP_VERSION_H__ */
12