require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__DEV_ACPI_AMLTYPES_H__)) {
    eval 'sub __DEV_ACPI_AMLTYPES_H__ () {1;}' unless defined(&__DEV_ACPI_AMLTYPES_H__);
    eval 'sub AMLOP_ZERO () {0x;}' unless defined(&AMLOP_ZERO);
    eval 'sub AMLOP_ONE () {0x1;}' unless defined(&AMLOP_ONE);
    eval 'sub AMLOP_ALIAS () {0x6;}' unless defined(&AMLOP_ALIAS);
    eval 'sub AMLOP_NAME () {0x8;}' unless defined(&AMLOP_NAME);
    eval 'sub AMLOP_BYTEPREFIX () {0xa;}' unless defined(&AMLOP_BYTEPREFIX);
    eval 'sub AMLOP_WORDPREFIX () {0xb;}' unless defined(&AMLOP_WORDPREFIX);
    eval 'sub AMLOP_DWORDPREFIX () {0xc;}' unless defined(&AMLOP_DWORDPREFIX);
    eval 'sub AMLOP_STRINGPREFIX () {0xd;}' unless defined(&AMLOP_STRINGPREFIX);
    eval 'sub AMLOP_QWORDPREFIX () {0xe;}' unless defined(&AMLOP_QWORDPREFIX);
    eval 'sub AMLOP_SCOPE () {0x10;}' unless defined(&AMLOP_SCOPE);
    eval 'sub AMLOP_BUFFER () {0x11;}' unless defined(&AMLOP_BUFFER);
    eval 'sub AMLOP_PACKAGE () {0x12;}' unless defined(&AMLOP_PACKAGE);
    eval 'sub AMLOP_VARPACKAGE () {0x13;}' unless defined(&AMLOP_VARPACKAGE);
    eval 'sub AMLOP_METHOD () {0x14;}' unless defined(&AMLOP_METHOD);
    eval 'sub AMLOP_DUALNAMEPREFIX () {0x2e;}' unless defined(&AMLOP_DUALNAMEPREFIX);
    eval 'sub AMLOP_MULTINAMEPREFIX () {0x2f;}' unless defined(&AMLOP_MULTINAMEPREFIX);
    eval 'sub AMLOP_EXTPREFIX () {0x5b;}' unless defined(&AMLOP_EXTPREFIX);
    eval 'sub AMLOP_MUTEX () {0x5b01;}' unless defined(&AMLOP_MUTEX);
    eval 'sub AMLOP_EVENT () {0x5b02;}' unless defined(&AMLOP_EVENT);
    eval 'sub AMLOP_CONDREFOF () {0x5b12;}' unless defined(&AMLOP_CONDREFOF);
    eval 'sub AMLOP_CREATEFIELD () {0x5b13;}' unless defined(&AMLOP_CREATEFIELD);
    eval 'sub AMLOP_LOADTABLE () {0x5b1f;}' unless defined(&AMLOP_LOADTABLE);
    eval 'sub AMLOP_LOAD () {0x5b20;}' unless defined(&AMLOP_LOAD);
    eval 'sub AMLOP_STALL () {0x5b21;}' unless defined(&AMLOP_STALL);
    eval 'sub AMLOP_SLEEP () {0x5b22;}' unless defined(&AMLOP_SLEEP);
    eval 'sub AMLOP_ACQUIRE () {0x5b23;}' unless defined(&AMLOP_ACQUIRE);
    eval 'sub AMLOP_SIGNAL () {0x5b24;}' unless defined(&AMLOP_SIGNAL);
    eval 'sub AMLOP_WAIT () {0x5b25;}' unless defined(&AMLOP_WAIT);
    eval 'sub AMLOP_RESET () {0x5b26;}' unless defined(&AMLOP_RESET);
    eval 'sub AMLOP_RELEASE () {0x5b27;}' unless defined(&AMLOP_RELEASE);
    eval 'sub AMLOP_FROMBCD () {0x5b28;}' unless defined(&AMLOP_FROMBCD);
    eval 'sub AMLOP_TOBCD () {0x5b29;}' unless defined(&AMLOP_TOBCD);
    eval 'sub AMLOP_UNLOAD () {0x5b2a;}' unless defined(&AMLOP_UNLOAD);
    eval 'sub AMLOP_REVISION () {0x5b30;}' unless defined(&AMLOP_REVISION);
    eval 'sub AMLOP_DEBUG () {0x5b31;}' unless defined(&AMLOP_DEBUG);
    eval 'sub AMLOP_FATAL () {0x5b32;}' unless defined(&AMLOP_FATAL);
    eval 'sub AMLOP_TIMER () {0x5b33;}' unless defined(&AMLOP_TIMER);
    eval 'sub AMLOP_OPREGION () {0x5b80;}' unless defined(&AMLOP_OPREGION);
    eval 'sub AMLOP_FIELD () {0x5b81;}' unless defined(&AMLOP_FIELD);
    eval 'sub AMLOP_DEVICE () {0x5b82;}' unless defined(&AMLOP_DEVICE);
    eval 'sub AMLOP_PROCESSOR () {0x5b83;}' unless defined(&AMLOP_PROCESSOR);
    eval 'sub AMLOP_POWERRSRC () {0x5b84;}' unless defined(&AMLOP_POWERRSRC);
    eval 'sub AMLOP_THERMALZONE () {0x5b85;}' unless defined(&AMLOP_THERMALZONE);
    eval 'sub AMLOP_INDEXFIELD () {0x5b86;}' unless defined(&AMLOP_INDEXFIELD);
    eval 'sub AMLOP_BANKFIELD () {0x5b87;}' unless defined(&AMLOP_BANKFIELD);
    eval 'sub AMLOP_DATAREGION () {0x5b88;}' unless defined(&AMLOP_DATAREGION);
    eval 'sub AMLOP_ROOTCHAR () {0x5c;}' unless defined(&AMLOP_ROOTCHAR);
    eval 'sub AMLOP_PARENTPREFIX () {0x5e;}' unless defined(&AMLOP_PARENTPREFIX);
    eval 'sub AMLOP_NAMECHAR () {0x5f;}' unless defined(&AMLOP_NAMECHAR);
    eval 'sub AMLOP_LOCAL0 () {0x60;}' unless defined(&AMLOP_LOCAL0);
    eval 'sub AMLOP_LOCAL1 () {0x61;}' unless defined(&AMLOP_LOCAL1);
    eval 'sub AMLOP_LOCAL2 () {0x62;}' unless defined(&AMLOP_LOCAL2);
    eval 'sub AMLOP_LOCAL3 () {0x63;}' unless defined(&AMLOP_LOCAL3);
    eval 'sub AMLOP_LOCAL4 () {0x64;}' unless defined(&AMLOP_LOCAL4);
    eval 'sub AMLOP_LOCAL5 () {0x65;}' unless defined(&AMLOP_LOCAL5);
    eval 'sub AMLOP_LOCAL6 () {0x66;}' unless defined(&AMLOP_LOCAL6);
    eval 'sub AMLOP_LOCAL7 () {0x67;}' unless defined(&AMLOP_LOCAL7);
    eval 'sub AMLOP_ARG0 () {0x68;}' unless defined(&AMLOP_ARG0);
    eval 'sub AMLOP_ARG1 () {0x69;}' unless defined(&AMLOP_ARG1);
    eval 'sub AMLOP_ARG2 () {0x6a;}' unless defined(&AMLOP_ARG2);
    eval 'sub AMLOP_ARG3 () {0x6b;}' unless defined(&AMLOP_ARG3);
    eval 'sub AMLOP_ARG4 () {0x6c;}' unless defined(&AMLOP_ARG4);
    eval 'sub AMLOP_ARG5 () {0x6d;}' unless defined(&AMLOP_ARG5);
    eval 'sub AMLOP_ARG6 () {0x6e;}' unless defined(&AMLOP_ARG6);
    eval 'sub AMLOP_STORE () {0x70;}' unless defined(&AMLOP_STORE);
    eval 'sub AMLOP_REFOF () {0x71;}' unless defined(&AMLOP_REFOF);
    eval 'sub AMLOP_ADD () {0x72;}' unless defined(&AMLOP_ADD);
    eval 'sub AMLOP_CONCAT () {0x73;}' unless defined(&AMLOP_CONCAT);
    eval 'sub AMLOP_SUBTRACT () {0x74;}' unless defined(&AMLOP_SUBTRACT);
    eval 'sub AMLOP_INCREMENT () {0x75;}' unless defined(&AMLOP_INCREMENT);
    eval 'sub AMLOP_DECREMENT () {0x76;}' unless defined(&AMLOP_DECREMENT);
    eval 'sub AMLOP_MULTIPLY () {0x77;}' unless defined(&AMLOP_MULTIPLY);
    eval 'sub AMLOP_DIVIDE () {0x78;}' unless defined(&AMLOP_DIVIDE);
    eval 'sub AMLOP_SHL () {0x79;}' unless defined(&AMLOP_SHL);
    eval 'sub AMLOP_SHR () {0x7a;}' unless defined(&AMLOP_SHR);
    eval 'sub AMLOP_AND () {0x7b;}' unless defined(&AMLOP_AND);
    eval 'sub AMLOP_NAND () {0x7c;}' unless defined(&AMLOP_NAND);
    eval 'sub AMLOP_OR () {0x7d;}' unless defined(&AMLOP_OR);
    eval 'sub AMLOP_NOR () {0x7e;}' unless defined(&AMLOP_NOR);
    eval 'sub AMLOP_XOR () {0x7f;}' unless defined(&AMLOP_XOR);
    eval 'sub AMLOP_NOT () {0x80;}' unless defined(&AMLOP_NOT);
    eval 'sub AMLOP_FINDSETLEFTBIT () {0x81;}' unless defined(&AMLOP_FINDSETLEFTBIT);
    eval 'sub AMLOP_FINDSETRIGHTBIT () {0x82;}' unless defined(&AMLOP_FINDSETRIGHTBIT);
    eval 'sub AMLOP_DEREFOF () {0x83;}' unless defined(&AMLOP_DEREFOF);
    eval 'sub AMLOP_CONCATRES () {0x84;}' unless defined(&AMLOP_CONCATRES);
    eval 'sub AMLOP_MOD () {0x85;}' unless defined(&AMLOP_MOD);
    eval 'sub AMLOP_NOTIFY () {0x86;}' unless defined(&AMLOP_NOTIFY);
    eval 'sub AMLOP_SIZEOF () {0x87;}' unless defined(&AMLOP_SIZEOF);
    eval 'sub AMLOP_INDEX () {0x88;}' unless defined(&AMLOP_INDEX);
    eval 'sub AMLOP_DEREFOF () {0x83;}' unless defined(&AMLOP_DEREFOF);
    eval 'sub AMLOP_MATCH () {0x89;}' unless defined(&AMLOP_MATCH);
    eval 'sub AMLOP_CREATEDWORDFIELD () {0x8a;}' unless defined(&AMLOP_CREATEDWORDFIELD);
    eval 'sub AMLOP_CREATEWORDFIELD () {0x8b;}' unless defined(&AMLOP_CREATEWORDFIELD);
    eval 'sub AMLOP_CREATEBYTEFIELD () {0x8c;}' unless defined(&AMLOP_CREATEBYTEFIELD);
    eval 'sub AMLOP_CREATEBITFIELD () {0x8d;}' unless defined(&AMLOP_CREATEBITFIELD);
    eval 'sub AMLOP_OBJECTTYPE () {0x8e;}' unless defined(&AMLOP_OBJECTTYPE);
    eval 'sub AMLOP_CREATEQWORDFIELD () {0x8f;}' unless defined(&AMLOP_CREATEQWORDFIELD);
    eval 'sub AMLOP_LAND () {0x90;}' unless defined(&AMLOP_LAND);
    eval 'sub AMLOP_LOR () {0x91;}' unless defined(&AMLOP_LOR);
    eval 'sub AMLOP_LNOT () {0x92;}' unless defined(&AMLOP_LNOT);
    eval 'sub AMLOP_LNOTEQUAL () {0x9293;}' unless defined(&AMLOP_LNOTEQUAL);
    eval 'sub AMLOP_LLESSEQUAL () {0x9294;}' unless defined(&AMLOP_LLESSEQUAL);
    eval 'sub AMLOP_LGREATEREQUAL () {0x9295;}' unless defined(&AMLOP_LGREATEREQUAL);
    eval 'sub AMLOP_LEQUAL () {0x93;}' unless defined(&AMLOP_LEQUAL);
    eval 'sub AMLOP_LGREATER () {0x94;}' unless defined(&AMLOP_LGREATER);
    eval 'sub AMLOP_LLESS () {0x95;}' unless defined(&AMLOP_LLESS);
    eval 'sub AMLOP_TOBUFFER () {0x96;}' unless defined(&AMLOP_TOBUFFER);
    eval 'sub AMLOP_TODECSTRING () {0x97;}' unless defined(&AMLOP_TODECSTRING);
    eval 'sub AMLOP_TOHEXSTRING () {0x98;}' unless defined(&AMLOP_TOHEXSTRING);
    eval 'sub AMLOP_TOINTEGER () {0x99;}' unless defined(&AMLOP_TOINTEGER);
    eval 'sub AMLOP_TOSTRING () {0x9c;}' unless defined(&AMLOP_TOSTRING);
    eval 'sub AMLOP_COPYOBJECT () {0x9d;}' unless defined(&AMLOP_COPYOBJECT);
    eval 'sub AMLOP_MID () {0x9e;}' unless defined(&AMLOP_MID);
    eval 'sub AMLOP_CONTINUE () {0x9f;}' unless defined(&AMLOP_CONTINUE);
    eval 'sub AMLOP_IF () {0xa0;}' unless defined(&AMLOP_IF);
    eval 'sub AMLOP_ELSE () {0xa1;}' unless defined(&AMLOP_ELSE);
    eval 'sub AMLOP_WHILE () {0xa2;}' unless defined(&AMLOP_WHILE);
    eval 'sub AMLOP_NOP () {0xa3;}' unless defined(&AMLOP_NOP);
    eval 'sub AMLOP_RETURN () {0xa4;}' unless defined(&AMLOP_RETURN);
    eval 'sub AMLOP_BREAK () {0xa5;}' unless defined(&AMLOP_BREAK);
    eval 'sub AMLOP_BREAKPOINT () {0xcc;}' unless defined(&AMLOP_BREAKPOINT);
    eval 'sub AMLOP_ONES () {0xff;}' unless defined(&AMLOP_ONES);
    eval 'sub AMLOP_FIELDUNIT () {0xfe00;}' unless defined(&AMLOP_FIELDUNIT);
    eval 'sub AML_ANYINT () {0xff00;}' unless defined(&AML_ANYINT);
    eval 'sub AML_MATCH_TR () {0;}' unless defined(&AML_MATCH_TR);
    eval 'sub AML_MATCH_EQ () {1;}' unless defined(&AML_MATCH_EQ);
    eval 'sub AML_MATCH_LE () {2;}' unless defined(&AML_MATCH_LE);
    eval 'sub AML_MATCH_LT () {3;}' unless defined(&AML_MATCH_LT);
    eval 'sub AML_MATCH_GE () {4;}' unless defined(&AML_MATCH_GE);
    eval 'sub AML_MATCH_GT () {5;}' unless defined(&AML_MATCH_GT);
    eval 'sub AML_STATIC () {0x8000;}' unless defined(&AML_STATIC);
    eval("sub AML_OBJTYPE_UNINITIALIZED () { 0; }") unless defined(&AML_OBJTYPE_UNINITIALIZED);
    eval("sub AML_OBJTYPE_INTEGER () { 1; }") unless defined(&AML_OBJTYPE_INTEGER);
    eval("sub AML_OBJTYPE_STRING () { 2; }") unless defined(&AML_OBJTYPE_STRING);
    eval("sub AML_OBJTYPE_BUFFER () { 3; }") unless defined(&AML_OBJTYPE_BUFFER);
    eval("sub AML_OBJTYPE_PACKAGE () { 4; }") unless defined(&AML_OBJTYPE_PACKAGE);
    eval("sub AML_OBJTYPE_FIELDUNIT () { 5; }") unless defined(&AML_OBJTYPE_FIELDUNIT);
    eval("sub AML_OBJTYPE_DEVICE () { 6; }") unless defined(&AML_OBJTYPE_DEVICE);
    eval("sub AML_OBJTYPE_EVENT () { 7; }") unless defined(&AML_OBJTYPE_EVENT);
    eval("sub AML_OBJTYPE_METHOD () { 8; }") unless defined(&AML_OBJTYPE_METHOD);
    eval("sub AML_OBJTYPE_MUTEX () { 9; }") unless defined(&AML_OBJTYPE_MUTEX);
    eval("sub AML_OBJTYPE_OPREGION () { 10; }") unless defined(&AML_OBJTYPE_OPREGION);
    eval("sub AML_OBJTYPE_POWERRSRC () { 11; }") unless defined(&AML_OBJTYPE_POWERRSRC);
    eval("sub AML_OBJTYPE_PROCESSOR () { 12; }") unless defined(&AML_OBJTYPE_PROCESSOR);
    eval("sub AML_OBJTYPE_THERMZONE () { 13; }") unless defined(&AML_OBJTYPE_THERMZONE);
    eval("sub AML_OBJTYPE_BUFFERFIELD () { 14; }") unless defined(&AML_OBJTYPE_BUFFERFIELD);
    eval("sub AML_OBJTYPE_DDBHANDLE () { 15; }") unless defined(&AML_OBJTYPE_DDBHANDLE);
    eval("sub AML_OBJTYPE_DEBUGOBJ () { 16; }") unless defined(&AML_OBJTYPE_DEBUGOBJ);
    eval("sub AML_OBJTYPE_NAMEREF () { 0x100; }") unless defined(&AML_OBJTYPE_NAMEREF);
    eval("sub AML_OBJTYPE_OBJREF () { 1; }") unless defined(&AML_OBJTYPE_OBJREF);
    eval("sub AML_OBJTYPE_STATICINT () { AML_OBJTYPE_INTEGER|AML_STATIC; }") unless defined(&AML_OBJTYPE_STATICINT);
    eval 'sub AML_ARG_INTEGER () {ord(\'i\');}' unless defined(&AML_ARG_INTEGER);
    eval 'sub AML_ARG_BYTE () {ord(\'b\');}' unless defined(&AML_ARG_BYTE);
    eval 'sub AML_ARG_WORD () {ord(\'w\');}' unless defined(&AML_ARG_WORD);
    eval 'sub AML_ARG_DWORD () {ord(\'d\');}' unless defined(&AML_ARG_DWORD);
    eval 'sub AML_ARG_QWORD () {ord(\'q\');}' unless defined(&AML_ARG_QWORD);
    eval 'sub AML_ARG_IMPBYTE () {ord(\'!\');}' unless defined(&AML_ARG_IMPBYTE);
    eval 'sub AML_ARG_OBJLEN () {ord(\'p\');}' unless defined(&AML_ARG_OBJLEN);
    eval 'sub AML_ARG_STRING () {ord(\'a\');}' unless defined(&AML_ARG_STRING);
    eval 'sub AML_ARG_BYTELIST () {ord(\'B\');}' unless defined(&AML_ARG_BYTELIST);
    eval 'sub AML_ARG_REVISION () {ord(\'R\');}' unless defined(&AML_ARG_REVISION);
    eval 'sub AML_ARG_METHOD () {ord(\'M\');}' unless defined(&AML_ARG_METHOD);
    eval 'sub AML_ARG_NAMESTRING () {ord(\'N\');}' unless defined(&AML_ARG_NAMESTRING);
    eval 'sub AML_ARG_NAMEREF () {ord(\'n\');}' unless defined(&AML_ARG_NAMEREF);
    eval 'sub AML_ARG_FIELDLIST () {ord(\'F\');}' unless defined(&AML_ARG_FIELDLIST);
    eval 'sub AML_ARG_FLAG () {ord(\'f\');}' unless defined(&AML_ARG_FLAG);
    eval 'sub AML_ARG_DATAOBJLIST () {ord(\'O\');}' unless defined(&AML_ARG_DATAOBJLIST);
    eval 'sub AML_ARG_DATAOBJ () {ord(\'o\');}' unless defined(&AML_ARG_DATAOBJ);
    eval 'sub AML_ARG_SIMPLENAME () {ord(\'s\');}' unless defined(&AML_ARG_SIMPLENAME);
    eval 'sub AML_ARG_SUPERNAME () {ord(\'S\');}' unless defined(&AML_ARG_SUPERNAME);
    eval 'sub AML_ARG_TERMOBJLIST () {ord(\'T\');}' unless defined(&AML_ARG_TERMOBJLIST);
    eval 'sub AML_ARG_TERMOBJ () {ord(\'t\');}' unless defined(&AML_ARG_TERMOBJ);
    eval 'sub AML_METHOD_ARGCOUNT {
        my($v) = @_;
	    eval q(((($v) >> 0) & 0x7));
    }' unless defined(&AML_METHOD_ARGCOUNT);
    eval 'sub AML_METHOD_SERIALIZED {
        my($v) = @_;
	    eval q(((($v) >> 3) & 0x1));
    }' unless defined(&AML_METHOD_SERIALIZED);
    eval 'sub AML_METHOD_SYNCLEVEL {
        my($v) = @_;
	    eval q(((($v) >> 4) & 0xf));
    }' unless defined(&AML_METHOD_SYNCLEVEL);
    eval 'sub AML_FIELD_ACCESSMASK () {0xf;}' unless defined(&AML_FIELD_ACCESSMASK);
    eval 'sub AML_FIELD_SETATTR {
        my($f,$t,$a) = @_;
	    eval q(((($f) & 0xf0) | (($t) & 0xf) | (($a)<<8)));
    }' unless defined(&AML_FIELD_SETATTR);
    eval 'sub AML_FIELD_ACCESS {
        my($v) = @_;
	    eval q(((($v) >> 0) & 0xf));
    }' unless defined(&AML_FIELD_ACCESS);
    eval 'sub AML_FIELD_ANYACC () {0x;}' unless defined(&AML_FIELD_ANYACC);
    eval 'sub AML_FIELD_BYTEACC () {0x1;}' unless defined(&AML_FIELD_BYTEACC);
    eval 'sub AML_FIELD_WORDACC () {0x2;}' unless defined(&AML_FIELD_WORDACC);
    eval 'sub AML_FIELD_DWORDACC () {0x3;}' unless defined(&AML_FIELD_DWORDACC);
    eval 'sub AML_FIELD_QWORDACC () {0x4;}' unless defined(&AML_FIELD_QWORDACC);
    eval 'sub AML_FIELD_BUFFERACC () {0x5;}' unless defined(&AML_FIELD_BUFFERACC);
    eval 'sub AML_FIELD_LOCK {
        my($v) = @_;
	    eval q(((($v) >> 4) & 0x1));
    }' unless defined(&AML_FIELD_LOCK);
    eval 'sub AML_FIELD_LOCK_OFF () {0x;}' unless defined(&AML_FIELD_LOCK_OFF);
    eval 'sub AML_FIELD_LOCK_ON () {0x1;}' unless defined(&AML_FIELD_LOCK_ON);
    eval 'sub AML_FIELD_UPDATE {
        my($v) = @_;
	    eval q(((($v) >> 5) & 0x3));
    }' unless defined(&AML_FIELD_UPDATE);
    eval 'sub AML_FIELD_PRESERVE () {0x;}' unless defined(&AML_FIELD_PRESERVE);
    eval 'sub AML_FIELD_WRITEASONES () {0x1;}' unless defined(&AML_FIELD_WRITEASONES);
    eval 'sub AML_FIELD_WRITEASZEROES () {0x2;}' unless defined(&AML_FIELD_WRITEASZEROES);
    eval 'sub AML_FIELD_ATTR {
        my($v) = @_;
	    eval q((($v) >> 8));
    }' unless defined(&AML_FIELD_ATTR);
    eval 'sub AML_FIELD_RESERVED () {0x;}' unless defined(&AML_FIELD_RESERVED);
    eval 'sub AML_FIELD_ATTR__ () {0x1;}' unless defined(&AML_FIELD_ATTR__);
    eval 'sub v_nameref () { ($_->{vbuffer});}' unless defined(&v_nameref);
    eval 'sub v_objref () { ($_->{vobjref});}' unless defined(&v_objref);
    eval 'sub v_integer () { ($_->{vinteger});}' unless defined(&v_integer);
    eval 'sub v_string () { ($_->{vstring});}' unless defined(&v_string);
    eval 'sub v_buffer () { ($_->{vbuffer});}' unless defined(&v_buffer);
    eval 'sub v_package () { ($_->{vpackage});}' unless defined(&v_package);
    eval 'sub v_field () { ($_->{vfield});}' unless defined(&v_field);
    eval 'sub v_opregion () { ($_->{vopregion});}' unless defined(&v_opregion);
    eval 'sub v_method () { ($_->{vmethod});}' unless defined(&v_method);
    eval 'sub v_processor () { ($_->{vprocessor});}' unless defined(&v_processor);
    eval 'sub v_powerrsrc () { ($_->{vpowerrsrc});}' unless defined(&v_powerrsrc);
    eval 'sub v_mutex () { ($_->{vmutex});}' unless defined(&v_mutex);
    eval 'sub xaml_intval {
        my($v) = @_;
	    eval q((($v)-> &v_integer));
    }' unless defined(&xaml_intval);
    eval 'sub aml_strlen {
        my($v) = @_;
	    eval q((($v)-> &length));
    }' unless defined(&aml_strlen);
    eval 'sub aml_strval {
        my($v) = @_;
	    eval q((($v)-> &v_string ? ($v)-> &v_string : \\"bad string\\"));
    }' unless defined(&aml_strval);
    eval 'sub aml_buflen {
        my($v) = @_;
	    eval q((($v)-> &length));
    }' unless defined(&aml_buflen);
    eval 'sub aml_bufval {
        my($v) = @_;
	    eval q((($v)-> &v_buffer));
    }' unless defined(&aml_bufval);
    eval 'sub aml_pkglen {
        my($v) = @_;
	    eval q((($v)-> &length));
    }' unless defined(&aml_pkglen);
    eval 'sub aml_pkgval {
        my($v,$i) = @_;
	    eval q((($v)-> $v_package[($i)]));
    }' unless defined(&aml_pkgval);
    eval 'sub AML_FALSE () {(0);}' unless defined(&AML_FALSE);
    eval 'sub AML_TRUE () {(1);}' unless defined(&AML_TRUE);
    eval 'sub aml_bitmask {
        my($n) = @_;
	    eval q((1 << (($n) & 0x7)));
    }' unless defined(&aml_bitmask);
    eval 'sub aml_bitpos {
        my($n) = @_;
	    eval q((($n)&0x7));
    }' unless defined(&aml_bitpos);
    eval 'sub aml_bytepos {
        my($n) = @_;
	    eval q((($n)>>3));
    }' unless defined(&aml_bytepos);
    eval 'sub aml_bytelen {
        my($n) = @_;
	    eval q(((($n)+7)>>3));
    }' unless defined(&aml_bytelen);
    eval 'sub aml_bytealigned {
        my($x) = @_;
	    eval q(!(($x)&0x7));
    }' unless defined(&aml_bytealigned);
}
1;
