require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_IC_MLXIO_H_)) {
    eval 'sub _IC_MLXIO_H_ () {1;}' unless defined(&_IC_MLXIO_H_);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    eval 'sub MLX_SYSD_ONLINE () {0x3;}' unless defined(&MLX_SYSD_ONLINE);
    eval 'sub MLX_SYSD_CRITICAL () {0x4;}' unless defined(&MLX_SYSD_CRITICAL);
    eval 'sub MLX_SYSD_OFFLINE () {0xff;}' unless defined(&MLX_SYSD_OFFLINE);
    eval 'sub MLXD_STATUS () { &_IOR(ord(\'M\'), 100, \'int\');}' unless defined(&MLXD_STATUS);
    eval 'sub MLXD_CHECKASYNC () { &_IOR(ord(\'M\'), 101, \'int\');}' unless defined(&MLXD_CHECKASYNC);
    eval 'sub MLXD_DETACH () { &_IOW(ord(\'M\'), 102, \'int\');}' unless defined(&MLXD_DETACH);
    eval 'sub MLX_PAUSE_ALL () {0xff;}' unless defined(&MLX_PAUSE_ALL);
    eval 'sub MLX_PAUSE_CANCEL () {0x;}' unless defined(&MLX_PAUSE_CANCEL);
    eval 'sub MU_XFER_IN () {0x1;}' unless defined(&MU_XFER_IN);
    eval 'sub MU_XFER_OUT () {0x2;}' unless defined(&MU_XFER_OUT);
    eval 'sub MU_XFER_MASK () {0x3;}' unless defined(&MU_XFER_MASK);
    eval 'sub MLX_REBUILDSTAT_REBUILDCHECK () {0x;}' unless defined(&MLX_REBUILDSTAT_REBUILDCHECK);
    eval 'sub MLX_REBUILDSTAT_ADDCAPACITY () {0x400;}' unless defined(&MLX_REBUILDSTAT_ADDCAPACITY);
    eval 'sub MLX_REBUILDSTAT_ADDCAPACITYINIT () {0x500;}' unless defined(&MLX_REBUILDSTAT_ADDCAPACITYINIT);
    eval 'sub MLX_REBUILDSTAT_IDLE () {0xffff;}' unless defined(&MLX_REBUILDSTAT_IDLE);
    eval 'sub MLX_RESCAN_DRIVES () { &_IO(ord(\'M\'), 0);}' unless defined(&MLX_RESCAN_DRIVES);
    eval 'sub MLX_PAUSE_CHANNEL () { &_IOW(ord(\'M\'), 1, \'struct mlx_pause\');}' unless defined(&MLX_PAUSE_CHANNEL);
    eval 'sub MLX_COMMAND () { &_IOWR(ord(\'M\'), 2, \'struct mlx_usercommand\');}' unless defined(&MLX_COMMAND);
    eval 'sub MLX_REBUILDASYNC () { &_IOWR(ord(\'M\'), 3, \'struct mlx_rebuild_request\');}' unless defined(&MLX_REBUILDASYNC);
    eval 'sub MLX_REBUILDSTAT () { &_IOR(ord(\'M\'), 4, \'struct mlx_rebuild_status\');}' unless defined(&MLX_REBUILDSTAT);
    eval 'sub MLX_GET_SYSDRIVE () { &_IOWR(ord(\'M\'), 5, \'int\');}' unless defined(&MLX_GET_SYSDRIVE);
    eval 'sub MLX_GET_CINFO () { &_IOR(ord(\'M\'), 6, \'struct mlx_cinfo\');}' unless defined(&MLX_GET_CINFO);
}
1;
