require '_h2ph_pre.ph';

unless(defined(&_DEV_STD_IEEE1212REG_H_)) {
    eval 'sub _DEV_STD_IEEE1212REG_H_ () {1;}' unless defined(&_DEV_STD_IEEE1212REG_H_);
    eval 'sub P1212_XTCODE_RESERVED_0 () {0;}' unless defined(&P1212_XTCODE_RESERVED_0);
    eval 'sub P1212_XTCODE_MASK_SWAP () {1;}' unless defined(&P1212_XTCODE_MASK_SWAP);
    eval 'sub P1212_XTCODE_COMPARE_SWAP () {2;}' unless defined(&P1212_XTCODE_COMPARE_SWAP);
    eval 'sub P1212_XTCODE_FETCH_ADD () {3;}' unless defined(&P1212_XTCODE_FETCH_ADD);
    eval 'sub P1212_XTCODE_LITTLE_ADD () {4;}' unless defined(&P1212_XTCODE_LITTLE_ADD);
    eval 'sub P1212_XTCODE_BOUNDED_ADD () {5;}' unless defined(&P1212_XTCODE_BOUNDED_ADD);
    eval 'sub P1212_XTCODE_WRAP_ADD () {6;}' unless defined(&P1212_XTCODE_WRAP_ADD);
    eval 'sub P1212_XTCODE_VENDOR_DEPENDENT () {7;}' unless defined(&P1212_XTCODE_VENDOR_DEPENDENT);
    eval 'sub P1212_ROMFMT_INIT () {0x;}' unless defined(&P1212_ROMFMT_INIT);
    eval 'sub P1212_ROMFMT_MINIMAL () {0x1;}' unless defined(&P1212_ROMFMT_MINIMAL);
    eval 'sub P1212_ROMFMT_MK_INIT () {
        eval q(0x);
    }' unless defined(&P1212_ROMFMT_MK_INIT);
    eval 'sub P1212_ROMFMT_MK_MINIMAL {
        local($oui) = @_;
	    eval q((( &P1212_ROMFMT_MINIMAL << 24) | (($oui->[0]) << 16) | (($oui->[1]) << 8) | (($oui->[2]) << 0)));
    }' unless defined(&P1212_ROMFMT_MK_MINIMAL);
    eval 'sub P1212_ROMFMT_MK_GENERAL {
        local($info_len, $crc_len, $crc_value) = @_;
	    eval q(((($info_len) << 24) | (($crc_len) << 16) | (($crc_value) << 0)));
    }' unless defined(&P1212_ROMFMT_MK_GENERAL);
    eval 'sub P1212_ROMFMT_GET_FMT {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 24) & 0xff));
    }' unless defined(&P1212_ROMFMT_GET_FMT);
    eval 'sub P1212_ROMTFMT_GET_OUI {
        local($quadlet, $oui) = @_;
	    eval q( &do { ($oui)[0] = (($quadlet) >> 16) & 0xff; ($oui)[1] = (($quadlet) >> 8) & 0xff; ($oui)[2] = (($quadlet) >> 0) & 0xff; }  &while (0));
    }' unless defined(&P1212_ROMTFMT_GET_OUI);
    eval 'sub P1212_ROMFMT_GET_INFOLEN {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 24) & 0xff));
    }' unless defined(&P1212_ROMFMT_GET_INFOLEN);
    eval 'sub P1212_ROMFMT_GET_CRCLEN {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 16) & 0xff));
    }' unless defined(&P1212_ROMFMT_GET_CRCLEN);
    eval 'sub P1212_ROMFMT_GET_CRC {
        local($quadlet) = @_;
	    eval q((($quadlet)));
    }' unless defined(&P1212_ROMFMT_GET_CRC);
    eval 'sub P1212_DIRENT_GET_KEY {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 24) & 0xff));
    }' unless defined(&P1212_DIRENT_GET_KEY);
    eval 'sub P1212_DIRENT_GET_KEYTYPE {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 30) & 0x3));
    }' unless defined(&P1212_DIRENT_GET_KEYTYPE);
    eval 'sub P1212_DIRENT_GET_KEYVALUE {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 24) & 0x3f));
    }' unless defined(&P1212_DIRENT_GET_KEYVALUE);
    eval 'sub P1212_DIRENT_GET_OFFSET {
        local($quadlet) = @_;
	    eval q((($quadlet) & 0xffffff));
    }' unless defined(&P1212_DIRENT_GET_OFFSET);
    eval 'sub P1212_DIRENT_GET_VALUE {
        local($quadlet) = @_;
	    eval q((($quadlet) & 0xffffff));
    }' unless defined(&P1212_DIRENT_GET_VALUE);
    eval 'sub P1212_DIRENT_GET_LEN {
        local($quadlet) = @_;
	    eval q(((($quadlet) >> 16) & 0xffff));
    }' unless defined(&P1212_DIRENT_GET_LEN);
    eval 'sub P1212_DIRENT_GET_CRC {
        local($quadlet) = @_;
	    eval q((($quadlet)));
    }' unless defined(&P1212_DIRENT_GET_CRC);
    eval 'sub P1212_KEYTYPE_Immediate () {0x;}' unless defined(&P1212_KEYTYPE_Immediate);
    eval 'sub P1212_KEYTYPE_Offset () {0x1;}' unless defined(&P1212_KEYTYPE_Offset);
    eval 'sub P1212_KEYTYPE_Leaf () {0x2;}' unless defined(&P1212_KEYTYPE_Leaf);
    eval 'sub P1212_KEYTYPE_Directory () {0x3;}' unless defined(&P1212_KEYTYPE_Directory);
    eval 'sub P1212_KEYVALUE_Textual_Descriptor () {0x1;}' unless defined(&P1212_KEYVALUE_Textual_Descriptor);
    eval 'sub P1212_KEYVALUE_Bus_Dependent_Info () {0x2;}' unless defined(&P1212_KEYVALUE_Bus_Dependent_Info);
    eval 'sub P1212_KEYVALUE_Module_Vendor_Id () {0x3;}' unless defined(&P1212_KEYVALUE_Module_Vendor_Id);
    eval 'sub P1212_KEYVALUE_Module_Hw_Version () {0x4;}' unless defined(&P1212_KEYVALUE_Module_Hw_Version);
    eval 'sub P1212_KEYVALUE_Module_Spec_Id () {0x5;}' unless defined(&P1212_KEYVALUE_Module_Spec_Id);
    eval 'sub P1212_KEYVALUE_Module_Sw_Version () {0x6;}' unless defined(&P1212_KEYVALUE_Module_Sw_Version);
    eval 'sub P1212_KEYVALUE_Module_Dependent_Info () {0x7;}' unless defined(&P1212_KEYVALUE_Module_Dependent_Info);
    eval 'sub P1212_KEYVALUE_Node_Vendor_Id () {0x8;}' unless defined(&P1212_KEYVALUE_Node_Vendor_Id);
    eval 'sub P1212_KEYVALUE_Node_Hw_Version () {0x9;}' unless defined(&P1212_KEYVALUE_Node_Hw_Version);
    eval 'sub P1212_KEYVALUE_Node_Spec_Id () {0xa;}' unless defined(&P1212_KEYVALUE_Node_Spec_Id);
    eval 'sub P1212_KEYVALUE_Node_Sw_Version () {0xb;}' unless defined(&P1212_KEYVALUE_Node_Sw_Version);
    eval 'sub P1212_KEYVALUE_Node_Capabilities () {0xc;}' unless defined(&P1212_KEYVALUE_Node_Capabilities);
    eval 'sub P1212_KEYVALUE_Node_Unique_Id () {0xd;}' unless defined(&P1212_KEYVALUE_Node_Unique_Id);
    eval 'sub P1212_KEYVALUE_Node_Units_Extent () {0xe;}' unless defined(&P1212_KEYVALUE_Node_Units_Extent);
    eval 'sub P1212_KEYVALUE_Node_Memory_Extent () {0xf;}' unless defined(&P1212_KEYVALUE_Node_Memory_Extent);
    eval 'sub P1212_KEYVALUE_Node_Dependent_Info () {0x10;}' unless defined(&P1212_KEYVALUE_Node_Dependent_Info);
    eval 'sub P1212_KEYVALUE_Unit_Directory () {0x11;}' unless defined(&P1212_KEYVALUE_Unit_Directory);
    eval 'sub P1212_KEYVALUE_Unit_Spec_Id () {0x12;}' unless defined(&P1212_KEYVALUE_Unit_Spec_Id);
    eval 'sub P1212_KEYVALUE_Unit_Sw_Version () {0x13;}' unless defined(&P1212_KEYVALUE_Unit_Sw_Version);
    eval 'sub P1212_KEYVALUE_Unit_Dependent_Info () {0x14;}' unless defined(&P1212_KEYVALUE_Unit_Dependent_Info);
    eval 'sub P1212_KEYVALUE_Unit_Location () {0x15;}' unless defined(&P1212_KEYVALUE_Unit_Location);
    eval 'sub P1212_KEYVALUE_Unit_Poll_Mask () {0x16;}' unless defined(&P1212_KEYVALUE_Unit_Poll_Mask);
    eval 'sub P1212_KEYVALUE_Model () {0x17;}' unless defined(&P1212_KEYVALUE_Model);
    eval 'sub P1212_KEYVALUR_Instance_Directory () {0x18;}' unless defined(&P1212_KEYVALUR_Instance_Directory);
    eval 'sub P1212_KEYVALUE_Keyword () {0x19;}' unless defined(&P1212_KEYVALUE_Keyword);
    eval 'sub P1212_KEYVALUE_Feature_Directory () {0x1a;}' unless defined(&P1212_KEYVALUE_Feature_Directory);
    eval 'sub P1212_KEYVALUE_Extended_ROM () {0x1b;}' unless defined(&P1212_KEYVALUE_Extended_ROM);
    eval 'sub P1212_KEYVALUE_Extended_Key_Spec_Id () {0x1c;}' unless defined(&P1212_KEYVALUE_Extended_Key_Spec_Id);
    eval 'sub P1212_KEYVALUE_Extended_Key () {0x1d;}' unless defined(&P1212_KEYVALUE_Extended_Key);
    eval 'sub P1212_KEYVALUE_Extended_Data () {0x1e;}' unless defined(&P1212_KEYVALUE_Extended_Data);
    eval 'sub P1212_KEYVALUE_Modifiable_Descriptor () {0x1f;}' unless defined(&P1212_KEYVALUE_Modifiable_Descriptor);
    eval 'sub P1212_KEYVALUE_Directory_Id () {0x20;}' unless defined(&P1212_KEYVALUE_Directory_Id);
    eval 'sub P1212_KEYTYPE_STRINGS () {{ "Immediate", "Offset", "Leaf", "Directory" };}' unless defined(&P1212_KEYTYPE_STRINGS);
    eval 'sub P1212_KEYVALUE_STRINGS () {{ "Root-Directory", "Textual-Descriptor", "Bus-Dependent-Info", "Module-Vendor-Id", "Module-Hw-Version", "Module-Spec-Id", "Module-Sw-Version", "Module-Dependent-Info", "Node-Vendor-Id", "Node-Hw_Version", "Node-Spec-Id", "Node-Sw-Verson", "Node-Capabilities", "Node-Unique-Id", "Node-Units-Extent", "Node-Memory-Extent", "Node-Dependent-Info", "Unit-Directory", "Unit-Spec-Id", "Unit-Sw-Version", "Unit-Dependent-Info", "Unit-Location", "Unit-Poll-Mask", "Model", "Instance-Directory", "Keyword", "Feature-Directory", "Extended-ROM", "Extended-Key-Spec-Id", "Extended-Key", "Extended-Data", "Modifiable-Descriptor", "Directory-Id",  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL ,  &NULL , "Command-Set-Spec-ID", "Commant-Set", "Unit-Characteristics", "Command-Set-Revision", "Firmware-Revision", "Reconnect-Timeout", };}' unless defined(&P1212_KEYVALUE_STRINGS);
    eval 'sub P1212_TEXT_Min_Leaf_Length () {0x3;}' unless defined(&P1212_TEXT_Min_Leaf_Length);
    eval 'sub P1212_TEXT_GET_Spec_Type {
        local($quadlet) = @_;
	    eval q(((($quadlet) & 0xff000000) >> 24));
    }' unless defined(&P1212_TEXT_GET_Spec_Type);
    eval 'sub P1212_TEXT_GET_Spec_Id {
        local($quadlet) = @_;
	    eval q((($quadlet) & 0xffffff));
    }' unless defined(&P1212_TEXT_GET_Spec_Id);
    eval 'sub P1212_FIND_SEARCHALL () {0x1;}' unless defined(&P1212_FIND_SEARCHALL);
    eval 'sub P1212_FIND_RETURNALL () {0x2;}' unless defined(&P1212_FIND_RETURNALL);
    eval 'sub P1212_ALLOW_DEPENDENT_INFO_OFFSET_TYPE () {0x1;}' unless defined(&P1212_ALLOW_DEPENDENT_INFO_OFFSET_TYPE);
    eval 'sub P1212_ALLOW_DEPENDENT_INFO_IMMED_TYPE () {0x2;}' unless defined(&P1212_ALLOW_DEPENDENT_INFO_IMMED_TYPE);
    eval 'sub P1212_ALLOW_VENDOR_DIRECTORY_TYPE () {0x4;}' unless defined(&P1212_ALLOW_VENDOR_DIRECTORY_TYPE);
}
1;
