1 /* 2 * Copyright (C) 2003-2015 FreeIPMI Core Team 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * 17 */ 18 19 #ifndef IPMI_SOL_CONFIGURATION_PARAMETERS_SPEC_H 20 #define IPMI_SOL_CONFIGURATION_PARAMETERS_SPEC_H 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #define IPMI_SOL_CONFIGURATION_PARAMETER_SET_IN_PROGRESS 0 27 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_ENABLE 1 28 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_AUTHENTICATION 2 29 #define IPMI_SOL_CONFIGURATION_PARAMETER_CHARACTER_ACCUMULATE_INTERVAL_AND_SEND_THRESHOLD 3 30 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_RETRY 4 31 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_NON_VOLATILE_BIT_RATE 5 32 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_VOLATILE_BIT_RATE 6 33 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_PAYLOAD_CHANNEL 7 34 #define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_PAYLOAD_PORT_NUMBER 8 35 #define IPMI_SOL_CONFIGURATION_PARAMETER_OEM_MIN 192 36 #define IPMI_SOL_CONFIGURATION_PARAMETER_OEM_MAX 255 37 38 /* To avoid gcc warnings, add +1 in comparison */ 39 #define IPMI_SOL_CONFIGURATION_PARAMETER_SELECTOR_VALID(__parameter_selector) \ 40 ((((__parameter_selector) + 1) > (IPMI_SOL_CONFIGURATION_PARAMETER_SET_IN_PROGRESS + 1) \ 41 && (__parameter_selector) <= IPMI_SOL_CONFIGURATION_PARAMETER_SOL_PAYLOAD_PORT_NUMBER) ? 1 : 0) 42 43 /* To avoid gcc warnings, subtract -1 in comparison */ 44 #define IPMI_SOL_CONFIGURATION_PARAMETER_SELECTOR_IS_OEM(__parameter_selector) \ 45 (((__parameter_selector) >= IPMI_SOL_CONFIGURATION_PARAMETER_OEM_MIN \ 46 && ((__parameter_selector) - 1) <= (IPMI_SOL_CONFIGURATION_PARAMETER_OEM_MAX - 1)) ? 1 : 0) 47 48 #ifdef __cplusplus 49 } 50 #endif 51 52 #endif /* IPMI_SOL_CONFIGURATION_PARAMETERS_SPEC_H */ 53