1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef _XE_SRIOV_TYPES_H_ 7 #define _XE_SRIOV_TYPES_H_ 8 9 #include <linux/build_bug.h> 10 11 /** 12 * enum xe_sriov_mode - SR-IOV mode 13 * @XE_SRIOV_MODE_NONE: bare-metal mode (non-virtualized) 14 * @XE_SRIOV_MODE_PF: SR-IOV Physical Function (PF) mode 15 * @XE_SRIOV_MODE_VF: SR-IOV Virtual Function (VF) mode 16 */ 17 enum xe_sriov_mode { 18 /* 19 * Note: We don't use default enum value 0 to allow catch any too early 20 * attempt of checking the SR-IOV mode prior to the actual mode probe. 21 */ 22 XE_SRIOV_MODE_NONE = 1, 23 XE_SRIOV_MODE_PF, 24 XE_SRIOV_MODE_VF, 25 }; 26 static_assert(XE_SRIOV_MODE_NONE); 27 28 #endif 29