require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&MGX_REG_H)) {
    eval 'sub MGX_REG_H () {1;}' unless defined(&MGX_REG_H);
    eval 'sub MGX_FBOFFSET () {0x;}' unless defined(&MGX_FBOFFSET);
    eval 'sub MGX_BLTOFFSET () {0x800000;}' unless defined(&MGX_BLTOFFSET);
    eval 'sub MGX_FLIPOFFSET () {0x1000000;}' unless defined(&MGX_FLIPOFFSET);
    eval 'sub VGA_BASE () {0x3c0;}' unless defined(&VGA_BASE);
    eval 'sub CRTC_INDEX () {0x3d4;}' unless defined(&CRTC_INDEX);
    eval 'sub CRTC_DATA () {0x3d5;}' unless defined(&CRTC_DATA);
    eval 'sub SEQ_INDEX () {0x3c4;}' unless defined(&SEQ_INDEX);
    eval 'sub SEQ_DATA () {0x3c5;}' unless defined(&SEQ_DATA);
    eval 'sub SEQ_APERTURE () {0x1c;}' unless defined(&SEQ_APERTURE);
    eval 'sub AP_SIZE_MASK () {0x6;}' unless defined(&AP_SIZE_MASK);
    eval 'sub AP_SIZE_1MB () {0x;}' unless defined(&AP_SIZE_1MB);
    eval 'sub AP_SIZE_2MB () {0x2;}' unless defined(&AP_SIZE_2MB);
    eval 'sub AP_SIZE_4MB () {0x4;}' unless defined(&AP_SIZE_4MB);
    eval 'sub AP_SIZE_6MB () {0x6;}' unless defined(&AP_SIZE_6MB);
    eval 'sub AP_SIMULTANEOUS () {0x20;}' unless defined(&AP_SIMULTANEOUS);
    eval 'sub ATR_CLIP_CONTROL () {0x30;}' unless defined(&ATR_CLIP_CONTROL);
    eval 'sub ATR_CLIP_LEFT () {0x38;}' unless defined(&ATR_CLIP_LEFT);
    eval 'sub ATR_CLIP_TOP () {0x3a;}' unless defined(&ATR_CLIP_TOP);
    eval 'sub ATR_CLIP_LEFTTOP () {0x38;}' unless defined(&ATR_CLIP_LEFTTOP);
    eval 'sub ATR_CLIP_RIGHT () {0x3c;}' unless defined(&ATR_CLIP_RIGHT);
    eval 'sub ATR_CLIP_BOTTOM () {0x3e;}' unless defined(&ATR_CLIP_BOTTOM);
    eval 'sub ATR_CLIP_RIGHTBOTTOM () {0x3c;}' unless defined(&ATR_CLIP_RIGHTBOTTOM);
    eval 'sub ATR_DEC () {0x40;}' unless defined(&ATR_DEC);
    eval 'sub ATR_ROP () {0x46;}' unless defined(&ATR_ROP);
    eval 'sub ATR_BYTEMASK () {0x47;}' unless defined(&ATR_BYTEMASK);
    eval 'sub ATR_PATTERN1 () {0x48;}' unless defined(&ATR_PATTERN1);
    eval 'sub ATR_PATTERN2 () {0x4c;}' unless defined(&ATR_PATTERN2);
    eval 'sub ATR_SRC_X () {0x50;}' unless defined(&ATR_SRC_X);
    eval 'sub ATR_SRC_Y () {0x52;}' unless defined(&ATR_SRC_Y);
    eval 'sub ATR_SRC_XY () {0x50;}' unless defined(&ATR_SRC_XY);
    eval 'sub ATR_DST_X () {0x54;}' unless defined(&ATR_DST_X);
    eval 'sub ATR_DST_Y () {0x56;}' unless defined(&ATR_DST_Y);
    eval 'sub ATR_DST_XY () {0x54;}' unless defined(&ATR_DST_XY);
    eval 'sub ATR_W () {0x58;}' unless defined(&ATR_W);
    eval 'sub ATR_H () {0x5a;}' unless defined(&ATR_H);
    eval 'sub ATR_WH () {0x58;}' unless defined(&ATR_WH);
    eval 'sub ATR_OFFSET () {0x5c;}' unless defined(&ATR_OFFSET);
    eval 'sub ATR_SRC_OFFSET () {0x5e;}' unless defined(&ATR_SRC_OFFSET);
    eval 'sub ATR_FG () {0x60;}' unless defined(&ATR_FG);
    eval 'sub ATR_BG () {0x64;}' unless defined(&ATR_BG);
    eval 'sub DEC_COMMAND_MASK () {0x3f;}' unless defined(&DEC_COMMAND_MASK);
    eval 'sub DEC_COMMAND_SHIFT () {0;}' unless defined(&DEC_COMMAND_SHIFT);
    eval 'sub DEC_DIR_X_REVERSE () {0x40;}' unless defined(&DEC_DIR_X_REVERSE);
    eval 'sub DEC_DIR_Y_REVERSE () {0x80;}' unless defined(&DEC_DIR_Y_REVERSE);
    eval 'sub DEC_DIR_Y_MAJOR () {0x100;}' unless defined(&DEC_DIR_Y_MAJOR);
    eval 'sub DEC_SRC_LINEAR () {0x200;}' unless defined(&DEC_SRC_LINEAR);
    eval 'sub DEC_SRC_CONTIGUOUS () {0x800;}' unless defined(&DEC_SRC_CONTIGUOUS);
    eval 'sub DEC_MONOCHROME () {0x1000;}' unless defined(&DEC_MONOCHROME);
    eval 'sub DEC_SRC_TRANSPARENT () {0x2000;}' unless defined(&DEC_SRC_TRANSPARENT);
    eval 'sub DEC_DEPTH_MASK () {0x1c000;}' unless defined(&DEC_DEPTH_MASK);
    eval 'sub DEC_DEPTH_SHIFT () {14;}' unless defined(&DEC_DEPTH_SHIFT);
    eval 'sub DEC_DST_LINEAR () {0x40000;}' unless defined(&DEC_DST_LINEAR);
    eval 'sub DEC_DST_CONTIGUOUS () {0x80000;}' unless defined(&DEC_DST_CONTIGUOUS);
    eval 'sub DEC_DST_TRANSPARENT () {0x100000;}' unless defined(&DEC_DST_TRANSPARENT);
    eval 'sub DEC_DST_TRANSPARENT_POLARITY () {0x200000;}' unless defined(&DEC_DST_TRANSPARENT_POLARITY);
    eval 'sub DEC_PATTERN_MASK () {0xc00000;}' unless defined(&DEC_PATTERN_MASK);
    eval 'sub DEC_PATTERN_SHIFT () {22;}' unless defined(&DEC_PATTERN_SHIFT);
    eval 'sub DEC_WIDTH_MASK () {0x7000000;}' unless defined(&DEC_WIDTH_MASK);
    eval 'sub DEC_WIDTH_SHIFT () {24;}' unless defined(&DEC_WIDTH_SHIFT);
    eval 'sub DEC_UPDATE_MASK () {0x18000000;}' unless defined(&DEC_UPDATE_MASK);
    eval 'sub DEC_UPDATE_SHIFT () {27;}' unless defined(&DEC_UPDATE_SHIFT);
    eval 'sub DEC_START_MASK () {0x60000000;}' unless defined(&DEC_START_MASK);
    eval 'sub DEC_START_SHIFT () {29;}' unless defined(&DEC_START_SHIFT);
    eval 'sub DEC_START () {0x80000000;}' unless defined(&DEC_START);
    eval 'sub DEC_COMMAND_NOP () {0x;}' unless defined(&DEC_COMMAND_NOP);
    eval 'sub DEC_COMMAND_BLT () {0x1;}' unless defined(&DEC_COMMAND_BLT);
    eval 'sub DEC_COMMAND_RECT () {0x2;}' unless defined(&DEC_COMMAND_RECT);
    eval 'sub DEC_COMMAND_BLT_STRETCH () {0x3;}' unless defined(&DEC_COMMAND_BLT_STRETCH);
    eval 'sub DEC_COMMAND_STRIP () {0x4;}' unless defined(&DEC_COMMAND_STRIP);
    eval 'sub DEC_COMMAND_HOST_BLT () {0x8;}' unless defined(&DEC_COMMAND_HOST_BLT);
    eval 'sub DEC_COMMAND_SCREEN_BLT () {0x9;}' unless defined(&DEC_COMMAND_SCREEN_BLT);
    eval 'sub DEC_COMMAND_VECT_ENDP () {0xc;}' unless defined(&DEC_COMMAND_VECT_ENDP);
    eval 'sub DEC_COMMAND_VECT_NO_ENDP () {0xd;}' unless defined(&DEC_COMMAND_VECT_NO_ENDP);
    eval 'sub DEC_DEPTH_8 () {0x1;}' unless defined(&DEC_DEPTH_8);
    eval 'sub DEC_DEPTH_16 () {0x2;}' unless defined(&DEC_DEPTH_16);
    eval 'sub DEC_DEPTH_32 () {0x3;}' unless defined(&DEC_DEPTH_32);
    eval 'sub DEC_DEPTH_24 () {0x4;}' unless defined(&DEC_DEPTH_24);
    eval 'sub DEC_WIDTH_LINEAR () {0x;}' unless defined(&DEC_WIDTH_LINEAR);
    eval 'sub DEC_WIDTH_640 () {0x1;}' unless defined(&DEC_WIDTH_640);
    eval 'sub DEC_WIDTH_800 () {0x2;}' unless defined(&DEC_WIDTH_800);
    eval 'sub DEC_WIDTH_1024 () {0x4;}' unless defined(&DEC_WIDTH_1024);
    eval 'sub DEC_WIDTH_1152 () {0x5;}' unless defined(&DEC_WIDTH_1152);
    eval 'sub DEC_WIDTH_1280 () {0x6;}' unless defined(&DEC_WIDTH_1280);
    eval 'sub DEC_WIDTH_1600 () {0x7;}' unless defined(&DEC_WIDTH_1600);
    eval 'sub DEC_UPDATE_NONE () {0x;}' unless defined(&DEC_UPDATE_NONE);
    eval 'sub DEC_UPDATE_TOP_RIGHT () {0x1;}' unless defined(&DEC_UPDATE_TOP_RIGHT);
    eval 'sub DEC_UPDATE_BOTTOM_LEFT () {0x2;}' unless defined(&DEC_UPDATE_BOTTOM_LEFT);
    eval 'sub DEC_UPDATE_LASTPIX () {0x3;}' unless defined(&DEC_UPDATE_LASTPIX);
    eval 'sub DEC_START_DIMX () {0x1;}' unless defined(&DEC_START_DIMX);
    eval 'sub DEC_START_SRC () {0x2;}' unless defined(&DEC_START_SRC);
    eval 'sub DEC_START_DST () {0x3;}' unless defined(&DEC_START_DST);
    eval 'sub ROP_DST () {0x66;}' unless defined(&ROP_DST);
    eval 'sub ROP_SRC () {0xcc;}' unless defined(&ROP_SRC);
    eval 'sub ROP_INV () {0x33;}' unless defined(&ROP_INV);
    eval 'sub ROP_PATTERN () {0xf0;}' unless defined(&ROP_PATTERN);
    eval 'sub ATR_PIXEL () {0x80;}' unless defined(&ATR_PIXEL);
    eval 'sub PIXEL_DEPTH_MASK () {0xf;}' unless defined(&PIXEL_DEPTH_MASK);
    eval 'sub PIXEL_DEPTH_SHIFT () {0;}' unless defined(&PIXEL_DEPTH_SHIFT);
    eval 'sub PIXEL_4 () {0x1;}' unless defined(&PIXEL_4);
    eval 'sub PIXEL_8 () {0x2;}' unless defined(&PIXEL_8);
    eval 'sub PIXEL_15 () {0xc;}' unless defined(&PIXEL_15);
    eval 'sub PIXEL_16 () {0xd;}' unless defined(&PIXEL_16);
    eval 'sub PIXEL_24 () {0xe;}' unless defined(&PIXEL_24);
    eval 'sub PIXEL_32 () {0xf;}' unless defined(&PIXEL_32);
    eval 'sub ATR_APERTURE () {0xc0;}' unless defined(&ATR_APERTURE);
    eval 'sub ATR_DPMS () {0xd0;}' unless defined(&ATR_DPMS);
    eval 'sub DPMS_HSYNC_DISABLE () {0x1;}' unless defined(&DPMS_HSYNC_DISABLE);
    eval 'sub DPMS_VSYNC_DISABLE () {0x2;}' unless defined(&DPMS_VSYNC_DISABLE);
    eval 'sub DPMS_SYNC_DISABLE_ALL () {0x3;}' unless defined(&DPMS_SYNC_DISABLE_ALL);
    eval 'sub ATR_COLOR_CORRECTION () {0xe0;}' unless defined(&ATR_COLOR_CORRECTION);
    eval 'sub ATR_MCLK () {0xe8;}' unless defined(&ATR_MCLK);
    eval 'sub ATR_PCLK () {0xec;}' unless defined(&ATR_PCLK);
    eval 'sub ATR_CURSOR_ENABLE () {0x140;}' unless defined(&ATR_CURSOR_ENABLE);
    eval 'sub ATR_CURSOR_FG () {0x141;}' unless defined(&ATR_CURSOR_FG);
    eval 'sub ATR_CURSOR_BG () {0x142;}' unless defined(&ATR_CURSOR_BG);
    eval 'sub ATR_CURSOR_ADDRESS () {0x144;}' unless defined(&ATR_CURSOR_ADDRESS);
    eval 'sub ATR_CURSOR_POSITION () {0x148;}' unless defined(&ATR_CURSOR_POSITION);
    eval 'sub ATR_CURSOR_HOTSPOT () {0x14c;}' unless defined(&ATR_CURSOR_HOTSPOT);
    eval 'sub ATR_ID () {0x182;}' unless defined(&ATR_ID);
    eval 'sub ID_AP6422 () {0x6422;}' unless defined(&ID_AP6422);
    eval 'sub ID_AT24 () {0x6424;}' unless defined(&ID_AT24);
    eval 'sub ID_AT3D () {0x643d;}' unless defined(&ID_AT3D);
    eval 'sub ATR_FIFO_STATUS () {0x1fc;}' unless defined(&ATR_FIFO_STATUS);
    eval 'sub ATR_BLT_STATUS () {0x1fd;}' unless defined(&ATR_BLT_STATUS);
    eval 'sub FIFO_MASK () {0xf;}' unless defined(&FIFO_MASK);
    eval 'sub FIFO_SHIFT () {0;}' unless defined(&FIFO_SHIFT);
    eval 'sub FIFO_AP6422 () {4;}' unless defined(&FIFO_AP6422);
    eval 'sub FIFO_AT24 () {8;}' unless defined(&FIFO_AT24);
    eval 'sub BLT_HOST_BUSY () {0x1;}' unless defined(&BLT_HOST_BUSY);
    eval 'sub BLT_ENGINE_BUSY () {0x4;}' unless defined(&BLT_ENGINE_BUSY);
    eval 'sub MGX_REG_ATREG_OFFSET () {0xb0000;}' unless defined(&MGX_REG_ATREG_OFFSET);
}
1;
