require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DRM_H_)) {
    eval 'sub _DRM_H_ () {1;}' unless defined(&_DRM_H_);
    unless(defined(&__user)) {
	eval 'sub __user () {1;}' unless defined(&__user);
    }
    if(defined(&__GNUC__)) {
	eval 'sub DEPRECATED () { &__attribute__ (( &deprecated));}' unless defined(&DEPRECATED);
    } else {
	eval 'sub DEPRECATED () {1;}' unless defined(&DEPRECATED);
    }
    require 'sys/ioccom.ph';
    eval 'sub DRM_IOCTL_NR {
        my($n) = @_;
	    eval q((($n) & 0xff));
    }' unless defined(&DRM_IOCTL_NR);
    eval 'sub DRM_IOC_VOID () { &IOC_VOID;}' unless defined(&DRM_IOC_VOID);
    eval 'sub DRM_IOC_READ () { &IOC_OUT;}' unless defined(&DRM_IOC_READ);
    eval 'sub DRM_IOC_WRITE () { &IOC_IN;}' unless defined(&DRM_IOC_WRITE);
    eval 'sub DRM_IOC_READWRITE () { &IOC_INOUT;}' unless defined(&DRM_IOC_READWRITE);
    eval 'sub DRM_IOC {
        my($dir, $group, $nr, $size) = @_;
	    eval q( &_IOC($dir, $group, $nr, $size));
    }' unless defined(&DRM_IOC);
    eval 'sub DRM_MAJOR () {88;}' unless defined(&DRM_MAJOR);
    eval 'sub DRM_MAX_MINOR () {15;}' unless defined(&DRM_MAX_MINOR);
    eval 'sub DRM_NAME () {"drm";}' unless defined(&DRM_NAME);
    eval 'sub DRM_MIN_ORDER () {5;}' unless defined(&DRM_MIN_ORDER);
    eval 'sub DRM_MAX_ORDER () {22;}' unless defined(&DRM_MAX_ORDER);
    eval 'sub DRM_RAM_PERCENT () {10;}' unless defined(&DRM_RAM_PERCENT);
    eval 'sub _DRM_LOCK_HELD () {0x80000000;}' unless defined(&_DRM_LOCK_HELD);
    eval 'sub _DRM_LOCK_CONT () {0x40000000;}' unless defined(&_DRM_LOCK_CONT);
    eval 'sub _DRM_LOCK_IS_HELD {
        my($lock) = @_;
	    eval q((($lock) &  &_DRM_LOCK_HELD));
    }' unless defined(&_DRM_LOCK_IS_HELD);
    eval 'sub _DRM_LOCK_IS_CONT {
        my($lock) = @_;
	    eval q((($lock) &  &_DRM_LOCK_CONT));
    }' unless defined(&_DRM_LOCK_IS_CONT);
    eval 'sub _DRM_LOCKING_CONTEXT {
        my($lock) = @_;
	    eval q((($lock) & ~( &_DRM_LOCK_HELD| &_DRM_LOCK_CONT)));
    }' unless defined(&_DRM_LOCKING_CONTEXT);
    require 'sys/types.ph';
    eval("sub DRM_ADD_COMMAND () { 0; }") unless defined(&DRM_ADD_COMMAND);
    eval("sub DRM_RM_COMMAND () { 1; }") unless defined(&DRM_RM_COMMAND);
    eval("sub DRM_INST_HANDLER () { 2; }") unless defined(&DRM_INST_HANDLER);
    eval("sub DRM_UNINST_HANDLER () { 3; }") unless defined(&DRM_UNINST_HANDLER);
    eval("sub _DRM_FRAME_BUFFER () { 0; }") unless defined(&_DRM_FRAME_BUFFER);
    eval("sub _DRM_REGISTERS () { 1; }") unless defined(&_DRM_REGISTERS);
    eval("sub _DRM_SHM () { 2; }") unless defined(&_DRM_SHM);
    eval("sub _DRM_AGP () { 3; }") unless defined(&_DRM_AGP);
    eval("sub _DRM_SCATTER_GATHER () { 4; }") unless defined(&_DRM_SCATTER_GATHER);
    eval("sub _DRM_CONSISTENT () { 5; }") unless defined(&_DRM_CONSISTENT);
    eval("sub _DRM_RESTRICTED () { 0x01; }") unless defined(&_DRM_RESTRICTED);
    eval("sub _DRM_READ_ONLY () { 0x02; }") unless defined(&_DRM_READ_ONLY);
    eval("sub _DRM_LOCKED () { 0x04; }") unless defined(&_DRM_LOCKED);
    eval("sub _DRM_KERNEL () { 0x08; }") unless defined(&_DRM_KERNEL);
    eval("sub _DRM_WRITE_COMBINING () { 0x10; }") unless defined(&_DRM_WRITE_COMBINING);
    eval("sub _DRM_CONTAINS_LOCK () { 0x20; }") unless defined(&_DRM_CONTAINS_LOCK);
    eval("sub _DRM_REMOVABLE () { 0x40; }") unless defined(&_DRM_REMOVABLE);
    eval("sub _DRM_DRIVER () { 0x80; }") unless defined(&_DRM_DRIVER);
    eval("sub _DRM_STAT_LOCK () { 0; }") unless defined(&_DRM_STAT_LOCK);
    eval("sub _DRM_STAT_OPENS () { 1; }") unless defined(&_DRM_STAT_OPENS);
    eval("sub _DRM_STAT_CLOSES () { 2; }") unless defined(&_DRM_STAT_CLOSES);
    eval("sub _DRM_STAT_IOCTLS () { 3; }") unless defined(&_DRM_STAT_IOCTLS);
    eval("sub _DRM_STAT_LOCKS () { 4; }") unless defined(&_DRM_STAT_LOCKS);
    eval("sub _DRM_STAT_UNLOCKS () { 5; }") unless defined(&_DRM_STAT_UNLOCKS);
    eval("sub _DRM_STAT_VALUE () { 6; }") unless defined(&_DRM_STAT_VALUE);
    eval("sub _DRM_STAT_BYTE () { 7; }") unless defined(&_DRM_STAT_BYTE);
    eval("sub _DRM_STAT_COUNT () { 8; }") unless defined(&_DRM_STAT_COUNT);
    eval("sub _DRM_STAT_IRQ () { 9; }") unless defined(&_DRM_STAT_IRQ);
    eval("sub _DRM_STAT_PRIMARY () { 10; }") unless defined(&_DRM_STAT_PRIMARY);
    eval("sub _DRM_STAT_SECONDARY () { 11; }") unless defined(&_DRM_STAT_SECONDARY);
    eval("sub _DRM_STAT_DMA () { 12; }") unless defined(&_DRM_STAT_DMA);
    eval("sub _DRM_STAT_SPECIAL () { 13; }") unless defined(&_DRM_STAT_SPECIAL);
    eval("sub _DRM_STAT_MISSED () { 14; }") unless defined(&_DRM_STAT_MISSED);
    eval("sub _DRM_LOCK_READY () { 0x01; }") unless defined(&_DRM_LOCK_READY);
    eval("sub _DRM_LOCK_QUIESCENT () { 0x02; }") unless defined(&_DRM_LOCK_QUIESCENT);
    eval("sub _DRM_LOCK_FLUSH () { 0x04; }") unless defined(&_DRM_LOCK_FLUSH);
    eval("sub _DRM_LOCK_FLUSH_ALL () { 0x08; }") unless defined(&_DRM_LOCK_FLUSH_ALL);
    eval("sub _DRM_HALT_ALL_QUEUES () { 0x10; }") unless defined(&_DRM_HALT_ALL_QUEUES);
    eval("sub _DRM_HALT_CUR_QUEUES () { 0x20; }") unless defined(&_DRM_HALT_CUR_QUEUES);
    eval("sub _DRM_DMA_BLOCK () { 0x01; }") unless defined(&_DRM_DMA_BLOCK);
    eval("sub _DRM_DMA_WHILE_LOCKED () { 0x02; }") unless defined(&_DRM_DMA_WHILE_LOCKED);
    eval("sub _DRM_DMA_PRIORITY () { 0x04; }") unless defined(&_DRM_DMA_PRIORITY);
    eval("sub _DRM_DMA_WAIT () { 0x10; }") unless defined(&_DRM_DMA_WAIT);
    eval("sub _DRM_DMA_SMALLER_OK () { 0x20; }") unless defined(&_DRM_DMA_SMALLER_OK);
    eval("sub _DRM_DMA_LARGER_OK () { 0x40; }") unless defined(&_DRM_DMA_LARGER_OK);
    eval("sub _DRM_PAGE_ALIGN () { 0x01; }") unless defined(&_DRM_PAGE_ALIGN);
    eval("sub _DRM_AGP_BUFFER () { 0x02; }") unless defined(&_DRM_AGP_BUFFER);
    eval("sub _DRM_SG_BUFFER () { 0x04; }") unless defined(&_DRM_SG_BUFFER);
    eval("sub _DRM_FB_BUFFER () { 0x08; }") unless defined(&_DRM_FB_BUFFER);
    eval("sub _DRM_PCI_BUFFER_RO () { 0x10; }") unless defined(&_DRM_PCI_BUFFER_RO);
    eval("sub _DRM_CONTEXT_PRESERVED () { 0x01; }") unless defined(&_DRM_CONTEXT_PRESERVED);
    eval("sub _DRM_CONTEXT_2DONLY () { 0x02; }") unless defined(&_DRM_CONTEXT_2DONLY);
    eval("sub DRM_DRAWABLE_CLIPRECTS () { 0; }") unless defined(&DRM_DRAWABLE_CLIPRECTS);
    eval("sub _DRM_VBLANK_ABSOLUTE () { 0x0; }") unless defined(&_DRM_VBLANK_ABSOLUTE);
    eval("sub _DRM_VBLANK_RELATIVE () { 0x1; }") unless defined(&_DRM_VBLANK_RELATIVE);
    eval("sub _DRM_VBLANK_FLIP () { 0x8000000; }") unless defined(&_DRM_VBLANK_FLIP);
    eval("sub _DRM_VBLANK_NEXTONMISS () { 0x10000000; }") unless defined(&_DRM_VBLANK_NEXTONMISS);
    eval("sub _DRM_VBLANK_SECONDARY () { 0x20000000; }") unless defined(&_DRM_VBLANK_SECONDARY);
    eval("sub _DRM_VBLANK_SIGNAL () { 0x40000000; }") unless defined(&_DRM_VBLANK_SIGNAL);
    eval 'sub _DRM_VBLANK_TYPES_MASK () {( &_DRM_VBLANK_ABSOLUTE |  &_DRM_VBLANK_RELATIVE);}' unless defined(&_DRM_VBLANK_TYPES_MASK);
    eval 'sub _DRM_VBLANK_FLAGS_MASK () {( &_DRM_VBLANK_SIGNAL |  &_DRM_VBLANK_SECONDARY |  &_DRM_VBLANK_NEXTONMISS);}' unless defined(&_DRM_VBLANK_FLAGS_MASK);
    eval 'sub _DRM_PRE_MODESET () {1;}' unless defined(&_DRM_PRE_MODESET);
    eval 'sub _DRM_POST_MODESET () {2;}' unless defined(&_DRM_POST_MODESET);
    eval 'sub DRM_DISPLAY_INFO_LEN () {32;}' unless defined(&DRM_DISPLAY_INFO_LEN);
    eval 'sub DRM_CONNECTOR_NAME_LEN () {32;}' unless defined(&DRM_CONNECTOR_NAME_LEN);
    eval 'sub DRM_DISPLAY_MODE_LEN () {32;}' unless defined(&DRM_DISPLAY_MODE_LEN);
    eval 'sub DRM_PROP_NAME_LEN () {32;}' unless defined(&DRM_PROP_NAME_LEN);
    eval 'sub DRM_MODE_TYPE_BUILTIN () {(1<<0);}' unless defined(&DRM_MODE_TYPE_BUILTIN);
    eval 'sub DRM_MODE_TYPE_CLOCK_C () {((1<<1) |  &DRM_MODE_TYPE_BUILTIN);}' unless defined(&DRM_MODE_TYPE_CLOCK_C);
    eval 'sub DRM_MODE_TYPE_CRTC_C () {((1<<2) |  &DRM_MODE_TYPE_BUILTIN);}' unless defined(&DRM_MODE_TYPE_CRTC_C);
    eval 'sub DRM_MODE_TYPE_PREFERRED () {(1<<3);}' unless defined(&DRM_MODE_TYPE_PREFERRED);
    eval 'sub DRM_MODE_TYPE_DEFAULT () {(1<<4);}' unless defined(&DRM_MODE_TYPE_DEFAULT);
    eval 'sub DRM_MODE_TYPE_USERDEF () {(1<<5);}' unless defined(&DRM_MODE_TYPE_USERDEF);
    eval 'sub DRM_MODE_TYPE_DRIVER () {(1<<6);}' unless defined(&DRM_MODE_TYPE_DRIVER);
    eval 'sub DRM_MODE_FLAG_PHSYNC () {(1<<0);}' unless defined(&DRM_MODE_FLAG_PHSYNC);
    eval 'sub DRM_MODE_FLAG_NHSYNC () {(1<<1);}' unless defined(&DRM_MODE_FLAG_NHSYNC);
    eval 'sub DRM_MODE_FLAG_PVSYNC () {(1<<2);}' unless defined(&DRM_MODE_FLAG_PVSYNC);
    eval 'sub DRM_MODE_FLAG_NVSYNC () {(1<<3);}' unless defined(&DRM_MODE_FLAG_NVSYNC);
    eval 'sub DRM_MODE_FLAG_INTERLACE () {(1<<4);}' unless defined(&DRM_MODE_FLAG_INTERLACE);
    eval 'sub DRM_MODE_FLAG_DBLSCAN () {(1<<5);}' unless defined(&DRM_MODE_FLAG_DBLSCAN);
    eval 'sub DRM_MODE_FLAG_CSYNC () {(1<<6);}' unless defined(&DRM_MODE_FLAG_CSYNC);
    eval 'sub DRM_MODE_FLAG_PCSYNC () {(1<<7);}' unless defined(&DRM_MODE_FLAG_PCSYNC);
    eval 'sub DRM_MODE_FLAG_NCSYNC () {(1<<8);}' unless defined(&DRM_MODE_FLAG_NCSYNC);
    eval 'sub DRM_MODE_FLAG_HSKEW () {(1<<9);}' unless defined(&DRM_MODE_FLAG_HSKEW);
    eval 'sub DRM_MODE_FLAG_BCAST () {(1<<10);}' unless defined(&DRM_MODE_FLAG_BCAST);
    eval 'sub DRM_MODE_FLAG_PIXMUX () {(1<<11);}' unless defined(&DRM_MODE_FLAG_PIXMUX);
    eval 'sub DRM_MODE_FLAG_DBLCLK () {(1<<12);}' unless defined(&DRM_MODE_FLAG_DBLCLK);
    eval 'sub DRM_MODE_FLAG_CLKDIV2 () {(1<<13);}' unless defined(&DRM_MODE_FLAG_CLKDIV2);
    eval 'sub DRM_MODE_DPMS_ON () {0;}' unless defined(&DRM_MODE_DPMS_ON);
    eval 'sub DRM_MODE_DPMS_STANDBY () {1;}' unless defined(&DRM_MODE_DPMS_STANDBY);
    eval 'sub DRM_MODE_DPMS_SUSPEND () {2;}' unless defined(&DRM_MODE_DPMS_SUSPEND);
    eval 'sub DRM_MODE_DPMS_OFF () {3;}' unless defined(&DRM_MODE_DPMS_OFF);
    eval 'sub DRM_MODE_SCALE_NON_GPU () {0;}' unless defined(&DRM_MODE_SCALE_NON_GPU);
    eval 'sub DRM_MODE_SCALE_FULLSCREEN () {1;}' unless defined(&DRM_MODE_SCALE_FULLSCREEN);
    eval 'sub DRM_MODE_SCALE_NO_SCALE () {2;}' unless defined(&DRM_MODE_SCALE_NO_SCALE);
    eval 'sub DRM_MODE_SCALE_ASPECT () {3;}' unless defined(&DRM_MODE_SCALE_ASPECT);
    eval 'sub DRM_MODE_DITHERING_OFF () {0;}' unless defined(&DRM_MODE_DITHERING_OFF);
    eval 'sub DRM_MODE_DITHERING_ON () {1;}' unless defined(&DRM_MODE_DITHERING_ON);
    eval 'sub DRM_MODE_ENCODER_NONE () {0;}' unless defined(&DRM_MODE_ENCODER_NONE);
    eval 'sub DRM_MODE_ENCODER_DAC () {1;}' unless defined(&DRM_MODE_ENCODER_DAC);
    eval 'sub DRM_MODE_ENCODER_TMDS () {2;}' unless defined(&DRM_MODE_ENCODER_TMDS);
    eval 'sub DRM_MODE_ENCODER_LVDS () {3;}' unless defined(&DRM_MODE_ENCODER_LVDS);
    eval 'sub DRM_MODE_ENCODER_TVDAC () {4;}' unless defined(&DRM_MODE_ENCODER_TVDAC);
    eval 'sub DRM_MODE_SUBCONNECTOR_Automatic () {0;}' unless defined(&DRM_MODE_SUBCONNECTOR_Automatic);
    eval 'sub DRM_MODE_SUBCONNECTOR_Unknown () {0;}' unless defined(&DRM_MODE_SUBCONNECTOR_Unknown);
    eval 'sub DRM_MODE_SUBCONNECTOR_DVID () {3;}' unless defined(&DRM_MODE_SUBCONNECTOR_DVID);
    eval 'sub DRM_MODE_SUBCONNECTOR_DVIA () {4;}' unless defined(&DRM_MODE_SUBCONNECTOR_DVIA);
    eval 'sub DRM_MODE_SUBCONNECTOR_Composite () {5;}' unless defined(&DRM_MODE_SUBCONNECTOR_Composite);
    eval 'sub DRM_MODE_SUBCONNECTOR_SVIDEO () {6;}' unless defined(&DRM_MODE_SUBCONNECTOR_SVIDEO);
    eval 'sub DRM_MODE_SUBCONNECTOR_Component () {8;}' unless defined(&DRM_MODE_SUBCONNECTOR_Component);
    eval 'sub DRM_MODE_CONNECTOR_Unknown () {0;}' unless defined(&DRM_MODE_CONNECTOR_Unknown);
    eval 'sub DRM_MODE_CONNECTOR_VGA () {1;}' unless defined(&DRM_MODE_CONNECTOR_VGA);
    eval 'sub DRM_MODE_CONNECTOR_DVII () {2;}' unless defined(&DRM_MODE_CONNECTOR_DVII);
    eval 'sub DRM_MODE_CONNECTOR_DVID () {3;}' unless defined(&DRM_MODE_CONNECTOR_DVID);
    eval 'sub DRM_MODE_CONNECTOR_DVIA () {4;}' unless defined(&DRM_MODE_CONNECTOR_DVIA);
    eval 'sub DRM_MODE_CONNECTOR_Composite () {5;}' unless defined(&DRM_MODE_CONNECTOR_Composite);
    eval 'sub DRM_MODE_CONNECTOR_SVIDEO () {6;}' unless defined(&DRM_MODE_CONNECTOR_SVIDEO);
    eval 'sub DRM_MODE_CONNECTOR_LVDS () {7;}' unless defined(&DRM_MODE_CONNECTOR_LVDS);
    eval 'sub DRM_MODE_CONNECTOR_Component () {8;}' unless defined(&DRM_MODE_CONNECTOR_Component);
    eval 'sub DRM_MODE_CONNECTOR_9PinDIN () {9;}' unless defined(&DRM_MODE_CONNECTOR_9PinDIN);
    eval 'sub DRM_MODE_CONNECTOR_DisplayPort () {10;}' unless defined(&DRM_MODE_CONNECTOR_DisplayPort);
    eval 'sub DRM_MODE_CONNECTOR_HDMIA () {11;}' unless defined(&DRM_MODE_CONNECTOR_HDMIA);
    eval 'sub DRM_MODE_CONNECTOR_HDMIB () {12;}' unless defined(&DRM_MODE_CONNECTOR_HDMIB);
    eval 'sub DRM_MODE_PROP_PENDING () {(1<<0);}' unless defined(&DRM_MODE_PROP_PENDING);
    eval 'sub DRM_MODE_PROP_RANGE () {(1<<1);}' unless defined(&DRM_MODE_PROP_RANGE);
    eval 'sub DRM_MODE_PROP_IMMUTABLE () {(1<<2);}' unless defined(&DRM_MODE_PROP_IMMUTABLE);
    eval 'sub DRM_MODE_PROP_ENUM () {(1<<3);}' unless defined(&DRM_MODE_PROP_ENUM);
    eval 'sub DRM_MODE_PROP_BLOB () {(1<<4);}' unless defined(&DRM_MODE_PROP_BLOB);
    eval 'sub DRM_MODE_CURSOR_BO () {(1<<0);}' unless defined(&DRM_MODE_CURSOR_BO);
    eval 'sub DRM_MODE_CURSOR_MOVE () {(1<<1);}' unless defined(&DRM_MODE_CURSOR_MOVE);
    eval 'sub DRM_IOCTL_BASE () {ord(\'d\');}' unless defined(&DRM_IOCTL_BASE);
    eval 'sub DRM_IO {
        my($nr) = @_;
	    eval q( &_IO( &DRM_IOCTL_BASE,$nr));
    }' unless defined(&DRM_IO);
    eval 'sub DRM_IOR {
        my($nr,$type) = @_;
	    eval q( &_IOR( &DRM_IOCTL_BASE,$nr,$type));
    }' unless defined(&DRM_IOR);
    eval 'sub DRM_IOW {
        my($nr,$type) = @_;
	    eval q( &_IOW( &DRM_IOCTL_BASE,$nr,$type));
    }' unless defined(&DRM_IOW);
    eval 'sub DRM_IOWR {
        my($nr,$type) = @_;
	    eval q( &_IOWR( &DRM_IOCTL_BASE,$nr,$type));
    }' unless defined(&DRM_IOWR);
    eval 'sub DRM_IOCTL_VERSION () { &DRM_IOWR(0x, \'struct drm_version\');}' unless defined(&DRM_IOCTL_VERSION);
    eval 'sub DRM_IOCTL_GET_UNIQUE () { &DRM_IOWR(0x1, \'struct drm_unique\');}' unless defined(&DRM_IOCTL_GET_UNIQUE);
    eval 'sub DRM_IOCTL_GET_MAGIC () { &DRM_IOR( 0x2, \'struct drm_auth\');}' unless defined(&DRM_IOCTL_GET_MAGIC);
    eval 'sub DRM_IOCTL_IRQ_BUSID () { &DRM_IOWR(0x3, \'struct drm_irq_busid\');}' unless defined(&DRM_IOCTL_IRQ_BUSID);
    eval 'sub DRM_IOCTL_GET_MAP () { &DRM_IOWR(0x4, \'struct drm_map\');}' unless defined(&DRM_IOCTL_GET_MAP);
    eval 'sub DRM_IOCTL_GET_CLIENT () { &DRM_IOWR(0x5, \'struct drm_client\');}' unless defined(&DRM_IOCTL_GET_CLIENT);
    eval 'sub DRM_IOCTL_GET_STATS () { &DRM_IOR( 0x6, \'struct drm_stats\');}' unless defined(&DRM_IOCTL_GET_STATS);
    eval 'sub DRM_IOCTL_SET_VERSION () { &DRM_IOWR(0x7, \'struct drm_set_version\');}' unless defined(&DRM_IOCTL_SET_VERSION);
    eval 'sub DRM_IOCTL_MODESET_CTL () { &DRM_IOW(0x8, \'struct drm_modeset_ctl\');}' unless defined(&DRM_IOCTL_MODESET_CTL);
    eval 'sub DRM_IOCTL_GEM_CLOSE () { &DRM_IOW (0x9, \'struct drm_gem_close\');}' unless defined(&DRM_IOCTL_GEM_CLOSE);
    eval 'sub DRM_IOCTL_GEM_FLINK () { &DRM_IOWR(0xa, \'struct drm_gem_flink\');}' unless defined(&DRM_IOCTL_GEM_FLINK);
    eval 'sub DRM_IOCTL_GEM_OPEN () { &DRM_IOWR(0xb, \'struct drm_gem_open\');}' unless defined(&DRM_IOCTL_GEM_OPEN);
    eval 'sub DRM_IOCTL_SET_UNIQUE () { &DRM_IOW( 0x10, \'struct drm_unique\');}' unless defined(&DRM_IOCTL_SET_UNIQUE);
    eval 'sub DRM_IOCTL_AUTH_MAGIC () { &DRM_IOW( 0x11, \'struct drm_auth\');}' unless defined(&DRM_IOCTL_AUTH_MAGIC);
    eval 'sub DRM_IOCTL_BLOCK () { &DRM_IOWR(0x12, \'struct drm_block\');}' unless defined(&DRM_IOCTL_BLOCK);
    eval 'sub DRM_IOCTL_UNBLOCK () { &DRM_IOWR(0x13, \'struct drm_block\');}' unless defined(&DRM_IOCTL_UNBLOCK);
    eval 'sub DRM_IOCTL_CONTROL () { &DRM_IOW( 0x14, \'struct drm_control\');}' unless defined(&DRM_IOCTL_CONTROL);
    eval 'sub DRM_IOCTL_ADD_MAP () { &DRM_IOWR(0x15, \'struct drm_map\');}' unless defined(&DRM_IOCTL_ADD_MAP);
    eval 'sub DRM_IOCTL_ADD_BUFS () { &DRM_IOWR(0x16, \'struct drm_buf_desc\');}' unless defined(&DRM_IOCTL_ADD_BUFS);
    eval 'sub DRM_IOCTL_MARK_BUFS () { &DRM_IOW( 0x17, \'struct drm_buf_desc\');}' unless defined(&DRM_IOCTL_MARK_BUFS);
    eval 'sub DRM_IOCTL_INFO_BUFS () { &DRM_IOWR(0x18, \'struct drm_buf_info\');}' unless defined(&DRM_IOCTL_INFO_BUFS);
    eval 'sub DRM_IOCTL_MAP_BUFS () { &DRM_IOWR(0x19, \'struct drm_buf_map\');}' unless defined(&DRM_IOCTL_MAP_BUFS);
    eval 'sub DRM_IOCTL_FREE_BUFS () { &DRM_IOW( 0x1a, \'struct drm_buf_free\');}' unless defined(&DRM_IOCTL_FREE_BUFS);
    eval 'sub DRM_IOCTL_RM_MAP () { &DRM_IOW( 0x1b, \'struct drm_map\');}' unless defined(&DRM_IOCTL_RM_MAP);
    eval 'sub DRM_IOCTL_SET_SAREA_CTX () { &DRM_IOW( 0x1c, \'struct drm_ctx_priv_map\');}' unless defined(&DRM_IOCTL_SET_SAREA_CTX);
    eval 'sub DRM_IOCTL_GET_SAREA_CTX () { &DRM_IOWR(0x1d, \'struct drm_ctx_priv_map\');}' unless defined(&DRM_IOCTL_GET_SAREA_CTX);
    eval 'sub DRM_IOCTL_ADD_CTX () { &DRM_IOWR(0x20, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_ADD_CTX);
    eval 'sub DRM_IOCTL_RM_CTX () { &DRM_IOWR(0x21, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_RM_CTX);
    eval 'sub DRM_IOCTL_MOD_CTX () { &DRM_IOW( 0x22, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_MOD_CTX);
    eval 'sub DRM_IOCTL_GET_CTX () { &DRM_IOWR(0x23, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_GET_CTX);
    eval 'sub DRM_IOCTL_SWITCH_CTX () { &DRM_IOW( 0x24, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_SWITCH_CTX);
    eval 'sub DRM_IOCTL_NEW_CTX () { &DRM_IOW( 0x25, \'struct drm_ctx\');}' unless defined(&DRM_IOCTL_NEW_CTX);
    eval 'sub DRM_IOCTL_RES_CTX () { &DRM_IOWR(0x26, \'struct drm_ctx_res\');}' unless defined(&DRM_IOCTL_RES_CTX);
    eval 'sub DRM_IOCTL_ADD_DRAW () { &DRM_IOWR(0x27, \'struct drm_draw\');}' unless defined(&DRM_IOCTL_ADD_DRAW);
    eval 'sub DRM_IOCTL_RM_DRAW () { &DRM_IOWR(0x28, \'struct drm_draw\');}' unless defined(&DRM_IOCTL_RM_DRAW);
    eval 'sub DRM_IOCTL_DMA () { &DRM_IOWR(0x29, \'struct drm_dma\');}' unless defined(&DRM_IOCTL_DMA);
    eval 'sub DRM_IOCTL_LOCK () { &DRM_IOW( 0x2a, \'struct drm_lock\');}' unless defined(&DRM_IOCTL_LOCK);
    eval 'sub DRM_IOCTL_UNLOCK () { &DRM_IOW( 0x2b, \'struct drm_lock\');}' unless defined(&DRM_IOCTL_UNLOCK);
    eval 'sub DRM_IOCTL_FINISH () { &DRM_IOW( 0x2c, \'struct drm_lock\');}' unless defined(&DRM_IOCTL_FINISH);
    eval 'sub DRM_IOCTL_AGP_ACQUIRE () { &DRM_IO( 0x30);}' unless defined(&DRM_IOCTL_AGP_ACQUIRE);
    eval 'sub DRM_IOCTL_AGP_RELEASE () { &DRM_IO( 0x31);}' unless defined(&DRM_IOCTL_AGP_RELEASE);
    eval 'sub DRM_IOCTL_AGP_ENABLE () { &DRM_IOW( 0x32, \'struct drm_agp_mode\');}' unless defined(&DRM_IOCTL_AGP_ENABLE);
    eval 'sub DRM_IOCTL_AGP_INFO () { &DRM_IOR( 0x33, \'struct drm_agp_info\');}' unless defined(&DRM_IOCTL_AGP_INFO);
    eval 'sub DRM_IOCTL_AGP_ALLOC () { &DRM_IOWR(0x34, \'struct drm_agp_buffer\');}' unless defined(&DRM_IOCTL_AGP_ALLOC);
    eval 'sub DRM_IOCTL_AGP_FREE () { &DRM_IOW( 0x35, \'struct drm_agp_buffer\');}' unless defined(&DRM_IOCTL_AGP_FREE);
    eval 'sub DRM_IOCTL_AGP_BIND () { &DRM_IOW( 0x36, \'struct drm_agp_binding\');}' unless defined(&DRM_IOCTL_AGP_BIND);
    eval 'sub DRM_IOCTL_AGP_UNBIND () { &DRM_IOW( 0x37, \'struct drm_agp_binding\');}' unless defined(&DRM_IOCTL_AGP_UNBIND);
    eval 'sub DRM_IOCTL_SG_ALLOC () { &DRM_IOWR(0x38, \'struct drm_scatter_gather\');}' unless defined(&DRM_IOCTL_SG_ALLOC);
    eval 'sub DRM_IOCTL_SG_FREE () { &DRM_IOW( 0x39, \'struct drm_scatter_gather\');}' unless defined(&DRM_IOCTL_SG_FREE);
    eval 'sub DRM_IOCTL_WAIT_VBLANK () { &DRM_IOWR(0x3a, \'union drm_wait_vblank\');}' unless defined(&DRM_IOCTL_WAIT_VBLANK);
    eval 'sub DRM_IOCTL_UPDATE_DRAW () { &DRM_IOW(0x3f, \'struct drm_update_draw\');}' unless defined(&DRM_IOCTL_UPDATE_DRAW);
    eval 'sub DRM_IOCTL_MODE_GETRESOURCES () { &DRM_IOWR(0xa0, \'struct drm_mode_card_res\');}' unless defined(&DRM_IOCTL_MODE_GETRESOURCES);
    eval 'sub DRM_IOCTL_MODE_GETCRTC () { &DRM_IOWR(0xa1, \'struct drm_mode_crtc\');}' unless defined(&DRM_IOCTL_MODE_GETCRTC);
    eval 'sub DRM_IOCTL_MODE_SETCRTC () { &DRM_IOWR(0xa2, \'struct drm_mode_crtc\');}' unless defined(&DRM_IOCTL_MODE_SETCRTC);
    eval 'sub DRM_IOCTL_MODE_CURSOR () { &DRM_IOWR(0xa3, \'struct drm_mode_cursor\');}' unless defined(&DRM_IOCTL_MODE_CURSOR);
    eval 'sub DRM_IOCTL_MODE_GETGAMMA () { &DRM_IOWR(0xa4, \'struct drm_mode_crtc_lut\');}' unless defined(&DRM_IOCTL_MODE_GETGAMMA);
    eval 'sub DRM_IOCTL_MODE_SETGAMMA () { &DRM_IOWR(0xa5, \'struct drm_mode_crtc_lut\');}' unless defined(&DRM_IOCTL_MODE_SETGAMMA);
    eval 'sub DRM_IOCTL_MODE_GETENCODER () { &DRM_IOWR(0xa6, \'struct drm_mode_get_encoder\');}' unless defined(&DRM_IOCTL_MODE_GETENCODER);
    eval 'sub DRM_IOCTL_MODE_GETCONNECTOR () { &DRM_IOWR(0xa7, \'struct drm_mode_get_connector\');}' unless defined(&DRM_IOCTL_MODE_GETCONNECTOR);
    eval 'sub DRM_IOCTL_MODE_ATTACHMODE () { &DRM_IOWR(0xa8, \'struct drm_mode_mode_cmd\');}' unless defined(&DRM_IOCTL_MODE_ATTACHMODE);
    eval 'sub DRM_IOCTL_MODE_DETACHMODE () { &DRM_IOWR(0xa9, \'struct drm_mode_mode_cmd\');}' unless defined(&DRM_IOCTL_MODE_DETACHMODE);
    eval 'sub DRM_IOCTL_MODE_GETPROPERTY () { &DRM_IOWR(0xaa, \'struct drm_mode_get_property\');}' unless defined(&DRM_IOCTL_MODE_GETPROPERTY);
    eval 'sub DRM_IOCTL_MODE_SETPROPERTY () { &DRM_IOWR(0xab, \'struct drm_mode_connector_set_property\');}' unless defined(&DRM_IOCTL_MODE_SETPROPERTY);
    eval 'sub DRM_IOCTL_MODE_GETPROPBLOB () { &DRM_IOWR(0xac, \'struct drm_mode_get_blob\');}' unless defined(&DRM_IOCTL_MODE_GETPROPBLOB);
    eval 'sub DRM_IOCTL_MODE_GETFB () { &DRM_IOWR(0xad, \'struct drm_mode_fb_cmd\');}' unless defined(&DRM_IOCTL_MODE_GETFB);
    eval 'sub DRM_IOCTL_MODE_ADDFB () { &DRM_IOWR(0xae, \'struct drm_mode_fb_cmd\');}' unless defined(&DRM_IOCTL_MODE_ADDFB);
    eval 'sub DRM_IOCTL_MODE_RMFB () { &DRM_IOWR(0xaf, \'unsigned int\');}' unless defined(&DRM_IOCTL_MODE_RMFB);
    eval 'sub DRM_COMMAND_BASE () {0x40;}' unless defined(&DRM_COMMAND_BASE);
    eval 'sub DRM_COMMAND_END () {0xa0;}' unless defined(&DRM_COMMAND_END);
    unless(defined(&__KERNEL__)) {
    }
}
1;
