require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__R128_DRM_H__)) {
    eval 'sub __R128_DRM_H__ () {1;}' unless defined(&__R128_DRM_H__);
    unless(defined(&__R128_SAREA_DEFINES__)) {
	eval 'sub __R128_SAREA_DEFINES__ () {1;}' unless defined(&__R128_SAREA_DEFINES__);
	eval 'sub R128_UPLOAD_CONTEXT () {0x1;}' unless defined(&R128_UPLOAD_CONTEXT);
	eval 'sub R128_UPLOAD_SETUP () {0x2;}' unless defined(&R128_UPLOAD_SETUP);
	eval 'sub R128_UPLOAD_TEX0 () {0x4;}' unless defined(&R128_UPLOAD_TEX0);
	eval 'sub R128_UPLOAD_TEX1 () {0x8;}' unless defined(&R128_UPLOAD_TEX1);
	eval 'sub R128_UPLOAD_TEX0IMAGES () {0x10;}' unless defined(&R128_UPLOAD_TEX0IMAGES);
	eval 'sub R128_UPLOAD_TEX1IMAGES () {0x20;}' unless defined(&R128_UPLOAD_TEX1IMAGES);
	eval 'sub R128_UPLOAD_CORE () {0x40;}' unless defined(&R128_UPLOAD_CORE);
	eval 'sub R128_UPLOAD_MASKS () {0x80;}' unless defined(&R128_UPLOAD_MASKS);
	eval 'sub R128_UPLOAD_WINDOW () {0x100;}' unless defined(&R128_UPLOAD_WINDOW);
	eval 'sub R128_UPLOAD_CLIPRECTS () {0x200;}' unless defined(&R128_UPLOAD_CLIPRECTS);
	eval 'sub R128_REQUIRE_QUIESCENCE () {0x400;}' unless defined(&R128_REQUIRE_QUIESCENCE);
	eval 'sub R128_UPLOAD_ALL () {0x7ff;}' unless defined(&R128_UPLOAD_ALL);
	eval 'sub R128_FRONT () {0x1;}' unless defined(&R128_FRONT);
	eval 'sub R128_BACK () {0x2;}' unless defined(&R128_BACK);
	eval 'sub R128_DEPTH () {0x4;}' unless defined(&R128_DEPTH);
	eval 'sub R128_POINTS () {0x1;}' unless defined(&R128_POINTS);
	eval 'sub R128_LINES () {0x2;}' unless defined(&R128_LINES);
	eval 'sub R128_LINE_STRIP () {0x3;}' unless defined(&R128_LINE_STRIP);
	eval 'sub R128_TRIANGLES () {0x4;}' unless defined(&R128_TRIANGLES);
	eval 'sub R128_TRIANGLE_FAN () {0x5;}' unless defined(&R128_TRIANGLE_FAN);
	eval 'sub R128_TRIANGLE_STRIP () {0x6;}' unless defined(&R128_TRIANGLE_STRIP);
	eval 'sub R128_BUFFER_SIZE () {16384;}' unless defined(&R128_BUFFER_SIZE);
	eval 'sub R128_INDEX_PRIM_OFFSET () {20;}' unless defined(&R128_INDEX_PRIM_OFFSET);
	eval 'sub R128_HOSTDATA_BLIT_OFFSET () {32;}' unless defined(&R128_HOSTDATA_BLIT_OFFSET);
	eval 'sub R128_NR_SAREA_CLIPRECTS () {12;}' unless defined(&R128_NR_SAREA_CLIPRECTS);
	eval 'sub R128_LOCAL_TEX_HEAP () {0;}' unless defined(&R128_LOCAL_TEX_HEAP);
	eval 'sub R128_AGP_TEX_HEAP () {1;}' unless defined(&R128_AGP_TEX_HEAP);
	eval 'sub R128_NR_TEX_HEAPS () {2;}' unless defined(&R128_NR_TEX_HEAPS);
	eval 'sub R128_NR_TEX_REGIONS () {64;}' unless defined(&R128_NR_TEX_REGIONS);
	eval 'sub R128_LOG_TEX_GRANULARITY () {16;}' unless defined(&R128_LOG_TEX_GRANULARITY);
	eval 'sub R128_NR_CONTEXT_REGS () {12;}' unless defined(&R128_NR_CONTEXT_REGS);
	eval 'sub R128_MAX_TEXTURE_LEVELS () {11;}' unless defined(&R128_MAX_TEXTURE_LEVELS);
	eval 'sub R128_MAX_TEXTURE_UNITS () {2;}' unless defined(&R128_MAX_TEXTURE_UNITS);
    }
    eval 'sub DRM_R128_INIT () {0x;}' unless defined(&DRM_R128_INIT);
    eval 'sub DRM_R128_CCE_START () {0x1;}' unless defined(&DRM_R128_CCE_START);
    eval 'sub DRM_R128_CCE_STOP () {0x2;}' unless defined(&DRM_R128_CCE_STOP);
    eval 'sub DRM_R128_CCE_RESET () {0x3;}' unless defined(&DRM_R128_CCE_RESET);
    eval 'sub DRM_R128_CCE_IDLE () {0x4;}' unless defined(&DRM_R128_CCE_IDLE);
    eval 'sub DRM_R128_RESET () {0x6;}' unless defined(&DRM_R128_RESET);
    eval 'sub DRM_R128_SWAP () {0x7;}' unless defined(&DRM_R128_SWAP);
    eval 'sub DRM_R128_CLEAR () {0x8;}' unless defined(&DRM_R128_CLEAR);
    eval 'sub DRM_R128_VERTEX () {0x9;}' unless defined(&DRM_R128_VERTEX);
    eval 'sub DRM_R128_INDICES () {0xa;}' unless defined(&DRM_R128_INDICES);
    eval 'sub DRM_R128_BLIT () {0xb;}' unless defined(&DRM_R128_BLIT);
    eval 'sub DRM_R128_DEPTH () {0xc;}' unless defined(&DRM_R128_DEPTH);
    eval 'sub DRM_R128_STIPPLE () {0xd;}' unless defined(&DRM_R128_STIPPLE);
    eval 'sub DRM_R128_INDIRECT () {0xf;}' unless defined(&DRM_R128_INDIRECT);
    eval 'sub DRM_R128_FULLSCREEN () {0x10;}' unless defined(&DRM_R128_FULLSCREEN);
    eval 'sub DRM_R128_CLEAR2 () {0x11;}' unless defined(&DRM_R128_CLEAR2);
    eval 'sub DRM_R128_GETPARAM () {0x12;}' unless defined(&DRM_R128_GETPARAM);
    eval 'sub DRM_R128_FLIP () {0x13;}' unless defined(&DRM_R128_FLIP);
    eval 'sub DRM_IOCTL_R128_INIT () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_INIT,  &drm_r128_init_t);}' unless defined(&DRM_IOCTL_R128_INIT);
    eval 'sub DRM_IOCTL_R128_CCE_START () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_CCE_START);}' unless defined(&DRM_IOCTL_R128_CCE_START);
    eval 'sub DRM_IOCTL_R128_CCE_STOP () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_CCE_STOP,  &drm_r128_cce_stop_t);}' unless defined(&DRM_IOCTL_R128_CCE_STOP);
    eval 'sub DRM_IOCTL_R128_CCE_RESET () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_CCE_RESET);}' unless defined(&DRM_IOCTL_R128_CCE_RESET);
    eval 'sub DRM_IOCTL_R128_CCE_IDLE () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_CCE_IDLE);}' unless defined(&DRM_IOCTL_R128_CCE_IDLE);
    eval 'sub DRM_IOCTL_R128_RESET () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_RESET);}' unless defined(&DRM_IOCTL_R128_RESET);
    eval 'sub DRM_IOCTL_R128_SWAP () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_SWAP);}' unless defined(&DRM_IOCTL_R128_SWAP);
    eval 'sub DRM_IOCTL_R128_CLEAR () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_CLEAR,  &drm_r128_clear_t);}' unless defined(&DRM_IOCTL_R128_CLEAR);
    eval 'sub DRM_IOCTL_R128_VERTEX () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_VERTEX,  &drm_r128_vertex_t);}' unless defined(&DRM_IOCTL_R128_VERTEX);
    eval 'sub DRM_IOCTL_R128_INDICES () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_INDICES,  &drm_r128_indices_t);}' unless defined(&DRM_IOCTL_R128_INDICES);
    eval 'sub DRM_IOCTL_R128_BLIT () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_BLIT,  &drm_r128_blit_t);}' unless defined(&DRM_IOCTL_R128_BLIT);
    eval 'sub DRM_IOCTL_R128_DEPTH () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_DEPTH,  &drm_r128_depth_t);}' unless defined(&DRM_IOCTL_R128_DEPTH);
    eval 'sub DRM_IOCTL_R128_STIPPLE () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_STIPPLE,  &drm_r128_stipple_t);}' unless defined(&DRM_IOCTL_R128_STIPPLE);
    eval 'sub DRM_IOCTL_R128_INDIRECT () { &DRM_IOWR( &DRM_COMMAND_BASE +  &DRM_R128_INDIRECT,  &drm_r128_indirect_t);}' unless defined(&DRM_IOCTL_R128_INDIRECT);
    eval 'sub DRM_IOCTL_R128_FULLSCREEN () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_FULLSCREEN,  &drm_r128_fullscreen_t);}' unless defined(&DRM_IOCTL_R128_FULLSCREEN);
    eval 'sub DRM_IOCTL_R128_CLEAR2 () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_R128_CLEAR2,  &drm_r128_clear2_t);}' unless defined(&DRM_IOCTL_R128_CLEAR2);
    eval 'sub DRM_IOCTL_R128_GETPARAM () { &DRM_IOWR(  &DRM_COMMAND_BASE +  &DRM_R128_GETPARAM,  &drm_r128_getparam_t);}' unless defined(&DRM_IOCTL_R128_GETPARAM);
    eval 'sub DRM_IOCTL_R128_FLIP () { &DRM_IO(  &DRM_COMMAND_BASE +  &DRM_R128_FLIP);}' unless defined(&DRM_IOCTL_R128_FLIP);
    eval("sub R128_INIT_CCE () { 0x01; }") unless defined(&R128_INIT_CCE);
    eval("sub R128_CLEANUP_CCE () { 0x02; }") unless defined(&R128_CLEANUP_CCE);
    eval("sub R128_WRITE_SPAN () { 0x01; }") unless defined(&R128_WRITE_SPAN);
    eval("sub R128_WRITE_PIXELS () { 0x02; }") unless defined(&R128_WRITE_PIXELS);
    eval("sub R128_READ_SPAN () { 0x03; }") unless defined(&R128_READ_SPAN);
    eval("sub R128_READ_PIXELS () { 0x04; }") unless defined(&R128_READ_PIXELS);
    eval("sub R128_INIT_FULLSCREEN () { 0x01; }") unless defined(&R128_INIT_FULLSCREEN);
    eval("sub R128_CLEANUP_FULLSCREEN () { 0x02; }") unless defined(&R128_CLEANUP_FULLSCREEN);
    eval 'sub R128_PARAM_IRQ_NR () {1;}' unless defined(&R128_PARAM_IRQ_NR);
}
1;
