require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_IC_ICP_IOCTL_H_)) {
    eval 'sub _DEV_IC_ICP_IOCTL_H_ () {1;}' unless defined(&_DEV_IC_ICP_IOCTL_H_);
    require 'sys/cdefs.ph';
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    require 'dev/ic/icpreg.ph';
    eval 'sub GDT_SCRATCH_SZ () {3072;}' unless defined(&GDT_SCRATCH_SZ);
    eval 'sub GDT_IOCTL_GENERAL () { &_IOWR(ord(\'J\'), 0,  &gdt_ucmd_t);}' unless defined(&GDT_IOCTL_GENERAL);
    eval 'sub GDT_IOCTL_DRVERS () { &_IOR(ord(\'J\'), 1, \'int\');}' unless defined(&GDT_IOCTL_DRVERS);
    eval 'sub GDT_IOCTL_CTRTYPE () { &_IOWR(ord(\'J\'), 2,  &gdt_ctrt_t);}' unless defined(&GDT_IOCTL_CTRTYPE);
    eval 'sub GDT_IOCTL_OSVERS () { &_IOR(ord(\'J\'), 3,  &gdt_osv_t);}' unless defined(&GDT_IOCTL_OSVERS);
    eval 'sub GDT_IOCTL_CTRCNT () { &_IOR(ord(\'J\'), 5, \'int\');}' unless defined(&GDT_IOCTL_CTRCNT);
    eval 'sub GDT_ES_ASYNC () {1;}' unless defined(&GDT_ES_ASYNC);
    eval 'sub GDT_ES_DRIVER () {2;}' unless defined(&GDT_ES_DRIVER);
    eval 'sub GDT_ES_TEST () {3;}' unless defined(&GDT_ES_TEST);
    eval 'sub GDT_ES_SYNC () {4;}' unless defined(&GDT_ES_SYNC);
    eval 'sub GDT_IOCTL_EVENT () { &_IOWR(ord(\'J\'), 7,  &gdt_event_t);}' unless defined(&GDT_IOCTL_EVENT);
    eval 'sub GDT_IOCTL_STATIST () { &_IOR(ord(\'J\'), 9,  &gdt_statist_t);}' unless defined(&GDT_IOCTL_STATIST);
    eval 'sub GDT_IOCTL_RESCAN () { &_IOWR(ord(\'J\'), 11,  &gdt_rescan_t);}' unless defined(&GDT_IOCTL_RESCAN);
}
1;
