require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DVDIO_H_)) {
    eval 'sub _SYS_DVDIO_H_ () {1;}' unless defined(&_SYS_DVDIO_H_);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    eval 'sub DVD_READ_STRUCT () { &_IOWR(ord(\'d\'), 0,  &dvd_struct);}' unless defined(&DVD_READ_STRUCT);
    eval 'sub DVD_WRITE_STRUCT () { &_IOWR(ord(\'d\'), 1,  &dvd_struct);}' unless defined(&DVD_WRITE_STRUCT);
    eval 'sub DVD_AUTH () { &_IOWR(ord(\'d\'), 2,  &dvd_authinfo);}' unless defined(&DVD_AUTH);
    eval 'sub GPCMD_READ_DVD_STRUCTURE () {0xad;}' unless defined(&GPCMD_READ_DVD_STRUCTURE);
    eval 'sub GPCMD_SEND_DVD_STRUCTURE () {0xad;}' unless defined(&GPCMD_SEND_DVD_STRUCTURE);
    eval 'sub GPCMD_REPORT_KEY () {0xa4;}' unless defined(&GPCMD_REPORT_KEY);
    eval 'sub GPCMD_SEND_KEY () {0xa3;}' unless defined(&GPCMD_SEND_KEY);
    eval 'sub DVD_STRUCT_PHYSICAL () {0x;}' unless defined(&DVD_STRUCT_PHYSICAL);
    eval 'sub DVD_STRUCT_COPYRIGHT () {0x1;}' unless defined(&DVD_STRUCT_COPYRIGHT);
    eval 'sub DVD_STRUCT_DISCKEY () {0x2;}' unless defined(&DVD_STRUCT_DISCKEY);
    eval 'sub DVD_STRUCT_BCA () {0x3;}' unless defined(&DVD_STRUCT_BCA);
    eval 'sub DVD_STRUCT_MANUFACT () {0x4;}' unless defined(&DVD_STRUCT_MANUFACT);
    eval 'sub DVD_LU_SEND_AGID () {0;}' unless defined(&DVD_LU_SEND_AGID);
    eval 'sub DVD_HOST_SEND_CHALLENGE () {1;}' unless defined(&DVD_HOST_SEND_CHALLENGE);
    eval 'sub DVD_LU_SEND_KEY1 () {2;}' unless defined(&DVD_LU_SEND_KEY1);
    eval 'sub DVD_LU_SEND_CHALLENGE () {3;}' unless defined(&DVD_LU_SEND_CHALLENGE);
    eval 'sub DVD_HOST_SEND_KEY2 () {4;}' unless defined(&DVD_HOST_SEND_KEY2);
    eval 'sub DVD_AUTH_ESTABLISHED () {5;}' unless defined(&DVD_AUTH_ESTABLISHED);
    eval 'sub DVD_AUTH_FAILURE () {6;}' unless defined(&DVD_AUTH_FAILURE);
    eval 'sub DVD_LU_SEND_TITLE_KEY () {7;}' unless defined(&DVD_LU_SEND_TITLE_KEY);
    eval 'sub DVD_LU_SEND_ASF () {8;}' unless defined(&DVD_LU_SEND_ASF);
    eval 'sub DVD_INVALIDATE_AGID () {9;}' unless defined(&DVD_INVALIDATE_AGID);
    eval 'sub DVD_LU_SEND_RPC_STATE () {10;}' unless defined(&DVD_LU_SEND_RPC_STATE);
    eval 'sub DVD_HOST_SEND_RPC_STATE () {11;}' unless defined(&DVD_HOST_SEND_RPC_STATE);
    eval 'sub DVD_CPM_NO_COPYRIGHT () {0;}' unless defined(&DVD_CPM_NO_COPYRIGHT);
    eval 'sub DVD_CPM_COPYRIGHTED () {1;}' unless defined(&DVD_CPM_COPYRIGHTED);
    eval 'sub DVD_CP_SEC_NONE () {0;}' unless defined(&DVD_CP_SEC_NONE);
    eval 'sub DVD_CP_SEC_EXIST () {1;}' unless defined(&DVD_CP_SEC_EXIST);
    eval 'sub DVD_CGMS_UNRESTRICTED () {0;}' unless defined(&DVD_CGMS_UNRESTRICTED);
    eval 'sub DVD_CGMS_SINGLE () {2;}' unless defined(&DVD_CGMS_SINGLE);
    eval 'sub DVD_CGMS_RESTRICTED () {3;}' unless defined(&DVD_CGMS_RESTRICTED);
}
1;
