xref: /openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/octep_cp_version.h (revision b206011bf05069797df1f4c5ce639398728978e2)
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