require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_PCI_AGPVAR_H_)) {
    eval 'sub _PCI_AGPVAR_H_ () {1;}' unless defined(&_PCI_AGPVAR_H_);
    require 'sys/rwlock.ph';
    if(defined(&AGP_DEBUG)) {
	eval 'sub AGP_DPF () {( &fmt,  &arg...)  &do {  &printf("agp: "  &fmt , &arg); }  &while (0);}' unless defined(&AGP_DPF);
    } else {
	eval 'sub AGP_DPF () {( &fmt,  &arg...)  &do {}  &while (0);}' unless defined(&AGP_DPF);
    }
    eval 'sub AGPUNIT {
        my($x) = @_;
	    eval q( &minor($x));
    }' unless defined(&AGPUNIT);
    eval("sub AGP_ACQUIRE_FREE () { 0; }") unless defined(&AGP_ACQUIRE_FREE);
    eval("sub AGP_ACQUIRE_USER () { 1; }") unless defined(&AGP_ACQUIRE_USER);
    eval("sub AGP_ACQUIRE_KERNEL () { 2; }") unless defined(&AGP_ACQUIRE_KERNEL);
}
1;
