1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2018 Google, Inc. */ 3 #ifndef __GASKET_CONSTANTS_H__ 4 #define __GASKET_CONSTANTS_H__ 5 6 #define GASKET_FRAMEWORK_VERSION "1.1.2" 7 8 /* 9 * The maximum number of simultaneous device types supported by the framework. 10 */ 11 #define GASKET_FRAMEWORK_DESC_MAX 2 12 13 /* The maximum devices per each type. */ 14 #define GASKET_DEV_MAX 256 15 16 /* The number of supported Gasket page tables per device. */ 17 #define GASKET_MAX_NUM_PAGE_TABLES 1 18 19 /* Maximum length of device names (driver name + minor number suffix + NULL). */ 20 #define GASKET_NAME_MAX 32 21 22 /* Device status enumeration. */ 23 enum gasket_status { 24 /* 25 * A device is DEAD if it has not been initialized or has had an error. 26 */ 27 GASKET_STATUS_DEAD = 0, 28 /* 29 * A device is LAMED if the hardware is healthy but the kernel was 30 * unable to enable some functionality (e.g. interrupts). 31 */ 32 GASKET_STATUS_LAMED, 33 34 /* A device is ALIVE if it is ready for operation. */ 35 GASKET_STATUS_ALIVE, 36 37 /* 38 * This status is set when the driver is exiting and waiting for all 39 * handles to be closed. 40 */ 41 GASKET_STATUS_DRIVER_EXIT, 42 }; 43 44 #endif 45