require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_ATAIO_H_)) {
    eval 'sub _SYS_ATAIO_H_ () {1;}' unless defined(&_SYS_ATAIO_H_);
    require 'sys/types.ph';
    require 'sys/ioctl.ph';
    eval 'sub ATACMD_READ () {0x1;}' unless defined(&ATACMD_READ);
    eval 'sub ATACMD_WRITE () {0x2;}' unless defined(&ATACMD_WRITE);
    eval 'sub ATACMD_READREG () {0x4;}' unless defined(&ATACMD_READREG);
    eval 'sub ATACMD_OK () {0x;}' unless defined(&ATACMD_OK);
    eval 'sub ATACMD_TIMEOUT () {0x1;}' unless defined(&ATACMD_TIMEOUT);
    eval 'sub ATACMD_ERROR () {0x2;}' unless defined(&ATACMD_ERROR);
    eval 'sub ATACMD_DF () {0x3;}' unless defined(&ATACMD_DF);
    eval 'sub ATAIOCCOMMAND () { &_IOWR(ord(\'Q\'), 8,  &atareq_t);}' unless defined(&ATAIOCCOMMAND);
    eval 'sub ATAIOGETTRACE () { &_IOWR(ord(\'Q\'), 27, \'struct atagettrace\');}' unless defined(&ATAIOGETTRACE);
}
1;
