require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__SAVAGE_DRM_H__)) {
    eval 'sub __SAVAGE_DRM_H__ () {1;}' unless defined(&__SAVAGE_DRM_H__);
    unless(defined(&__SAVAGE_SAREA_DEFINES__)) {
	eval 'sub __SAVAGE_SAREA_DEFINES__ () {1;}' unless defined(&__SAVAGE_SAREA_DEFINES__);
	eval 'sub SAVAGE_CARD_HEAP () {0;}' unless defined(&SAVAGE_CARD_HEAP);
	eval 'sub SAVAGE_AGP_HEAP () {1;}' unless defined(&SAVAGE_AGP_HEAP);
	eval 'sub SAVAGE_NR_TEX_HEAPS () {2;}' unless defined(&SAVAGE_NR_TEX_HEAPS);
	eval 'sub SAVAGE_NR_TEX_REGIONS () {16;}' unless defined(&SAVAGE_NR_TEX_REGIONS);
	eval 'sub SAVAGE_LOG_MIN_TEX_REGION_SIZE () {16;}' unless defined(&SAVAGE_LOG_MIN_TEX_REGION_SIZE);
    }
    eval 'sub DRM_SAVAGE_BCI_INIT () {0x;}' unless defined(&DRM_SAVAGE_BCI_INIT);
    eval 'sub DRM_SAVAGE_BCI_CMDBUF () {0x1;}' unless defined(&DRM_SAVAGE_BCI_CMDBUF);
    eval 'sub DRM_SAVAGE_BCI_EVENT_EMIT () {0x2;}' unless defined(&DRM_SAVAGE_BCI_EVENT_EMIT);
    eval 'sub DRM_SAVAGE_BCI_EVENT_WAIT () {0x3;}' unless defined(&DRM_SAVAGE_BCI_EVENT_WAIT);
    eval 'sub DRM_IOCTL_SAVAGE_INIT () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_SAVAGE_BCI_INIT,  &drm_savage_init_t);}' unless defined(&DRM_IOCTL_SAVAGE_INIT);
    eval 'sub DRM_IOCTL_SAVAGE_CMDBUF () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_SAVAGE_BCI_CMDBUF,  &drm_savage_cmdbuf_t);}' unless defined(&DRM_IOCTL_SAVAGE_CMDBUF);
    eval 'sub DRM_IOCTL_SAVAGE_EVENT_EMIT () { &DRM_IOWR( &DRM_COMMAND_BASE +  &DRM_SAVAGE_BCI_EVENT_EMIT,  &drm_savage_event_emit_t);}' unless defined(&DRM_IOCTL_SAVAGE_EVENT_EMIT);
    eval 'sub DRM_IOCTL_SAVAGE_EVENT_WAIT () { &DRM_IOW(  &DRM_COMMAND_BASE +  &DRM_SAVAGE_BCI_EVENT_WAIT,  &drm_savage_event_wait_t);}' unless defined(&DRM_IOCTL_SAVAGE_EVENT_WAIT);
    eval 'sub SAVAGE_DMA_PCI () {1;}' unless defined(&SAVAGE_DMA_PCI);
    eval 'sub SAVAGE_DMA_AGP () {3;}' unless defined(&SAVAGE_DMA_AGP);
    eval("sub SAVAGE_INIT_BCI () { 1; }") unless defined(&SAVAGE_INIT_BCI);
    eval("sub SAVAGE_CLEANUP_BCI () { 2; }") unless defined(&SAVAGE_CLEANUP_BCI);
    eval 'sub SAVAGE_WAIT_2D () {0x1;}' unless defined(&SAVAGE_WAIT_2D);
    eval 'sub SAVAGE_WAIT_3D () {0x2;}' unless defined(&SAVAGE_WAIT_3D);
    eval 'sub SAVAGE_WAIT_IRQ () {0x4;}' unless defined(&SAVAGE_WAIT_IRQ);
    eval 'sub SAVAGE_CMD_STATE () {0;}' unless defined(&SAVAGE_CMD_STATE);
    eval 'sub SAVAGE_CMD_DMA_PRIM () {1;}' unless defined(&SAVAGE_CMD_DMA_PRIM);
    eval 'sub SAVAGE_CMD_VB_PRIM () {2;}' unless defined(&SAVAGE_CMD_VB_PRIM);
    eval 'sub SAVAGE_CMD_DMA_IDX () {3;}' unless defined(&SAVAGE_CMD_DMA_IDX);
    eval 'sub SAVAGE_CMD_VB_IDX () {4;}' unless defined(&SAVAGE_CMD_VB_IDX);
    eval 'sub SAVAGE_CMD_CLEAR () {5;}' unless defined(&SAVAGE_CMD_CLEAR);
    eval 'sub SAVAGE_CMD_SWAP () {6;}' unless defined(&SAVAGE_CMD_SWAP);
    eval 'sub SAVAGE_PRIM_TRILIST () {0;}' unless defined(&SAVAGE_PRIM_TRILIST);
    eval 'sub SAVAGE_PRIM_TRISTRIP () {1;}' unless defined(&SAVAGE_PRIM_TRISTRIP);
    eval 'sub SAVAGE_PRIM_TRIFAN () {2;}' unless defined(&SAVAGE_PRIM_TRIFAN);
    eval 'sub SAVAGE_PRIM_TRILIST_201 () {3;}' unless defined(&SAVAGE_PRIM_TRILIST_201);
    eval 'sub SAVAGE_SKIP_Z () {0x1;}' unless defined(&SAVAGE_SKIP_Z);
    eval 'sub SAVAGE_SKIP_W () {0x2;}' unless defined(&SAVAGE_SKIP_W);
    eval 'sub SAVAGE_SKIP_C0 () {0x4;}' unless defined(&SAVAGE_SKIP_C0);
    eval 'sub SAVAGE_SKIP_C1 () {0x8;}' unless defined(&SAVAGE_SKIP_C1);
    eval 'sub SAVAGE_SKIP_S0 () {0x10;}' unless defined(&SAVAGE_SKIP_S0);
    eval 'sub SAVAGE_SKIP_T0 () {0x20;}' unless defined(&SAVAGE_SKIP_T0);
    eval 'sub SAVAGE_SKIP_ST0 () {0x30;}' unless defined(&SAVAGE_SKIP_ST0);
    eval 'sub SAVAGE_SKIP_S1 () {0x40;}' unless defined(&SAVAGE_SKIP_S1);
    eval 'sub SAVAGE_SKIP_T1 () {0x80;}' unless defined(&SAVAGE_SKIP_T1);
    eval 'sub SAVAGE_SKIP_ST1 () {0xc0;}' unless defined(&SAVAGE_SKIP_ST1);
    eval 'sub SAVAGE_SKIP_ALL_S3D () {0x3f;}' unless defined(&SAVAGE_SKIP_ALL_S3D);
    eval 'sub SAVAGE_SKIP_ALL_S4 () {0xff;}' unless defined(&SAVAGE_SKIP_ALL_S4);
    eval 'sub SAVAGE_FRONT () {0x1;}' unless defined(&SAVAGE_FRONT);
    eval 'sub SAVAGE_BACK () {0x2;}' unless defined(&SAVAGE_BACK);
    eval 'sub SAVAGE_DEPTH () {0x4;}' unless defined(&SAVAGE_DEPTH);
}
1;
