George Keishing | e7e9171 | 2021-09-03 11:28:44 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Tony Lee | 18c6f9a | 2020-02-18 17:00:20 +0800 | [diff] [blame] | 2 | |
| 3 | r""" |
| 4 | Contains channel-related constants. |
| 5 | """ |
| 6 | |
| 7 | medium_type_ipmi_conf_map = { |
| 8 | "reserved": "reserved", |
| 9 | "IPMB (I2C)": "ipmb", |
| 10 | "ICMB v1.0": "icmb-v1.0", |
| 11 | "ICMB v0.9": "icmb-v0.9", |
| 12 | "802.3 LAN": "lan-802.3", |
| 13 | "Serial/Modem": "serial", |
| 14 | "Other LAN": "other-lan", |
| 15 | "PCI SMBus": "pci-smbus", |
| 16 | "SMBus v1.0/v1.1": "smbus-v1.0", |
| 17 | "SMBus v2.0": "smbus-v2.0", |
| 18 | "USB 1.x": "usb-1x", |
| 19 | "USB 2.x": "usb-2x", |
George Keishing | e635ddc | 2022-12-08 07:38:02 -0600 | [diff] [blame] | 20 | "System Interface": "system-interface" |
Tony Lee | 18c6f9a | 2020-02-18 17:00:20 +0800 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | |
| 24 | protocol_type_ipmi_conf_map = { |
| 25 | "reserved": "na", |
| 26 | "IPMB-1.0": "ipmb-1.0", |
| 27 | "ICMB-1.0": "icmb-2.0", |
| 28 | "reserved": "reserved", |
| 29 | "IPMI-SMBus": "ipmi-smbus", |
| 30 | "KCS": "kcs", |
| 31 | "SMIC": "smic", |
| 32 | "BT-10": "bt-10", |
| 33 | "BT-15": "bt-15", |
| 34 | "TMode": "tmode", |
| 35 | "OEM 1": "oem", |
| 36 | } |
| 37 | |
| 38 | |
| 39 | disabled_ipmi_conf_map = { |
| 40 | "disabled": "True", |
| 41 | "enabled": "False", |
| 42 | } |
| 43 | |
| 44 | |
| 45 | access_mode_ipmi_conf_map = { |
| 46 | "disabled": "disabled", |
| 47 | "pre-boot only": "pre-boot", |
| 48 | "always available": "always_available", |
| 49 | "shared": "shared", |
| 50 | } |