require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&AMIMEM_MAP)) {
    sub AMIMEM_MAP {
	local($_am) = @_;
	eval q((($_am)-> &am_map));
    }
}
unless(defined(&AMIMEM_DVA)) {
    sub AMIMEM_DVA {
	local($_am) = @_;
	eval q((($_am)-> ($am_map->{dm_segs[0]}->{ds_addr})));
    }
}
unless(defined(&AMIMEM_KVA)) {
    sub AMIMEM_KVA {
	local($_am) = @_;
	eval q((( &void *)($_am)-> &am_kva));
    }
}
eval("sub AMI_CCB_IN () { 0; }") unless defined(&AMI_CCB_IN);
eval("sub AMI_CCB_OUT () { 1; }") unless defined(&AMI_CCB_OUT);
eval("sub AMI_CCB_FREE () { 0; }") unless defined(&AMI_CCB_FREE);
eval("sub AMI_CCB_READY () { 1; }") unless defined(&AMI_CCB_READY);
eval("sub AMI_CCB_QUEUED () { 2; }") unless defined(&AMI_CCB_QUEUED);
eval("sub AMI_CCB_PREQUEUED () { 3; }") unless defined(&AMI_CCB_PREQUEUED);
unless(defined(&AMI_CHECK_SIGN)) {
    sub AMI_CHECK_SIGN () {	0x1;}
}
unless(defined(&AMI_BROKEN)) {
    sub AMI_BROKEN () {	0x2;}
}
unless(defined(&AMI_CMDWAIT)) {
    sub AMI_CMDWAIT () {	0x4;}
}
unless(defined(&AMI_QUARTZ)) {
    sub AMI_QUARTZ () {	0x8;}
}
if(defined(&AMI_DEBUG)) {
}
1;
