12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #include <stdint.h>
- #include <ipmitool/ipmi_intf.h>
- #define HPM2_REVISION 0x01
- #define HPM3_REVISION 0x01
- #define HPM2_LAN_PARAMS_REV 0x01
- #define HPM2_SOL_PARAMS_REV 0x01
- #define HPM3_LAN_PARAMS_REV 0x01
- #define LAN_PARAM_REV(x, y) (((x) << 4) | ((y) & 0xF))
- #define HPM2_CAPS_SOL_EXTENSION 0x01
- #define HPM2_CAPS_PACKET_TRACE 0x02
- #define HPM2_CAPS_EXT_MANAGEMENT 0x04
- #define HPM2_CAPS_VERSION_SENSOR 0x08
- #define HPM2_CAPS_DYNAMIC_SESSIONS 0x10
- #if HAVE_PRAGMA_PACK
- # pragma pack(push, 1)
- #endif
- struct hpm2_lan_attach_capabilities {
- uint8_t hpm2_revision_id;
- uint16_t lan_channel_mask;
- uint8_t hpm2_caps;
- uint8_t hpm2_lan_params_start;
- uint8_t hpm2_lan_params_rev;
- uint8_t hpm2_sol_params_start;
- uint8_t hpm2_sol_params_rev;
- } ATTRIBUTE_PACKING;
- struct hpm2_lan_channel_capabilities {
- uint8_t capabilities;
- uint8_t attach_type;
- uint8_t bandwidth_class;
- uint16_t max_inbound_pld_size;
- uint16_t max_outbound_pld_size;
- } ATTRIBUTE_PACKING;
- #if HAVE_PRAGMA_PACK
- # pragma pack(pop)
- #endif
- #define HPM2_GET_LAN_ATTACH_CAPABILITIES 0x3E
- extern int hpm2_get_capabilities(struct ipmi_intf * intf,
- struct hpm2_lan_attach_capabilities * caps);
- extern int hpm2_get_lan_channel_capabilities(struct ipmi_intf * intf,
- uint8_t hpm2_lan_params_start,
- struct hpm2_lan_channel_capabilities * caps);
- extern int hpm2_detect_max_payload_size(struct ipmi_intf * intf);
|