ocs_hw_get_ptr
uint8_t *p = ocs_hw_get_ptr(hw, prop);
extern void *ocs_hw_get_ptr(ocs_hw_t *, ocs_hw_property_e);
(char *)ocs_hw_get_ptr(&ocs->hw, OCS_HW_FW_REV),
wwnn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_NODE);
wwpn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_PORT);
ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "fw_rev", ocs_hw_get_ptr(&ocs->hw, OCS_HW_FW_REV));
ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "fw_rev2", ocs_hw_get_ptr(&ocs->hw, OCS_HW_FW_REV2));
ocs_mgmt_emit_string(textbuf, MGMT_MODE_RD, "ipl", ocs_hw_get_ptr(&ocs->hw, OCS_HW_IPL));
wwnn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_NODE);
wwpn = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_PORT);
rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_NODE);
rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_WWN_PORT);
rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_PORTNUM);
rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_BIOS_VERSION_STRING);
pvpd = ocs_hw_get_ptr(&ocs->hw, OCS_HW_VPD);
pvpd = ocs_hw_get_ptr(&ocs->hw, OCS_HW_VPD);
ocs->fw_version = (const char*) ocs_hw_get_ptr(&ocs->hw, OCS_HW_FW_REV);