require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETGRAPH_HCI_H_)) {
    eval 'sub _NETGRAPH_HCI_H_ () {1;}' unless defined(&_NETGRAPH_HCI_H_);
    eval 'sub NG_HCI_NODE_TYPE () {"hci";}' unless defined(&NG_HCI_NODE_TYPE);
    eval 'sub NGM_HCI_COOKIE () {1000774184;}' unless defined(&NGM_HCI_COOKIE);
    eval 'sub NG_HCI_HOOK_DRV () {"drv";}' unless defined(&NG_HCI_HOOK_DRV);
    eval 'sub NG_HCI_HOOK_ACL () {"acl";}' unless defined(&NG_HCI_HOOK_ACL);
    eval 'sub NG_HCI_HOOK_SCO () {"sco";}' unless defined(&NG_HCI_HOOK_SCO);
    eval 'sub NG_HCI_HOOK_RAW () {"raw";}' unless defined(&NG_HCI_HOOK_RAW);
    eval 'sub NG_HCI_BDADDR_SIZE () {6;}' unless defined(&NG_HCI_BDADDR_SIZE);
    eval 'sub NG_HCI_LAP_SIZE () {3;}' unless defined(&NG_HCI_LAP_SIZE);
    eval 'sub NG_HCI_KEY_SIZE () {16;}' unless defined(&NG_HCI_KEY_SIZE);
    eval 'sub NG_HCI_PIN_SIZE () {16;}' unless defined(&NG_HCI_PIN_SIZE);
    eval 'sub NG_HCI_EVENT_MASK_SIZE () {8;}' unless defined(&NG_HCI_EVENT_MASK_SIZE);
    eval 'sub NG_HCI_CLASS_SIZE () {3;}' unless defined(&NG_HCI_CLASS_SIZE);
    eval 'sub NG_HCI_FEATURES_SIZE () {8;}' unless defined(&NG_HCI_FEATURES_SIZE);
    eval 'sub NG_HCI_UNIT_NAME_SIZE () {248;}' unless defined(&NG_HCI_UNIT_NAME_SIZE);
    eval 'sub NG_HCI_SPEC_V10 () {0x;}' unless defined(&NG_HCI_SPEC_V10);
    eval 'sub NG_HCI_SPEC_V11 () {0x1;}' unless defined(&NG_HCI_SPEC_V11);
    eval 'sub NG_HCI_LMP_3SLOT () {0x1;}' unless defined(&NG_HCI_LMP_3SLOT);
    eval 'sub NG_HCI_LMP_5SLOT () {0x2;}' unless defined(&NG_HCI_LMP_5SLOT);
    eval 'sub NG_HCI_LMP_ENCRYPTION () {0x4;}' unless defined(&NG_HCI_LMP_ENCRYPTION);
    eval 'sub NG_HCI_LMP_SLOT_OFFSET () {0x8;}' unless defined(&NG_HCI_LMP_SLOT_OFFSET);
    eval 'sub NG_HCI_LMP_TIMING_ACCURACY () {0x10;}' unless defined(&NG_HCI_LMP_TIMING_ACCURACY);
    eval 'sub NG_HCI_LMP_SWITCH () {0x20;}' unless defined(&NG_HCI_LMP_SWITCH);
    eval 'sub NG_HCI_LMP_HOLD_MODE () {0x40;}' unless defined(&NG_HCI_LMP_HOLD_MODE);
    eval 'sub NG_HCI_LMP_SNIFF_MODE () {0x80;}' unless defined(&NG_HCI_LMP_SNIFF_MODE);
    eval 'sub NG_HCI_LMP_PARK_MODE () {0x1;}' unless defined(&NG_HCI_LMP_PARK_MODE);
    eval 'sub NG_HCI_LMP_RSSI () {0x2;}' unless defined(&NG_HCI_LMP_RSSI);
    eval 'sub NG_HCI_LMP_CHANNEL_QUALITY () {0x4;}' unless defined(&NG_HCI_LMP_CHANNEL_QUALITY);
    eval 'sub NG_HCI_LMP_SCO_LINK () {0x8;}' unless defined(&NG_HCI_LMP_SCO_LINK);
    eval 'sub NG_HCI_LMP_HV2_PKT () {0x10;}' unless defined(&NG_HCI_LMP_HV2_PKT);
    eval 'sub NG_HCI_LMP_HV3_PKT () {0x20;}' unless defined(&NG_HCI_LMP_HV3_PKT);
    eval 'sub NG_HCI_LMP_ULAW_LOG () {0x40;}' unless defined(&NG_HCI_LMP_ULAW_LOG);
    eval 'sub NG_HCI_LMP_ALAW_LOG () {0x80;}' unless defined(&NG_HCI_LMP_ALAW_LOG);
    eval 'sub NG_HCI_LMP_CVSD () {0x1;}' unless defined(&NG_HCI_LMP_CVSD);
    eval 'sub NG_HCI_LMP_PAGING_SCHEME () {0x2;}' unless defined(&NG_HCI_LMP_PAGING_SCHEME);
    eval 'sub NG_HCI_LMP_POWER_CONTROL () {0x4;}' unless defined(&NG_HCI_LMP_POWER_CONTROL);
    eval 'sub NG_HCI_LMP_TRANSPARENT_SCO () {0x8;}' unless defined(&NG_HCI_LMP_TRANSPARENT_SCO);
    eval 'sub NG_HCI_LMP_FLOW_CONTROL_LAG0 () {0x10;}' unless defined(&NG_HCI_LMP_FLOW_CONTROL_LAG0);
    eval 'sub NG_HCI_LMP_FLOW_CONTROL_LAG1 () {0x20;}' unless defined(&NG_HCI_LMP_FLOW_CONTROL_LAG1);
    eval 'sub NG_HCI_LMP_FLOW_CONTROL_LAG2 () {0x40;}' unless defined(&NG_HCI_LMP_FLOW_CONTROL_LAG2);
    eval 'sub NG_HCI_LINK_SCO () {0x;}' unless defined(&NG_HCI_LINK_SCO);
    eval 'sub NG_HCI_LINK_ACL () {0x1;}' unless defined(&NG_HCI_LINK_ACL);
    eval 'sub NG_HCI_PKT_DM1 () {0x8;}' unless defined(&NG_HCI_PKT_DM1);
    eval 'sub NG_HCI_PKT_DH1 () {0x10;}' unless defined(&NG_HCI_PKT_DH1);
    eval 'sub NG_HCI_PKT_HV1 () {0x20;}' unless defined(&NG_HCI_PKT_HV1);
    eval 'sub NG_HCI_PKT_HV2 () {0x40;}' unless defined(&NG_HCI_PKT_HV2);
    eval 'sub NG_HCI_PKT_HV3 () {0x80;}' unless defined(&NG_HCI_PKT_HV3);
    eval 'sub NG_HCI_PKT_DM3 () {0x400;}' unless defined(&NG_HCI_PKT_DM3);
    eval 'sub NG_HCI_PKT_DH3 () {0x800;}' unless defined(&NG_HCI_PKT_DH3);
    eval 'sub NG_HCI_PKT_DM5 () {0x4000;}' unless defined(&NG_HCI_PKT_DM5);
    eval 'sub NG_HCI_PKT_DH5 () {0x8000;}' unless defined(&NG_HCI_PKT_DH5);
    eval 'sub NG_HCI_UNIT_MODE_ACTIVE () {0x;}' unless defined(&NG_HCI_UNIT_MODE_ACTIVE);
    eval 'sub NG_HCI_UNIT_MODE_HOLD () {0x1;}' unless defined(&NG_HCI_UNIT_MODE_HOLD);
    eval 'sub NG_HCI_UNIT_MODE_SNIFF () {0x2;}' unless defined(&NG_HCI_UNIT_MODE_SNIFF);
    eval 'sub NG_HCI_UNIT_MODE_PARK () {0x3;}' unless defined(&NG_HCI_UNIT_MODE_PARK);
    eval 'sub NG_HCI_MANDATORY_PAGE_SCAN_MODE () {0x;}' unless defined(&NG_HCI_MANDATORY_PAGE_SCAN_MODE);
    eval 'sub NG_HCI_OPTIONAL_PAGE_SCAN_MODE1 () {0x1;}' unless defined(&NG_HCI_OPTIONAL_PAGE_SCAN_MODE1);
    eval 'sub NG_HCI_OPTIONAL_PAGE_SCAN_MODE2 () {0x2;}' unless defined(&NG_HCI_OPTIONAL_PAGE_SCAN_MODE2);
    eval 'sub NG_HCI_OPTIONAL_PAGE_SCAN_MODE3 () {0x3;}' unless defined(&NG_HCI_OPTIONAL_PAGE_SCAN_MODE3);
    eval 'sub NG_HCI_SCAN_REP_MODE0 () {0x;}' unless defined(&NG_HCI_SCAN_REP_MODE0);
    eval 'sub NG_HCI_SCAN_REP_MODE1 () {0x1;}' unless defined(&NG_HCI_SCAN_REP_MODE1);
    eval 'sub NG_HCI_SCAN_REP_MODE2 () {0x2;}' unless defined(&NG_HCI_SCAN_REP_MODE2);
    eval 'sub NG_HCI_PAGE_SCAN_PERIOD_MODE0 () {0x;}' unless defined(&NG_HCI_PAGE_SCAN_PERIOD_MODE0);
    eval 'sub NG_HCI_PAGE_SCAN_PERIOD_MODE1 () {0x1;}' unless defined(&NG_HCI_PAGE_SCAN_PERIOD_MODE1);
    eval 'sub NG_HCI_PAGE_SCAN_PERIOD_MODE2 () {0x2;}' unless defined(&NG_HCI_PAGE_SCAN_PERIOD_MODE2);
    eval 'sub NG_HCI_NO_SCAN_ENABLE () {0x;}' unless defined(&NG_HCI_NO_SCAN_ENABLE);
    eval 'sub NG_HCI_INQUIRY_ENABLE_PAGE_DISABLE () {0x1;}' unless defined(&NG_HCI_INQUIRY_ENABLE_PAGE_DISABLE);
    eval 'sub NG_HCI_INQUIRY_DISABLE_PAGE_ENABLE () {0x2;}' unless defined(&NG_HCI_INQUIRY_DISABLE_PAGE_ENABLE);
    eval 'sub NG_HCI_INQUIRY_ENABLE_PAGE_ENABLE () {0x3;}' unless defined(&NG_HCI_INQUIRY_ENABLE_PAGE_ENABLE);
    eval 'sub NG_HCI_HOLD_MODE_NO_CHANGE () {0x;}' unless defined(&NG_HCI_HOLD_MODE_NO_CHANGE);
    eval 'sub NG_HCI_HOLD_MODE_SUSPEND_PAGE_SCAN () {0x1;}' unless defined(&NG_HCI_HOLD_MODE_SUSPEND_PAGE_SCAN);
    eval 'sub NG_HCI_HOLD_MODE_SUSPEND_INQUIRY_SCAN () {0x2;}' unless defined(&NG_HCI_HOLD_MODE_SUSPEND_INQUIRY_SCAN);
    eval 'sub NG_HCI_HOLD_MODE_SUSPEND_PERIOD_INQUIRY () {0x4;}' unless defined(&NG_HCI_HOLD_MODE_SUSPEND_PERIOD_INQUIRY);
    eval 'sub NG_HCI_ROLE_MASTER () {0x;}' unless defined(&NG_HCI_ROLE_MASTER);
    eval 'sub NG_HCI_ROLE_SLAVE () {0x1;}' unless defined(&NG_HCI_ROLE_SLAVE);
    eval 'sub NG_HCI_USE_SEMI_PERMANENT_LINK_KEYS () {0x;}' unless defined(&NG_HCI_USE_SEMI_PERMANENT_LINK_KEYS);
    eval 'sub NG_HCI_USE_TEMPORARY_LINK_KEY () {0x1;}' unless defined(&NG_HCI_USE_TEMPORARY_LINK_KEY);
    eval 'sub NG_HCI_PIN_TYPE_VARIABLE () {0x;}' unless defined(&NG_HCI_PIN_TYPE_VARIABLE);
    eval 'sub NG_HCI_PIN_TYPE_FIXED () {0x1;}' unless defined(&NG_HCI_PIN_TYPE_FIXED);
    eval 'sub NG_HCI_LINK_KEY_TYPE_COMBINATION_KEY () {0x;}' unless defined(&NG_HCI_LINK_KEY_TYPE_COMBINATION_KEY);
    eval 'sub NG_HCI_LINK_KEY_TYPE_LOCAL_UNIT_KEY () {0x1;}' unless defined(&NG_HCI_LINK_KEY_TYPE_LOCAL_UNIT_KEY);
    eval 'sub NG_HCI_LINK_KEY_TYPE_REMOTE_UNIT_KEY () {0x2;}' unless defined(&NG_HCI_LINK_KEY_TYPE_REMOTE_UNIT_KEY);
    eval 'sub NG_HCI_ENCRYPTION_MODE_NONE () {0x;}' unless defined(&NG_HCI_ENCRYPTION_MODE_NONE);
    eval 'sub NG_HCI_ENCRYPTION_MODE_P2P () {0x1;}' unless defined(&NG_HCI_ENCRYPTION_MODE_P2P);
    eval 'sub NG_HCI_ENCRYPTION_MODE_ALL () {0x2;}' unless defined(&NG_HCI_ENCRYPTION_MODE_ALL);
    eval 'sub NG_HCI_SERVICE_TYPE_NO_TRAFFIC () {0x;}' unless defined(&NG_HCI_SERVICE_TYPE_NO_TRAFFIC);
    eval 'sub NG_HCI_SERVICE_TYPE_BEST_EFFORT () {0x1;}' unless defined(&NG_HCI_SERVICE_TYPE_BEST_EFFORT);
    eval 'sub NG_HCI_SERVICE_TYPE_GUARANTEED () {0x2;}' unless defined(&NG_HCI_SERVICE_TYPE_GUARANTEED);
    eval 'sub NG_HCI_LINK_POLICY_DISABLE_ALL_LM_MODES () {0x;}' unless defined(&NG_HCI_LINK_POLICY_DISABLE_ALL_LM_MODES);
    eval 'sub NG_HCI_LINK_POLICY_ENABLE_ROLE_SWITCH () {0x1;}' unless defined(&NG_HCI_LINK_POLICY_ENABLE_ROLE_SWITCH);
    eval 'sub NG_HCI_LINK_POLICY_ENABLE_HOLD_MODE () {0x2;}' unless defined(&NG_HCI_LINK_POLICY_ENABLE_HOLD_MODE);
    eval 'sub NG_HCI_LINK_POLICY_ENABLE_SNIFF_MODE () {0x4;}' unless defined(&NG_HCI_LINK_POLICY_ENABLE_SNIFF_MODE);
    eval 'sub NG_HCI_LINK_POLICY_ENABLE_PARK_MODE () {0x8;}' unless defined(&NG_HCI_LINK_POLICY_ENABLE_PARK_MODE);
    eval 'sub NG_HCI_EVMSK_ALL () {0xffffffff;}' unless defined(&NG_HCI_EVMSK_ALL);
    eval 'sub NG_HCI_EVMSK_NONE () {0x;}' unless defined(&NG_HCI_EVMSK_NONE);
    eval 'sub NG_HCI_EVMSK_INQUIRY_COMPL () {0x1;}' unless defined(&NG_HCI_EVMSK_INQUIRY_COMPL);
    eval 'sub NG_HCI_EVMSK_INQUIRY_RESULT () {0x2;}' unless defined(&NG_HCI_EVMSK_INQUIRY_RESULT);
    eval 'sub NG_HCI_EVMSK_CON_COMPL () {0x4;}' unless defined(&NG_HCI_EVMSK_CON_COMPL);
    eval 'sub NG_HCI_EVMSK_CON_REQ () {0x8;}' unless defined(&NG_HCI_EVMSK_CON_REQ);
    eval 'sub NG_HCI_EVMSK_DISCON_COMPL () {0x10;}' unless defined(&NG_HCI_EVMSK_DISCON_COMPL);
    eval 'sub NG_HCI_EVMSK_AUTH_COMPL () {0x20;}' unless defined(&NG_HCI_EVMSK_AUTH_COMPL);
    eval 'sub NG_HCI_EVMSK_REMOTE_NAME_REQ_COMPL () {0x40;}' unless defined(&NG_HCI_EVMSK_REMOTE_NAME_REQ_COMPL);
    eval 'sub NG_HCI_EVMSK_ENCRYPTION_CHANGE () {0x80;}' unless defined(&NG_HCI_EVMSK_ENCRYPTION_CHANGE);
    eval 'sub NG_HCI_EVMSK_CHANGE_CON_LINK_KEY_COMPL () {0x100;}' unless defined(&NG_HCI_EVMSK_CHANGE_CON_LINK_KEY_COMPL);
    eval 'sub NG_HCI_EVMSK_MASTER_LINK_KEY_COMPL () {0x200;}' unless defined(&NG_HCI_EVMSK_MASTER_LINK_KEY_COMPL);
    eval 'sub NG_HCI_EVMSK_READ_REMOTE_FEATURES_COMPL () {0x400;}' unless defined(&NG_HCI_EVMSK_READ_REMOTE_FEATURES_COMPL);
    eval 'sub NG_HCI_EVMSK_READ_REMOTE_VER_INFO_COMPL () {0x800;}' unless defined(&NG_HCI_EVMSK_READ_REMOTE_VER_INFO_COMPL);
    eval 'sub NG_HCI_EVMSK_QOS_SETUP_COMPL () {0x1000;}' unless defined(&NG_HCI_EVMSK_QOS_SETUP_COMPL);
    eval 'sub NG_HCI_EVMSK_COMMAND_COMPL () {0x2000;}' unless defined(&NG_HCI_EVMSK_COMMAND_COMPL);
    eval 'sub NG_HCI_EVMSK_COMMAND_STATUS () {0x4000;}' unless defined(&NG_HCI_EVMSK_COMMAND_STATUS);
    eval 'sub NG_HCI_EVMSK_HARDWARE_ERROR () {0x8000;}' unless defined(&NG_HCI_EVMSK_HARDWARE_ERROR);
    eval 'sub NG_HCI_EVMSK_FLUSH_OCCUR () {0x10000;}' unless defined(&NG_HCI_EVMSK_FLUSH_OCCUR);
    eval 'sub NG_HCI_EVMSK_ROLE_CHANGE () {0x20000;}' unless defined(&NG_HCI_EVMSK_ROLE_CHANGE);
    eval 'sub NG_HCI_EVMSK_NUM_COMPL_PKTS () {0x40000;}' unless defined(&NG_HCI_EVMSK_NUM_COMPL_PKTS);
    eval 'sub NG_HCI_EVMSK_MODE_CHANGE () {0x80000;}' unless defined(&NG_HCI_EVMSK_MODE_CHANGE);
    eval 'sub NG_HCI_EVMSK_RETURN_LINK_KEYS () {0x100000;}' unless defined(&NG_HCI_EVMSK_RETURN_LINK_KEYS);
    eval 'sub NG_HCI_EVMSK_PIN_CODE_REQ () {0x200000;}' unless defined(&NG_HCI_EVMSK_PIN_CODE_REQ);
    eval 'sub NG_HCI_EVMSK_LINK_KEY_REQ () {0x400000;}' unless defined(&NG_HCI_EVMSK_LINK_KEY_REQ);
    eval 'sub NG_HCI_EVMSK_LINK_KEY_NOTIFICATION () {0x800000;}' unless defined(&NG_HCI_EVMSK_LINK_KEY_NOTIFICATION);
    eval 'sub NG_HCI_EVMSK_LOOPBACK_COMMAND () {0x1000000;}' unless defined(&NG_HCI_EVMSK_LOOPBACK_COMMAND);
    eval 'sub NG_HCI_EVMSK_DATA_BUFFER_OVERFLOW () {0x2000000;}' unless defined(&NG_HCI_EVMSK_DATA_BUFFER_OVERFLOW);
    eval 'sub NG_HCI_EVMSK_MAX_SLOT_CHANGE () {0x4000000;}' unless defined(&NG_HCI_EVMSK_MAX_SLOT_CHANGE);
    eval 'sub NG_HCI_EVMSK_READ_CLOCK_OFFSET_COMLETE () {0x8000000;}' unless defined(&NG_HCI_EVMSK_READ_CLOCK_OFFSET_COMLETE);
    eval 'sub NG_HCI_EVMSK_CON_PKT_TYPE_CHANGED () {0x10000000;}' unless defined(&NG_HCI_EVMSK_CON_PKT_TYPE_CHANGED);
    eval 'sub NG_HCI_EVMSK_QOS_VIOLATION () {0x20000000;}' unless defined(&NG_HCI_EVMSK_QOS_VIOLATION);
    eval 'sub NG_HCI_EVMSK_PAGE_SCAN_MODE_CHANGE () {0x40000000;}' unless defined(&NG_HCI_EVMSK_PAGE_SCAN_MODE_CHANGE);
    eval 'sub NG_HCI_EVMSK_PAGE_SCAN_REP_MODE_CHANGE () {0x80000000;}' unless defined(&NG_HCI_EVMSK_PAGE_SCAN_REP_MODE_CHANGE);
    eval 'sub NG_HCI_FILTER_TYPE_NONE () {0x;}' unless defined(&NG_HCI_FILTER_TYPE_NONE);
    eval 'sub NG_HCI_FILTER_TYPE_INQUIRY_RESULT () {0x1;}' unless defined(&NG_HCI_FILTER_TYPE_INQUIRY_RESULT);
    eval 'sub NG_HCI_FILTER_TYPE_CON_SETUP () {0x2;}' unless defined(&NG_HCI_FILTER_TYPE_CON_SETUP);
    eval 'sub NG_HCI_FILTER_COND_INQUIRY_NEW_UNIT () {0x;}' unless defined(&NG_HCI_FILTER_COND_INQUIRY_NEW_UNIT);
    eval 'sub NG_HCI_FILTER_COND_INQUIRY_UNIT_CLASS () {0x1;}' unless defined(&NG_HCI_FILTER_COND_INQUIRY_UNIT_CLASS);
    eval 'sub NG_HCI_FILTER_COND_INQUIRY_BDADDR () {0x2;}' unless defined(&NG_HCI_FILTER_COND_INQUIRY_BDADDR);
    eval 'sub NG_HCI_FILTER_COND_CON_ANY_UNIT () {0x;}' unless defined(&NG_HCI_FILTER_COND_CON_ANY_UNIT);
    eval 'sub NG_HCI_FILTER_COND_CON_UNIT_CLASS () {0x1;}' unless defined(&NG_HCI_FILTER_COND_CON_UNIT_CLASS);
    eval 'sub NG_HCI_FILTER_COND_CON_BDADDR () {0x2;}' unless defined(&NG_HCI_FILTER_COND_CON_BDADDR);
    eval 'sub NG_HCI_XMIT_LEVEL_CURRENT () {0x;}' unless defined(&NG_HCI_XMIT_LEVEL_CURRENT);
    eval 'sub NG_HCI_XMIT_LEVEL_MAXIMUM () {0x1;}' unless defined(&NG_HCI_XMIT_LEVEL_MAXIMUM);
    eval 'sub NG_HCI_H2HC_FLOW_CONTROL_NONE () {0x;}' unless defined(&NG_HCI_H2HC_FLOW_CONTROL_NONE);
    eval 'sub NG_HCI_H2HC_FLOW_CONTROL_ACL () {0x1;}' unless defined(&NG_HCI_H2HC_FLOW_CONTROL_ACL);
    eval 'sub NG_HCI_H2HC_FLOW_CONTROL_SCO () {0x2;}' unless defined(&NG_HCI_H2HC_FLOW_CONTROL_SCO);
    eval 'sub NG_HCI_H2HC_FLOW_CONTROL_BOTH () {0x3;}' unless defined(&NG_HCI_H2HC_FLOW_CONTROL_BOTH);
    eval 'sub NG_HCI_COUNTRY_CODE_NAM_EUR_JP () {0x;}' unless defined(&NG_HCI_COUNTRY_CODE_NAM_EUR_JP);
    eval 'sub NG_HCI_COUNTRY_CODE_FRANCE () {0x1;}' unless defined(&NG_HCI_COUNTRY_CODE_FRANCE);
    eval 'sub NG_HCI_LOOPBACK_NONE () {0x;}' unless defined(&NG_HCI_LOOPBACK_NONE);
    eval 'sub NG_HCI_LOOPBACK_LOCAL () {0x1;}' unless defined(&NG_HCI_LOOPBACK_LOCAL);
    eval 'sub NG_HCI_LOOPBACK_REMOTE () {0x2;}' unless defined(&NG_HCI_LOOPBACK_REMOTE);
    eval 'sub NG_HCI_OPCODE {
        my($gf,$cf) = @_;
	    eval q((((($gf) & 0x3f) << 10) | (($cf) & 0x3ff)));
    }' unless defined(&NG_HCI_OPCODE);
    eval 'sub NG_HCI_OCF {
        my($op) = @_;
	    eval q((($op) & 0x3ff));
    }' unless defined(&NG_HCI_OCF);
    eval 'sub NG_HCI_OGF {
        my($op) = @_;
	    eval q(((($op) >> 10) & 0x3f));
    }' unless defined(&NG_HCI_OGF);
    eval 'sub NG_HCI_CON_HANDLE {
        my($h) = @_;
	    eval q((($h) & 0xfff));
    }' unless defined(&NG_HCI_CON_HANDLE);
    eval 'sub NG_HCI_PB_FLAG {
        my($h) = @_;
	    eval q(((($h) & 0x3000) >> 12));
    }' unless defined(&NG_HCI_PB_FLAG);
    eval 'sub NG_HCI_BC_FLAG {
        my($h) = @_;
	    eval q(((($h) & 0xc000) >> 14));
    }' unless defined(&NG_HCI_BC_FLAG);
    eval 'sub NG_HCI_MK_CON_HANDLE {
        my($h, $pb, $bc) = @_;
	    eval q(((($h) & 0xfff) | ((($pb) & 3) << 12) | ((($bc) & 3) << 14)));
    }' unless defined(&NG_HCI_MK_CON_HANDLE);
    eval 'sub NG_HCI_PACKET_FRAGMENT () {0x1;}' unless defined(&NG_HCI_PACKET_FRAGMENT);
    eval 'sub NG_HCI_PACKET_START () {0x2;}' unless defined(&NG_HCI_PACKET_START);
    eval 'sub NG_HCI_POINT2POINT () {0x;}' unless defined(&NG_HCI_POINT2POINT);
    eval 'sub NG_HCI_BROADCAST_ACTIVE () {0x1;}' unless defined(&NG_HCI_BROADCAST_ACTIVE);
    eval 'sub NG_HCI_BROADCAST_PICONET () {0x2;}' unless defined(&NG_HCI_BROADCAST_PICONET);
    eval 'sub NG_HCI_CMD_PKT () {0x1;}' unless defined(&NG_HCI_CMD_PKT);
    eval 'sub NG_HCI_CMD_PKT_SIZE () {0xff;}' unless defined(&NG_HCI_CMD_PKT_SIZE);
    eval 'sub NG_HCI_ACL_DATA_PKT () {0x2;}' unless defined(&NG_HCI_ACL_DATA_PKT);
    eval 'sub NG_HCI_ACL_PKT_SIZE () {0xffff;}' unless defined(&NG_HCI_ACL_PKT_SIZE);
    eval 'sub NG_HCI_SCO_DATA_PKT () {0x3;}' unless defined(&NG_HCI_SCO_DATA_PKT);
    eval 'sub NG_HCI_SCO_PKT_SIZE () {0xff;}' unless defined(&NG_HCI_SCO_PKT_SIZE);
    eval 'sub NG_HCI_EVENT_PKT () {0x4;}' unless defined(&NG_HCI_EVENT_PKT);
    eval 'sub NG_HCI_EVENT_PKT_SIZE () {0xff;}' unless defined(&NG_HCI_EVENT_PKT_SIZE);
    eval 'sub NG_HCI_BDADDR_ANY () {(( &bdaddr_p) "\\000\\000\\000\\000\\000\\000");}' unless defined(&NG_HCI_BDADDR_ANY);
    eval 'sub NGM_HCI_LP_CON_REQ () {1;}' unless defined(&NGM_HCI_LP_CON_REQ);
    eval 'sub NGM_HCI_LP_DISCON_REQ () {2;}' unless defined(&NGM_HCI_LP_DISCON_REQ);
    eval 'sub NGM_HCI_LP_CON_CFM () {3;}' unless defined(&NGM_HCI_LP_CON_CFM);
    eval 'sub NGM_HCI_LP_CON_IND () {4;}' unless defined(&NGM_HCI_LP_CON_IND);
    eval 'sub NGM_HCI_LP_CON_RSP () {5;}' unless defined(&NGM_HCI_LP_CON_RSP);
    eval 'sub NGM_HCI_LP_DISCON_IND () {6;}' unless defined(&NGM_HCI_LP_DISCON_IND);
    eval 'sub NGM_HCI_LP_QOS_REQ () {7;}' unless defined(&NGM_HCI_LP_QOS_REQ);
    eval 'sub NGM_HCI_LP_QOS_CFM () {8;}' unless defined(&NGM_HCI_LP_QOS_CFM);
    eval 'sub NGM_HCI_LP_QOS_IND () {9;}' unless defined(&NGM_HCI_LP_QOS_IND);
    eval 'sub NG_HCI_ALERT_LEVEL () {1;}' unless defined(&NG_HCI_ALERT_LEVEL);
    eval 'sub NG_HCI_ERR_LEVEL () {2;}' unless defined(&NG_HCI_ERR_LEVEL);
    eval 'sub NG_HCI_WARN_LEVEL () {3;}' unless defined(&NG_HCI_WARN_LEVEL);
    eval 'sub NG_HCI_INFO_LEVEL () {4;}' unless defined(&NG_HCI_INFO_LEVEL);
    eval 'sub NG_HCI_UNIT_CONNECTED () {(1<< 0);}' unless defined(&NG_HCI_UNIT_CONNECTED);
    eval 'sub NG_HCI_UNIT_INITED () {(1<< 1);}' unless defined(&NG_HCI_UNIT_INITED);
    eval 'sub NG_HCI_UNIT_READY () {( &NG_HCI_UNIT_CONNECTED| &NG_HCI_UNIT_INITED);}' unless defined(&NG_HCI_UNIT_READY);
    eval 'sub NG_HCI_UNIT_COMMAND_PENDING () {(1<< 2);}' unless defined(&NG_HCI_UNIT_COMMAND_PENDING);
    eval 'sub NG_HCI_CON_CLOSED () {0;}' unless defined(&NG_HCI_CON_CLOSED);
    eval 'sub NG_HCI_CON_W4_LP_CON_RSP () {1;}' unless defined(&NG_HCI_CON_W4_LP_CON_RSP);
    eval 'sub NG_HCI_CON_W4_CONN_COMPLETE () {2;}' unless defined(&NG_HCI_CON_W4_CONN_COMPLETE);
    eval 'sub NG_HCI_CON_OPEN () {3;}' unless defined(&NG_HCI_CON_OPEN);
    eval 'sub NGM_HCI_NODE_GET_STATE () {100;}' unless defined(&NGM_HCI_NODE_GET_STATE);
    eval 'sub NGM_HCI_NODE_INIT () {101;}' unless defined(&NGM_HCI_NODE_INIT);
    eval 'sub NGM_HCI_NODE_GET_DEBUG () {102;}' unless defined(&NGM_HCI_NODE_GET_DEBUG);
    eval 'sub NGM_HCI_NODE_SET_DEBUG () {103;}' unless defined(&NGM_HCI_NODE_SET_DEBUG);
    eval 'sub NGM_HCI_NODE_GET_BUFFER () {104;}' unless defined(&NGM_HCI_NODE_GET_BUFFER);
    eval 'sub NGM_HCI_NODE_GET_BDADDR () {105;}' unless defined(&NGM_HCI_NODE_GET_BDADDR);
    eval 'sub NGM_HCI_NODE_GET_FEATURES () {106;}' unless defined(&NGM_HCI_NODE_GET_FEATURES);
    eval 'sub NGM_HCI_NODE_GET_STAT () {107;}' unless defined(&NGM_HCI_NODE_GET_STAT);
    eval 'sub NGM_HCI_NODE_RESET_STAT () {108;}' unless defined(&NGM_HCI_NODE_RESET_STAT);
    eval 'sub NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE () {109;}' unless defined(&NGM_HCI_NODE_FLUSH_NEIGHBOR_CACHE);
    eval 'sub NGM_HCI_NODE_GET_NEIGHBOR_CACHE () {110;}' unless defined(&NGM_HCI_NODE_GET_NEIGHBOR_CACHE);
    eval 'sub NG_HCI_MAX_NEIGHBOR_NUM () {((0xffff - $sizeof{ &ng_hci_node_get_neighbor_cache_ep})/$sizeof{ &ng_hci_node_neighbor_cache_entry_ep});}' unless defined(&NG_HCI_MAX_NEIGHBOR_NUM);
    eval 'sub NGM_HCI_NODE_GET_CON_LIST () {111;}' unless defined(&NGM_HCI_NODE_GET_CON_LIST);
    eval 'sub NG_HCI_MAX_CON_NUM () {((0xffff - $sizeof{ &ng_hci_node_con_list_ep})/$sizeof{ &ng_hci_node_con_ep});}' unless defined(&NG_HCI_MAX_CON_NUM);
    eval 'sub NGM_HCI_NODE_UP () {112;}' unless defined(&NGM_HCI_NODE_UP);
    eval 'sub NGM_HCI_SYNC_CON_QUEUE () {113;}' unless defined(&NGM_HCI_SYNC_CON_QUEUE);
    eval 'sub NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK () {114;}' unless defined(&NGM_HCI_NODE_GET_LINK_POLICY_SETTINGS_MASK);
    eval 'sub NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK () {115;}' unless defined(&NGM_HCI_NODE_SET_LINK_POLICY_SETTINGS_MASK);
    eval 'sub NGM_HCI_NODE_GET_PACKET_MASK () {116;}' unless defined(&NGM_HCI_NODE_GET_PACKET_MASK);
    eval 'sub NGM_HCI_NODE_SET_PACKET_MASK () {117;}' unless defined(&NGM_HCI_NODE_SET_PACKET_MASK);
    eval 'sub NGM_HCI_NODE_GET_ROLE_SWITCH () {118;}' unless defined(&NGM_HCI_NODE_GET_ROLE_SWITCH);
    eval 'sub NGM_HCI_NODE_SET_ROLE_SWITCH () {119;}' unless defined(&NGM_HCI_NODE_SET_ROLE_SWITCH);
    eval 'sub NG_HCI_OGF_LINK_CONTROL () {0x1;}' unless defined(&NG_HCI_OGF_LINK_CONTROL);
    eval 'sub NG_HCI_OCF_INQUIRY () {0x1;}' unless defined(&NG_HCI_OCF_INQUIRY);
    eval 'sub NG_HCI_OCF_INQUIRY_CANCEL () {0x2;}' unless defined(&NG_HCI_OCF_INQUIRY_CANCEL);
    eval 'sub NG_HCI_OCF_PERIODIC_INQUIRY () {0x3;}' unless defined(&NG_HCI_OCF_PERIODIC_INQUIRY);
    eval 'sub NG_HCI_OCF_EXIT_PERIODIC_INQUIRY () {0x4;}' unless defined(&NG_HCI_OCF_EXIT_PERIODIC_INQUIRY);
    eval 'sub NG_HCI_OCF_CREATE_CON () {0x5;}' unless defined(&NG_HCI_OCF_CREATE_CON);
    eval 'sub NG_HCI_OCF_DISCON () {0x6;}' unless defined(&NG_HCI_OCF_DISCON);
    eval 'sub NG_HCI_OCF_ADD_SCO_CON () {0x7;}' unless defined(&NG_HCI_OCF_ADD_SCO_CON);
    eval 'sub NG_HCI_OCF_ACCEPT_CON () {0x9;}' unless defined(&NG_HCI_OCF_ACCEPT_CON);
    eval 'sub NG_HCI_OCF_REJECT_CON () {0xa;}' unless defined(&NG_HCI_OCF_REJECT_CON);
    eval 'sub NG_HCI_OCF_LINK_KEY_REP () {0xb;}' unless defined(&NG_HCI_OCF_LINK_KEY_REP);
    eval 'sub NG_HCI_OCF_LINK_KEY_NEG_REP () {0xc;}' unless defined(&NG_HCI_OCF_LINK_KEY_NEG_REP);
    eval 'sub NG_HCI_OCF_PIN_CODE_REP () {0xd;}' unless defined(&NG_HCI_OCF_PIN_CODE_REP);
    eval 'sub NG_HCI_OCF_PIN_CODE_NEG_REP () {0xe;}' unless defined(&NG_HCI_OCF_PIN_CODE_NEG_REP);
    eval 'sub NG_HCI_OCF_CHANGE_CON_PKT_TYPE () {0xf;}' unless defined(&NG_HCI_OCF_CHANGE_CON_PKT_TYPE);
    eval 'sub NG_HCI_OCF_AUTH_REQ () {0x11;}' unless defined(&NG_HCI_OCF_AUTH_REQ);
    eval 'sub NG_HCI_OCF_SET_CON_ENCRYPTION () {0x13;}' unless defined(&NG_HCI_OCF_SET_CON_ENCRYPTION);
    eval 'sub NG_HCI_OCF_CHANGE_CON_LINK_KEY () {0x15;}' unless defined(&NG_HCI_OCF_CHANGE_CON_LINK_KEY);
    eval 'sub NG_HCI_OCF_MASTER_LINK_KEY () {0x17;}' unless defined(&NG_HCI_OCF_MASTER_LINK_KEY);
    eval 'sub NG_HCI_OCF_REMOTE_NAME_REQ () {0x19;}' unless defined(&NG_HCI_OCF_REMOTE_NAME_REQ);
    eval 'sub NG_HCI_OCF_READ_REMOTE_FEATURES () {0x1b;}' unless defined(&NG_HCI_OCF_READ_REMOTE_FEATURES);
    eval 'sub NG_HCI_OCF_READ_REMOTE_VER_INFO () {0x1d;}' unless defined(&NG_HCI_OCF_READ_REMOTE_VER_INFO);
    eval 'sub NG_HCI_OCF_READ_CLOCK_OFFSET () {0x1f;}' unless defined(&NG_HCI_OCF_READ_CLOCK_OFFSET);
    eval 'sub NG_HCI_OGF_LINK_POLICY () {0x2;}' unless defined(&NG_HCI_OGF_LINK_POLICY);
    eval 'sub NG_HCI_OCF_HOLD_MODE () {0x1;}' unless defined(&NG_HCI_OCF_HOLD_MODE);
    eval 'sub NG_HCI_OCF_SNIFF_MODE () {0x3;}' unless defined(&NG_HCI_OCF_SNIFF_MODE);
    eval 'sub NG_HCI_OCF_EXIT_SNIFF_MODE () {0x4;}' unless defined(&NG_HCI_OCF_EXIT_SNIFF_MODE);
    eval 'sub NG_HCI_OCF_PARK_MODE () {0x5;}' unless defined(&NG_HCI_OCF_PARK_MODE);
    eval 'sub NG_HCI_OCF_EXIT_PARK_MODE () {0x6;}' unless defined(&NG_HCI_OCF_EXIT_PARK_MODE);
    eval 'sub NG_HCI_OCF_QOS_SETUP () {0x7;}' unless defined(&NG_HCI_OCF_QOS_SETUP);
    eval 'sub NG_HCI_OCF_ROLE_DISCOVERY () {0x9;}' unless defined(&NG_HCI_OCF_ROLE_DISCOVERY);
    eval 'sub NG_HCI_OCF_SWITCH_ROLE () {0xb;}' unless defined(&NG_HCI_OCF_SWITCH_ROLE);
    eval 'sub NG_HCI_OCF_READ_LINK_POLICY_SETTINGS () {0xc;}' unless defined(&NG_HCI_OCF_READ_LINK_POLICY_SETTINGS);
    eval 'sub NG_HCI_OCF_WRITE_LINK_POLICY_SETTINGS () {0xd;}' unless defined(&NG_HCI_OCF_WRITE_LINK_POLICY_SETTINGS);
    eval 'sub NG_HCI_OGF_HC_BASEBAND () {0x3;}' unless defined(&NG_HCI_OGF_HC_BASEBAND);
    eval 'sub NG_HCI_OCF_SET_EVENT_MASK () {0x1;}' unless defined(&NG_HCI_OCF_SET_EVENT_MASK);
    eval 'sub NG_HCI_OCF_RESET () {0x3;}' unless defined(&NG_HCI_OCF_RESET);
    eval 'sub NG_HCI_OCF_SET_EVENT_FILTER () {0x5;}' unless defined(&NG_HCI_OCF_SET_EVENT_FILTER);
    eval 'sub NG_HCI_OCF_FLUSH () {0x8;}' unless defined(&NG_HCI_OCF_FLUSH);
    eval 'sub NG_HCI_OCF_READ_PIN_TYPE () {0x9;}' unless defined(&NG_HCI_OCF_READ_PIN_TYPE);
    eval 'sub NG_HCI_OCF_WRITE_PIN_TYPE () {0xa;}' unless defined(&NG_HCI_OCF_WRITE_PIN_TYPE);
    eval 'sub NG_HCI_OCF_CREATE_NEW_UNIT_KEY () {0xb;}' unless defined(&NG_HCI_OCF_CREATE_NEW_UNIT_KEY);
    eval 'sub NG_HCI_OCF_READ_STORED_LINK_KEY () {0xd;}' unless defined(&NG_HCI_OCF_READ_STORED_LINK_KEY);
    eval 'sub NG_HCI_OCF_WRITE_STORED_LINK_KEY () {0x11;}' unless defined(&NG_HCI_OCF_WRITE_STORED_LINK_KEY);
    eval 'sub NG_HCI_OCF_DELETE_STORED_LINK_KEY () {0x12;}' unless defined(&NG_HCI_OCF_DELETE_STORED_LINK_KEY);
    eval 'sub NG_HCI_OCF_CHANGE_LOCAL_NAME () {0x13;}' unless defined(&NG_HCI_OCF_CHANGE_LOCAL_NAME);
    eval 'sub NG_HCI_OCF_READ_LOCAL_NAME () {0x14;}' unless defined(&NG_HCI_OCF_READ_LOCAL_NAME);
    eval 'sub NG_HCI_OCF_READ_CON_ACCEPT_TIMO () {0x15;}' unless defined(&NG_HCI_OCF_READ_CON_ACCEPT_TIMO);
    eval 'sub NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO () {0x16;}' unless defined(&NG_HCI_OCF_WRITE_CON_ACCEPT_TIMO);
    eval 'sub NG_HCI_OCF_READ_PAGE_TIMO () {0x17;}' unless defined(&NG_HCI_OCF_READ_PAGE_TIMO);
    eval 'sub NG_HCI_OCF_WRITE_PAGE_TIMO () {0x18;}' unless defined(&NG_HCI_OCF_WRITE_PAGE_TIMO);
    eval 'sub NG_HCI_OCF_READ_SCAN_ENABLE () {0x19;}' unless defined(&NG_HCI_OCF_READ_SCAN_ENABLE);
    eval 'sub NG_HCI_OCF_WRITE_SCAN_ENABLE () {0x1a;}' unless defined(&NG_HCI_OCF_WRITE_SCAN_ENABLE);
    eval 'sub NG_HCI_OCF_READ_PAGE_SCAN_ACTIVITY () {0x1b;}' unless defined(&NG_HCI_OCF_READ_PAGE_SCAN_ACTIVITY);
    eval 'sub NG_HCI_OCF_WRITE_PAGE_SCAN_ACTIVITY () {0x1c;}' unless defined(&NG_HCI_OCF_WRITE_PAGE_SCAN_ACTIVITY);
    eval 'sub NG_HCI_OCF_READ_INQUIRY_SCAN_ACTIVITY () {0x1d;}' unless defined(&NG_HCI_OCF_READ_INQUIRY_SCAN_ACTIVITY);
    eval 'sub NG_HCI_OCF_WRITE_INQUIRY_SCAN_ACTIVITY () {0x1e;}' unless defined(&NG_HCI_OCF_WRITE_INQUIRY_SCAN_ACTIVITY);
    eval 'sub NG_HCI_OCF_READ_AUTH_ENABLE () {0x1f;}' unless defined(&NG_HCI_OCF_READ_AUTH_ENABLE);
    eval 'sub NG_HCI_OCF_WRITE_AUTH_ENABLE () {0x20;}' unless defined(&NG_HCI_OCF_WRITE_AUTH_ENABLE);
    eval 'sub NG_HCI_OCF_READ_ENCRYPTION_MODE () {0x21;}' unless defined(&NG_HCI_OCF_READ_ENCRYPTION_MODE);
    eval 'sub NG_HCI_OCF_WRITE_ENCRYPTION_MODE () {0x22;}' unless defined(&NG_HCI_OCF_WRITE_ENCRYPTION_MODE);
    eval 'sub NG_HCI_OCF_READ_UNIT_CLASS () {0x23;}' unless defined(&NG_HCI_OCF_READ_UNIT_CLASS);
    eval 'sub NG_HCI_OCF_WRITE_UNIT_CLASS () {0x24;}' unless defined(&NG_HCI_OCF_WRITE_UNIT_CLASS);
    eval 'sub NG_HCI_OCF_READ_VOICE_SETTINGS () {0x25;}' unless defined(&NG_HCI_OCF_READ_VOICE_SETTINGS);
    eval 'sub NG_HCI_OCF_WRITE_VOICE_SETTINGS () {0x26;}' unless defined(&NG_HCI_OCF_WRITE_VOICE_SETTINGS);
    eval 'sub NG_HCI_OCF_READ_AUTO_FLUSH_TIMO () {0x27;}' unless defined(&NG_HCI_OCF_READ_AUTO_FLUSH_TIMO);
    eval 'sub NG_HCI_OCF_WRITE_AUTO_FLUSH_TIMO () {0x28;}' unless defined(&NG_HCI_OCF_WRITE_AUTO_FLUSH_TIMO);
    eval 'sub NG_HCI_OCF_READ_NUM_BROADCAST_RETRANS () {0x29;}' unless defined(&NG_HCI_OCF_READ_NUM_BROADCAST_RETRANS);
    eval 'sub NG_HCI_OCF_WRITE_NUM_BROADCAST_RETRANS () {0x2a;}' unless defined(&NG_HCI_OCF_WRITE_NUM_BROADCAST_RETRANS);
    eval 'sub NG_HCI_OCF_READ_HOLD_MODE_ACTIVITY () {0x2b;}' unless defined(&NG_HCI_OCF_READ_HOLD_MODE_ACTIVITY);
    eval 'sub NG_HCI_OCF_WRITE_HOLD_MODE_ACTIVITY () {0x2c;}' unless defined(&NG_HCI_OCF_WRITE_HOLD_MODE_ACTIVITY);
    eval 'sub NG_HCI_OCF_READ_XMIT_LEVEL () {0x2d;}' unless defined(&NG_HCI_OCF_READ_XMIT_LEVEL);
    eval 'sub NG_HCI_OCF_READ_SCO_FLOW_CONTROL () {0x2e;}' unless defined(&NG_HCI_OCF_READ_SCO_FLOW_CONTROL);
    eval 'sub NG_HCI_OCF_WRITE_SCO_FLOW_CONTROL () {0x2f;}' unless defined(&NG_HCI_OCF_WRITE_SCO_FLOW_CONTROL);
    eval 'sub NG_HCI_OCF_H2HC_FLOW_CONTROL () {0x31;}' unless defined(&NG_HCI_OCF_H2HC_FLOW_CONTROL);
    eval 'sub NG_HCI_OCF_HOST_BUFFER_SIZE () {0x33;}' unless defined(&NG_HCI_OCF_HOST_BUFFER_SIZE);
    eval 'sub NG_HCI_OCF_HOST_NUM_COMPL_PKTS () {0x35;}' unless defined(&NG_HCI_OCF_HOST_NUM_COMPL_PKTS);
    eval 'sub NG_HCI_OCF_READ_LINK_SUPERVISION_TIMO () {0x36;}' unless defined(&NG_HCI_OCF_READ_LINK_SUPERVISION_TIMO);
    eval 'sub NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO () {0x37;}' unless defined(&NG_HCI_OCF_WRITE_LINK_SUPERVISION_TIMO);
    eval 'sub NG_HCI_OCF_READ_SUPPORTED_IAC_NUM () {0x38;}' unless defined(&NG_HCI_OCF_READ_SUPPORTED_IAC_NUM);
    eval 'sub NG_HCI_OCF_READ_IAC_LAP () {0x39;}' unless defined(&NG_HCI_OCF_READ_IAC_LAP);
    eval 'sub NG_HCI_OCF_WRITE_IAC_LAP () {0x3a;}' unless defined(&NG_HCI_OCF_WRITE_IAC_LAP);
    eval 'sub NG_HCI_OCF_READ_PAGE_SCAN_PERIOD () {0x3b;}' unless defined(&NG_HCI_OCF_READ_PAGE_SCAN_PERIOD);
    eval 'sub NG_HCI_OCF_WRITE_PAGE_SCAN_PERIOD () {0x3c;}' unless defined(&NG_HCI_OCF_WRITE_PAGE_SCAN_PERIOD);
    eval 'sub NG_HCI_OCF_READ_PAGE_SCAN () {0x3d;}' unless defined(&NG_HCI_OCF_READ_PAGE_SCAN);
    eval 'sub NG_HCI_OCF_WRITE_PAGE_SCAN () {0x3e;}' unless defined(&NG_HCI_OCF_WRITE_PAGE_SCAN);
    eval 'sub NG_HCI_OGF_INFO () {0x4;}' unless defined(&NG_HCI_OGF_INFO);
    eval 'sub NG_HCI_OCF_READ_LOCAL_VER () {0x1;}' unless defined(&NG_HCI_OCF_READ_LOCAL_VER);
    eval 'sub NG_HCI_OCF_READ_LOCAL_FEATURES () {0x3;}' unless defined(&NG_HCI_OCF_READ_LOCAL_FEATURES);
    eval 'sub NG_HCI_OCF_READ_BUFFER_SIZE () {0x5;}' unless defined(&NG_HCI_OCF_READ_BUFFER_SIZE);
    eval 'sub NG_HCI_OCF_READ_COUNTRY_CODE () {0x7;}' unless defined(&NG_HCI_OCF_READ_COUNTRY_CODE);
    eval 'sub NG_HCI_OCF_READ_BDADDR () {0x9;}' unless defined(&NG_HCI_OCF_READ_BDADDR);
    eval 'sub NG_HCI_OGF_STATUS () {0x5;}' unless defined(&NG_HCI_OGF_STATUS);
    eval 'sub NG_HCI_OCF_READ_FAILED_CONTACT_CNTR () {0x1;}' unless defined(&NG_HCI_OCF_READ_FAILED_CONTACT_CNTR);
    eval 'sub NG_HCI_OCF_RESET_FAILED_CONTACT_CNTR () {0x2;}' unless defined(&NG_HCI_OCF_RESET_FAILED_CONTACT_CNTR);
    eval 'sub NG_HCI_OCF_GET_LINK_QUALITY () {0x3;}' unless defined(&NG_HCI_OCF_GET_LINK_QUALITY);
    eval 'sub NG_HCI_OCF_READ_RSSI () {0x5;}' unless defined(&NG_HCI_OCF_READ_RSSI);
    eval 'sub NG_HCI_OGF_TESTING () {0x6;}' unless defined(&NG_HCI_OGF_TESTING);
    eval 'sub NG_HCI_OCF_READ_LOOPBACK_MODE () {0x1;}' unless defined(&NG_HCI_OCF_READ_LOOPBACK_MODE);
    eval 'sub NG_HCI_OCF_WRITE_LOOPBACK_MODE () {0x2;}' unless defined(&NG_HCI_OCF_WRITE_LOOPBACK_MODE);
    eval 'sub NG_HCI_OCF_ENABLE_UNIT_UNDER_TEST () {0x3;}' unless defined(&NG_HCI_OCF_ENABLE_UNIT_UNDER_TEST);
    eval 'sub NG_HCI_OGF_BT_LOGO () {0x3e;}' unless defined(&NG_HCI_OGF_BT_LOGO);
    eval 'sub NG_HCI_OGF_VENDOR () {0x3f;}' unless defined(&NG_HCI_OGF_VENDOR);
    eval 'sub NG_HCI_EVENT_INQUIRY_COMPL () {0x1;}' unless defined(&NG_HCI_EVENT_INQUIRY_COMPL);
    eval 'sub NG_HCI_EVENT_INQUIRY_RESULT () {0x2;}' unless defined(&NG_HCI_EVENT_INQUIRY_RESULT);
    eval 'sub NG_HCI_EVENT_CON_COMPL () {0x3;}' unless defined(&NG_HCI_EVENT_CON_COMPL);
    eval 'sub NG_HCI_EVENT_CON_REQ () {0x4;}' unless defined(&NG_HCI_EVENT_CON_REQ);
    eval 'sub NG_HCI_EVENT_DISCON_COMPL () {0x5;}' unless defined(&NG_HCI_EVENT_DISCON_COMPL);
    eval 'sub NG_HCI_EVENT_AUTH_COMPL () {0x6;}' unless defined(&NG_HCI_EVENT_AUTH_COMPL);
    eval 'sub NG_HCI_EVENT_REMOTE_NAME_REQ_COMPL () {0x7;}' unless defined(&NG_HCI_EVENT_REMOTE_NAME_REQ_COMPL);
    eval 'sub NG_HCI_EVENT_ENCRYPTION_CHANGE () {0x8;}' unless defined(&NG_HCI_EVENT_ENCRYPTION_CHANGE);
    eval 'sub NG_HCI_EVENT_CHANGE_CON_LINK_KEY_COMPL () {0x9;}' unless defined(&NG_HCI_EVENT_CHANGE_CON_LINK_KEY_COMPL);
    eval 'sub NG_HCI_EVENT_MASTER_LINK_KEY_COMPL () {0xa;}' unless defined(&NG_HCI_EVENT_MASTER_LINK_KEY_COMPL);
    eval 'sub NG_HCI_EVENT_READ_REMOTE_FEATURES_COMPL () {0xb;}' unless defined(&NG_HCI_EVENT_READ_REMOTE_FEATURES_COMPL);
    eval 'sub NG_HCI_EVENT_READ_REMOTE_VER_INFO_COMPL () {0xc;}' unless defined(&NG_HCI_EVENT_READ_REMOTE_VER_INFO_COMPL);
    eval 'sub NG_HCI_EVENT_QOS_SETUP_COMPL () {0xd;}' unless defined(&NG_HCI_EVENT_QOS_SETUP_COMPL);
    eval 'sub NG_HCI_EVENT_COMMAND_COMPL () {0xe;}' unless defined(&NG_HCI_EVENT_COMMAND_COMPL);
    eval 'sub NG_HCI_EVENT_COMMAND_STATUS () {0xf;}' unless defined(&NG_HCI_EVENT_COMMAND_STATUS);
    eval 'sub NG_HCI_EVENT_HARDWARE_ERROR () {0x10;}' unless defined(&NG_HCI_EVENT_HARDWARE_ERROR);
    eval 'sub NG_HCI_EVENT_FLUSH_OCCUR () {0x11;}' unless defined(&NG_HCI_EVENT_FLUSH_OCCUR);
    eval 'sub NG_HCI_EVENT_ROLE_CHANGE () {0x12;}' unless defined(&NG_HCI_EVENT_ROLE_CHANGE);
    eval 'sub NG_HCI_EVENT_NUM_COMPL_PKTS () {0x13;}' unless defined(&NG_HCI_EVENT_NUM_COMPL_PKTS);
    eval 'sub NG_HCI_EVENT_MODE_CHANGE () {0x14;}' unless defined(&NG_HCI_EVENT_MODE_CHANGE);
    eval 'sub NG_HCI_EVENT_RETURN_LINK_KEYS () {0x15;}' unless defined(&NG_HCI_EVENT_RETURN_LINK_KEYS);
    eval 'sub NG_HCI_EVENT_PIN_CODE_REQ () {0x16;}' unless defined(&NG_HCI_EVENT_PIN_CODE_REQ);
    eval 'sub NG_HCI_EVENT_LINK_KEY_REQ () {0x17;}' unless defined(&NG_HCI_EVENT_LINK_KEY_REQ);
    eval 'sub NG_HCI_EVENT_LINK_KEY_NOTIFICATION () {0x18;}' unless defined(&NG_HCI_EVENT_LINK_KEY_NOTIFICATION);
    eval 'sub NG_HCI_EVENT_LOOPBACK_COMMAND () {0x19;}' unless defined(&NG_HCI_EVENT_LOOPBACK_COMMAND);
    eval 'sub NG_HCI_EVENT_DATA_BUFFER_OVERFLOW () {0x1a;}' unless defined(&NG_HCI_EVENT_DATA_BUFFER_OVERFLOW);
    eval 'sub NG_HCI_EVENT_MAX_SLOT_CHANGE () {0x1b;}' unless defined(&NG_HCI_EVENT_MAX_SLOT_CHANGE);
    eval 'sub NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL () {0x1c;}' unless defined(&NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL);
    eval 'sub NG_HCI_EVENT_CON_PKT_TYPE_CHANGED () {0x1d;}' unless defined(&NG_HCI_EVENT_CON_PKT_TYPE_CHANGED);
    eval 'sub NG_HCI_EVENT_QOS_VIOLATION () {0x1e;}' unless defined(&NG_HCI_EVENT_QOS_VIOLATION);
    eval 'sub NG_HCI_EVENT_PAGE_SCAN_MODE_CHANGE () {0x1f;}' unless defined(&NG_HCI_EVENT_PAGE_SCAN_MODE_CHANGE);
    eval 'sub NG_HCI_EVENT_PAGE_SCAN_REP_MODE_CHANGE () {0x20;}' unless defined(&NG_HCI_EVENT_PAGE_SCAN_REP_MODE_CHANGE);
    eval 'sub NG_HCI_EVENT_BT_LOGO () {0xfe;}' unless defined(&NG_HCI_EVENT_BT_LOGO);
    eval 'sub NG_HCI_EVENT_VENDOR () {0xff;}' unless defined(&NG_HCI_EVENT_VENDOR);
}
1;
