/usr/include/freeipmi/spec/ipmi-channel-spec.h is in libfreeipmi-dev 0.8.12-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | /*
Copyright (C) 2003-2010 FreeIPMI Core Team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _IPMI_CHANNEL_SPEC_H
#define _IPMI_CHANNEL_SPEC_H
#ifdef __cplusplus
extern "C" {
#endif
#define IPMI_CHANNEL_NUMBER_PRIMARY_IPMB 0x0
#define IPMI_CHANNEL_NUMBER_RESERVED_MIN 0x0C /* 0x0C to 0x0D */
#define IPMI_CHANNEL_NUMBER_RESERVED_MAX 0x0D /* 0x0C to 0x0D */
#define IPMI_CHANNEL_NUMBER_PRESENT_IF 0xE
#define IPMI_CHANNEL_NUMBER_CURRENT_CHANNEL IPMI_CHANNEL_NUMBER_PRESENT_IF
#define IPMI_CHANNEL_NUMBER_SYSTEM_INTERFACE 0xF
/* To avoid gcc warnings, add +1 in comparison */
#define IPMI_CHANNEL_NUMBER_VALID(__channel_number) \
((((__channel_number + 1) >= (IPMI_CHANNEL_NUMBER_PRIMARY_IPMB + 1) \
&& (__channel_number) < IPMI_CHANNEL_NUMBER_RESERVED_MIN) \
|| ((__channel_number) > IPMI_CHANNEL_NUMBER_RESERVED_MAX \
&& (__channel_number) <= IPMI_CHANNEL_NUMBER_SYSTEM_INTERFACE)) ? 1 : 0)
#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED 0x0 /* 0x03, 0x0A to 0x1B */
#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_1 IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED
#define IPMI_CHANNEL_PROTOCOL_TYPE_IPMB 0x1
#define IPMI_CHANNEL_PROTOCOL_TYPE_ICMB_10 0x2
#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_2 0x0 /* 0x03, 0x0A to 0x1B */
#define IPMI_CHANNEL_PROTOCOL_TYPE_SMBUS_1X_2X 0x4
#define IPMI_CHANNEL_PROTOCOL_TYPE_KCS 0x5
#define IPMI_CHANNEL_PROTOCOL_TYPE_SMIC 0x6
#define IPMI_CHANNEL_PROTOCOL_TYPE_BT_10 0x7
#define IPMI_CHANNEL_PROTOCOL_TYPE_BT_15 0x8
#define IPMI_CHANNEL_PROTOCOL_TYPE_TMODE 0x9
#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_MIN 0x0A /* 0x03, 0x0A to 0x1B */
#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_MAX 0x1B /* 0x03, 0x0A to 0x1B */
#define IPMI_CHANNEL_PROTOCOL_TYPE_OEM_MIN 0x1C /* 0x1C to 0x1F */
#define IPMI_CHANNEL_PROTOCOL_TYPE_OEM_MAX 0x1F /* 0x1C to 0x1F */
#define IPMI_CHANNEL_PROTOCOL_TYPE_IS_RESERVED(__val) \
(((__val) == IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_1 \
|| (__val) == IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_2 \
|| ((__val) >= IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_MIN \
&& (__val) <= IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED_MAX)) ? 1 : 0)
#define IPMI_CHANNEL_PROTOCOL_TYPE_IS_OEM(__val) \
(((__val) >= IPMI_CHANNEL_PROTOCOL_TYPE_OEM_MIN \
&& (__val) <= IPMI_CHANNEL_PROTOCOL_TYPE_OEM_MAX) ? 1 : 0)
#define IPMI_CHANNEL_MEDIUM_TYPE_RESERVED 0x0 /* 0x0D to 0x5F */
#define IPMI_CHANNEL_MEDIUM_TYPE_IPMB 0x1
#define IPMI_CHANNEL_MEDIUM_TYPE_ICMB_10 0x2
#define IPMI_CHANNEL_MEDIUM_TYPE_ICMB_09 0x3
#define IPMI_CHANNEL_MEDIUM_TYPE_LAN_802_3 0x4
#define IPMI_CHANNEL_MEDIUM_TYPE_RS232 0x5
#define IPMI_CHANNEL_MEDIUM_TYPE_OTHER_LAN 0x6
#define IPMI_CHANNEL_MEDIUM_TYPE_PCI_SMBUS 0x7
#define IPMI_CHANNEL_MEDIUM_TYPE_SMBUS_10_11 0x8
#define IPMI_CHANNEL_MEDIUM_TYPE_SMBUS_20 0x9
#define IPMI_CHANNEL_MEDIUM_TYPE_USB_1X 0xA
#define IPMI_CHANNEL_MEDIUM_TYPE_USB_2X 0xB
#define IPMI_CHANNEL_MEDIUM_TYPE_SYSTEM_INTERFACE 0xC
#define IPMI_CHANNEL_MEDIUM_TYPE_RESERVED_MIN 0x0D /* 0x0D to 0x59 */
#define IPMI_CHANNEL_MEDIUM_TYPE_RESERVED_MAX 0x59 /* 0x0D to 0x59 */
#define IPMI_CHANNEL_MEDIUM_TYPE_OEM_MIN 0x60 /* 0x60 to 0x7F */
#define IPMI_CHANNEL_MEDIUM_TYPE_OEM_MAX 0x7F /* 0x60 to 0x7F */
#define IPMI_CHANNEL_MEDIUM_TYPE_IS_RESERVED(__val) \
(((__val) == IPMI_CHANNEL_MEDIUM_TYPE_RESERVED \
|| ((__val) >= IPMI_CHANNEL_MEDIUM_TYPE_RESERVED_MIN \
&& (__val) <= IPMI_CHANNEL_MEDIUM_TYPE_RESERVED_MAX)) ? 1 : 0)
#define IPMI_CHANNEL_MEDIUM_TYPE_IS_OEM(__val) \
(((__val) >= IPMI_CHANNEL_MEDIUM_TYPE_OEM_MIN \
&& (__val) <= IPMI_CHANNEL_MEDIUM_TYPE_OEM_MAX) ? 1 : 0)
#ifdef __cplusplus
}
#endif
#endif /* ipmi-channel-spec.h */
|