xref: /openbsd/sys/dev/pci/drm/apple/version_utils.h (revision 5dd0baa8)
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /* Copyright The Asahi Linux Contributors */
3 
4 #ifndef __APPLE_VERSION_UTILS_H__
5 #define __APPLE_VERSION_UTILS_H__
6 
7 #include <linux/kernel.h>
8 #include <linux/args.h>
9 
10 #define DCP_FW_UNION(u) (u).DCP_FW
11 #define DCP_FW_SUFFIX CONCATENATE(_, DCP_FW)
12 #define DCP_FW_NAME(name) CONCATENATE(name, DCP_FW_SUFFIX)
13 #define DCP_FW_VERSION(x, y, z) ( ((x) << 16) | ((y) << 8) | (z) )
14 
15 #endif /*__APPLE_VERSION_UTILS_H__*/
16