require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_IC_STIREG_H_)) {
    eval 'sub _IC_STIREG_H_ () {1;}' unless defined(&_IC_STIREG_H_);
    eval 'sub STI_REGION_MAX () {8;}' unless defined(&STI_REGION_MAX);
    eval 'sub STI_MONITOR_MAX () {256;}' unless defined(&STI_MONITOR_MAX);
    eval 'sub STI_DEVNAME_LEN () {32;}' unless defined(&STI_DEVNAME_LEN);
    eval 'sub STI_NCMAP () {256;}' unless defined(&STI_NCMAP);
    eval 'sub STI_BEGIN () {0;}' unless defined(&STI_BEGIN);
    eval 'sub STI_INIT_GRAPH () {0;}' unless defined(&STI_INIT_GRAPH);
    eval 'sub STI_STATE_MGMT () {1;}' unless defined(&STI_STATE_MGMT);
    eval 'sub STI_FONT_UNPMV () {2;}' unless defined(&STI_FONT_UNPMV);
    eval 'sub STI_BLOCK_MOVE () {3;}' unless defined(&STI_BLOCK_MOVE);
    eval 'sub STI_SELF_TEST () {4;}' unless defined(&STI_SELF_TEST);
    eval 'sub STI_EXCEP_HDLR () {5;}' unless defined(&STI_EXCEP_HDLR);
    eval 'sub STI_INQ_CONF () {6;}' unless defined(&STI_INQ_CONF);
    eval 'sub STI_SCM_ENT () {7;}' unless defined(&STI_SCM_ENT);
    eval 'sub STI_DMA_CTRL () {8;}' unless defined(&STI_DMA_CTRL);
    eval 'sub STI_FLOW_CTRL () {9;}' unless defined(&STI_FLOW_CTRL);
    eval 'sub STI_UTIMING () {10;}' unless defined(&STI_UTIMING);
    eval 'sub STI_PROC_MGR () {11;}' unless defined(&STI_PROC_MGR);
    eval 'sub STI_UTIL () {12;}' unless defined(&STI_UTIL);
    eval 'sub STI_END () {13;}' unless defined(&STI_END);
    eval 'sub STI_CODECNT () {16;}' unless defined(&STI_CODECNT);
    eval 'sub STI_CODEBASE_MAIN () {0x40;}' unless defined(&STI_CODEBASE_MAIN);
    eval 'sub STI_CODEBASE_ALT () {0x80;}' unless defined(&STI_CODEBASE_ALT);
    eval 'sub STI_CODEBASE_PA () { &STI_CODEBASE_MAIN;}' unless defined(&STI_CODEBASE_PA);
    eval 'sub STI_CODEBASE_M68K () { &STI_CODEBASE_ALT;}' unless defined(&STI_CODEBASE_M68K);
    eval 'sub STI_CODEBASE_PA64 () { &STI_CODEBASE_ALT;}' unless defined(&STI_CODEBASE_PA64);
    eval 'sub STI_OK () {0;}' unless defined(&STI_OK);
    eval 'sub STI_FAIL () {-1;}' unless defined(&STI_FAIL);
    eval 'sub STI_NRDY () {1;}' unless defined(&STI_NRDY);
    eval 'sub STI_NOERRNO () {0;}' unless defined(&STI_NOERRNO);
    eval 'sub STI_BADREENTLVL () {1;}' unless defined(&STI_BADREENTLVL);
    eval 'sub STI_NOREGIONSDEF () {2;}' unless defined(&STI_NOREGIONSDEF);
    eval 'sub STI_ILLNPLANES () {3;}' unless defined(&STI_ILLNPLANES);
    eval 'sub STI_ILLINDEX () {4;}' unless defined(&STI_ILLINDEX);
    eval 'sub STI_ILLLOC () {5;}' unless defined(&STI_ILLLOC);
    eval 'sub STI_ILLCOLOUR () {6;}' unless defined(&STI_ILLCOLOUR);
    eval 'sub STI_ILLBLKMVFROM () {7;}' unless defined(&STI_ILLBLKMVFROM);
    eval 'sub STI_ILLBLKMVTO () {8;}' unless defined(&STI_ILLBLKMVTO);
    eval 'sub STI_ILLBLKMVSIZE () {9;}' unless defined(&STI_ILLBLKMVSIZE);
    eval 'sub STI_BEIUNSUPP () {10;}' unless defined(&STI_BEIUNSUPP);
    eval 'sub STI_UNXPBE () {11;}' unless defined(&STI_UNXPBE);
    eval 'sub STI_UNXHWF () {12;}' unless defined(&STI_UNXHWF);
    eval 'sub STI_NEGCFG () {13;}' unless defined(&STI_NEGCFG);
    eval 'sub STI_NEIG () {14;}' unless defined(&STI_NEIG);
    eval 'sub STI_ILLSCME () {15;}' unless defined(&STI_ILLSCME);
    eval 'sub STI_ILLCMVAL () {16;}' unless defined(&STI_ILLCMVAL);
    eval 'sub STI_NORESMEM () {17;}' unless defined(&STI_NORESMEM);
    eval 'sub STI_RESMEMCORR () {18;}' unless defined(&STI_RESMEMCORR);
    eval 'sub STI_ILLNTBLKMV () {19;}' unless defined(&STI_ILLNTBLKMV);
    eval 'sub STI_ILLMONITOR () {20;}' unless defined(&STI_ILLMONITOR);
    eval 'sub STI_ILLEXCADDR () {21;}' unless defined(&STI_ILLEXCADDR);
    eval 'sub STI_ILLEXCFLAGS () {22;}' unless defined(&STI_ILLEXCFLAGS);
    eval 'sub STI_NOEHE () {23;}' unless defined(&STI_NOEHE);
    eval 'sub STI_NOINQCE () {24;}' unless defined(&STI_NOINQCE);
    eval 'sub STI_ILLRGNPTR () {25;}' unless defined(&STI_ILLRGNPTR);
    eval 'sub STI_ILLUTLOP () {26;}' unless defined(&STI_ILLUTLOP);
    eval 'sub STI_UNKNOWN () {250;}' unless defined(&STI_UNKNOWN);
    eval 'sub STI_NOCFGPTR () {251;}' unless defined(&STI_NOCFGPTR);
    eval 'sub STI_NOFLPTR () {252;}' unless defined(&STI_NOFLPTR);
    eval 'sub STI_NOINPTR () {253;}' unless defined(&STI_NOINPTR);
    eval 'sub STI_NOOUTPTR () {254;}' unless defined(&STI_NOOUTPTR);
    eval 'sub STI_NOLOCK () {255;}' unless defined(&STI_NOLOCK);
    eval 'sub STI_COLOUR_BLACK () {0;}' unless defined(&STI_COLOUR_BLACK);
    eval 'sub STI_COLOUR_WHITE () {1;}' unless defined(&STI_COLOUR_WHITE);
    eval 'sub STI_COLOUR_RED () {2;}' unless defined(&STI_COLOUR_RED);
    eval 'sub STI_COLOUR_YELLOW () {3;}' unless defined(&STI_COLOUR_YELLOW);
    eval 'sub STI_COLOUR_GREEN () {4;}' unless defined(&STI_COLOUR_GREEN);
    eval 'sub STI_COLOUR_CYAN () {5;}' unless defined(&STI_COLOUR_CYAN);
    eval 'sub STI_COLOUR_BLUE () {6;}' unless defined(&STI_COLOUR_BLUE);
    eval 'sub STI_COLOUR_MAGENTA () {7;}' unless defined(&STI_COLOUR_MAGENTA);
    eval 'sub STI_DEVTYPE1 () {1;}' unless defined(&STI_DEVTYPE1);
    eval 'sub STI_DEVTYPE4 () {3;}' unless defined(&STI_DEVTYPE4);
    eval 'sub STI_BUSSUPPORT_GSCINTL () {0x1;}' unless defined(&STI_BUSSUPPORT_GSCINTL);
    eval 'sub STI_BUSSUPPORT_GSC15X () {0x2;}' unless defined(&STI_BUSSUPPORT_GSC15X);
    eval 'sub STI_BUSSUPPORT_GSC2X () {0x4;}' unless defined(&STI_BUSSUPPORT_GSC2X);
    eval 'sub STI_BUSSUPPORT_PCIIOEIM () {0x8;}' unless defined(&STI_BUSSUPPORT_PCIIOEIM);
    eval 'sub STI_BUSSUPPORT_PCISTD () {0x10;}' unless defined(&STI_BUSSUPPORT_PCISTD);
    eval 'sub STI_BUSSUPPORT_ILOCK () {0x20;}' unless defined(&STI_BUSSUPPORT_ILOCK);
    eval 'sub STI_BUSSUPPORT_ROMMAP () {0x40;}' unless defined(&STI_BUSSUPPORT_ROMMAP);
    eval 'sub STI_BUSSUPPORT_2DECODE () {0x80;}' unless defined(&STI_BUSSUPPORT_2DECODE);
    eval 'sub STI_EBUSSUPPORT_DMA () {0x1;}' unless defined(&STI_EBUSSUPPORT_DMA);
    eval 'sub STI_EBUSSUPPORT_PIOLOCK () {0x2;}' unless defined(&STI_EBUSSUPPORT_PIOLOCK);
    eval 'sub STI_ALTCODE_UNKNOWN () {0x;}' unless defined(&STI_ALTCODE_UNKNOWN);
    eval 'sub STI_ALTCODE_PA64 () {0x1;}' unless defined(&STI_ALTCODE_PA64);
    eval 'sub STI_REVISION {
        my($maj, $min) = @_;
	    eval q(((($maj) << 4) | (($min) & 0xf)));
    }' unless defined(&STI_REVISION);
    eval 'sub STI_FONT_HPROMAN8 () {1;}' unless defined(&STI_FONT_HPROMAN8);
    eval 'sub STI_FONT_KANA8 () {2;}' unless defined(&STI_FONT_KANA8);
    eval 'sub STI_DEP {
        my($n) = @_;
	    eval q( &typedef  &int (* &sti_$n &_t)(  &sti_$n &flags_t,  &sti_$n &in_t,  &sti_$n &out_t,  &sti_cfg_t););
    }' unless defined(&STI_DEP);
    eval 'sub STI_INITF_WAIT () {0x80000000;}' unless defined(&STI_INITF_WAIT);
    eval 'sub STI_INITF_RESET () {0x40000000;}' unless defined(&STI_INITF_RESET);
    eval 'sub STI_INITF_TEXT () {0x20000000;}' unless defined(&STI_INITF_TEXT);
    eval 'sub STI_INITF_NTEXT () {0x10000000;}' unless defined(&STI_INITF_NTEXT);
    eval 'sub STI_INITF_CLEAR () {0x8000000;}' unless defined(&STI_INITF_CLEAR);
    eval 'sub STI_INITF_CMB () {0x4000000;}' unless defined(&STI_INITF_CMB);
    eval 'sub STI_INITF_EBET () {0x2000000;}' unless defined(&STI_INITF_EBET);
    eval 'sub STI_INITF_EBETI () {0x1000000;}' unless defined(&STI_INITF_EBETI);
    eval 'sub STI_INITF_PTS () {0x800000;}' unless defined(&STI_INITF_PTS);
    eval 'sub STI_INITF_PNTS () {0x400000;}' unless defined(&STI_INITF_PNTS);
    eval 'sub STI_INITF_PBET () {0x200000;}' unless defined(&STI_INITF_PBET);
    eval 'sub STI_INITF_PBETI () {0x100000;}' unless defined(&STI_INITF_PBETI);
    eval 'sub STI_INITF_ICMT () {0x80000;}' unless defined(&STI_INITF_ICMT);
    eval 'sub STI_INITF_SCMT () {0x40000;}' unless defined(&STI_INITF_SCMT);
    eval 'sub STI_INITF_RIE () {0x20000;}' unless defined(&STI_INITF_RIE);
    eval 'sub STI_MGMTF_WAIT () {0x80000000;}' unless defined(&STI_MGMTF_WAIT);
    eval 'sub STI_MGMTF_SAVE () {0x40000000;}' unless defined(&STI_MGMTF_SAVE);
    eval 'sub STI_MGMTF_RALL () {0x20000000;}' unless defined(&STI_MGMTF_RALL);
    eval 'sub STI_UNPMVF_WAIT () {0x80000000;}' unless defined(&STI_UNPMVF_WAIT);
    eval 'sub STI_UNPMVF_NTXT () {0x40000000;}' unless defined(&STI_UNPMVF_NTXT);
    eval 'sub STI_BLKMVF_WAIT () {0x80000000;}' unless defined(&STI_BLKMVF_WAIT);
    eval 'sub STI_BLKMVF_COLR () {0x40000000;}' unless defined(&STI_BLKMVF_COLR);
    eval 'sub STI_BLKMVF_CLR () {0x20000000;}' unless defined(&STI_BLKMVF_CLR);
    eval 'sub STI_BLKMVF_NTXT () {0x10000000;}' unless defined(&STI_BLKMVF_NTXT);
    eval 'sub STI_TESTF_WAIT () {0x80000000;}' unless defined(&STI_TESTF_WAIT);
    eval 'sub STI_TESTF_ETST () {0x40000000;}' unless defined(&STI_TESTF_ETST);
    eval 'sub STI_EXHDLF_WAIT () {0x80000000;}' unless defined(&STI_EXHDLF_WAIT);
    eval 'sub STI_EXHDLF_CINT () {0x40000000;}' unless defined(&STI_EXHDLF_CINT);
    eval 'sub STI_EXHDLF_CBE () {0x20000000;}' unless defined(&STI_EXHDLF_CBE);
    eval 'sub STI_EXHDLF_PINT () {0x10000000;}' unless defined(&STI_EXHDLF_PINT);
    eval 'sub STI_EXHDLF_RINT () {0x8000000;}' unless defined(&STI_EXHDLF_RINT);
    eval 'sub STI_EXHDLF_WEIM () {0x4000000;}' unless defined(&STI_EXHDLF_WEIM);
    eval 'sub STI_EXHDLF_REIM () {0x2000000;}' unless defined(&STI_EXHDLF_REIM);
    eval 'sub STI_EXHDLF_GIE () {0x1000000;}' unless defined(&STI_EXHDLF_GIE);
    eval 'sub STI_EXHDLF_PGIE () {0x800000;}' unless defined(&STI_EXHDLF_PGIE);
    eval 'sub STI_EXHDLF_WIEM () {0x400000;}' unless defined(&STI_EXHDLF_WIEM);
    eval 'sub STI_EXHDLF_EIEM () {0x200000;}' unless defined(&STI_EXHDLF_EIEM);
    eval 'sub STI_EXHDLF_BIC () {0x100000;}' unless defined(&STI_EXHDLF_BIC);
    eval 'sub STI_EXHDLF_EIC () {0x80000;}' unless defined(&STI_EXHDLF_EIC);
    eval 'sub STI_EXHDLF_RIE () {0x40000;}' unless defined(&STI_EXHDLF_RIE);
    eval 'sub STI_EXHDLINT_BET () {0x80000000;}' unless defined(&STI_EXHDLINT_BET);
    eval 'sub STI_EXHDLINT_HW () {0x40000000;}' unless defined(&STI_EXHDLINT_HW);
    eval 'sub STI_EXHDLINT_LW () {0x20000000;}' unless defined(&STI_EXHDLINT_LW);
    eval 'sub STI_EXHDLINT_TM () {0x10000000;}' unless defined(&STI_EXHDLINT_TM);
    eval 'sub STI_EXHDLINT_VB () {0x8000000;}' unless defined(&STI_EXHDLINT_VB);
    eval 'sub STI_EXHDLINT_UDC () {0x4000000;}' unless defined(&STI_EXHDLINT_UDC);
    eval 'sub STI_EXHDLINT_BDC () {0x2000000;}' unless defined(&STI_EXHDLINT_BDC);
    eval 'sub STI_EXHDLINT_UDPC () {0x1000000;}' unless defined(&STI_EXHDLINT_UDPC);
    eval 'sub STI_EXHDLINT_BDPC () {0x800000;}' unless defined(&STI_EXHDLINT_BDPC);
    eval 'sub STI_EXHDLO_BE () {0x80000000;}' unless defined(&STI_EXHDLO_BE);
    eval 'sub STI_EXHDLO_IP () {0x40000000;}' unless defined(&STI_EXHDLO_IP);
    eval 'sub STI_EXHDLO_IE () {0x20000000;}' unless defined(&STI_EXHDLO_IE);
    eval 'sub STI_INQCONFF_WAIT () {0x80000000;}' unless defined(&STI_INQCONFF_WAIT);
    eval 'sub STI_INQCONF_Y2X () {0x1;}' unless defined(&STI_INQCONF_Y2X);
    eval 'sub STI_INQCONF_HWBLKMV () {0x2;}' unless defined(&STI_INQCONF_HWBLKMV);
    eval 'sub STI_INQCONF_AHW () {0x4;}' unless defined(&STI_INQCONF_AHW);
    eval 'sub STI_INQCONF_INT () {0x8;}' unless defined(&STI_INQCONF_INT);
    eval 'sub STI_INQCONF_GONOFF () {0x10;}' unless defined(&STI_INQCONF_GONOFF);
    eval 'sub STI_INQCONF_AONOFF () {0x20;}' unless defined(&STI_INQCONF_AONOFF);
    eval 'sub STI_INQCONF_VARY () {0x40;}' unless defined(&STI_INQCONF_VARY);
    eval 'sub STI_INQCONF_ODDBYTES () {0x80;}' unless defined(&STI_INQCONF_ODDBYTES);
    eval 'sub STI_INQCONF_FLUSH () {0x100;}' unless defined(&STI_INQCONF_FLUSH);
    eval 'sub STI_INQCONF_DMA () {0x200;}' unless defined(&STI_INQCONF_DMA);
    eval 'sub STI_INQCONF_VDMA () {0x400;}' unless defined(&STI_INQCONF_VDMA);
    eval 'sub STI_INQCONF_YUV1 () {0x2000;}' unless defined(&STI_INQCONF_YUV1);
    eval 'sub STI_INQCONF_YUV2 () {0x4000;}' unless defined(&STI_INQCONF_YUV2);
    eval 'sub STI_INQCONF_BITS () {"\\020\\001y2x\\002hwblkmv\\003ahw\\004int\\005gonoff\\006aonoff\\007vary" "\\010oddb\\011flush\\012dma\\013vdma\\016yuv1\\017yuv2";}' unless defined(&STI_INQCONF_BITS);
    eval 'sub STI_SCMENTF_WAIT () {0x80000000;}' unless defined(&STI_SCMENTF_WAIT);
    eval 'sub STI_DMACF_WAIT () {0x80000000;}' unless defined(&STI_DMACF_WAIT);
    eval 'sub STI_DMACF_PRIV () {0x40000000;}' unless defined(&STI_DMACF_PRIV);
    eval 'sub STI_DMACF_DIS () {0x20000000;}' unless defined(&STI_DMACF_DIS);
    eval 'sub STI_DMACF_BUF () {0x10000000;}' unless defined(&STI_DMACF_BUF);
    eval 'sub STI_DMACF_MRK () {0x8000000;}' unless defined(&STI_DMACF_MRK);
    eval 'sub STI_DMACF_ABRT () {0x4000000;}' unless defined(&STI_DMACF_ABRT);
    eval 'sub STI_FLOWCF_WAIT () {0x80000000;}' unless defined(&STI_FLOWCF_WAIT);
    eval 'sub STI_FLOWCF_CHW () {0x40000000;}' unless defined(&STI_FLOWCF_CHW);
    eval 'sub STI_FLOWCF_WHW () {0x20000000;}' unless defined(&STI_FLOWCF_WHW);
    eval 'sub STI_FLOWCF_WLW () {0x10000000;}' unless defined(&STI_FLOWCF_WLW);
    eval 'sub STI_FLOWCF_PCSE () {0x8000000;}' unless defined(&STI_FLOWCF_PCSE);
    eval 'sub STI_FLOWCF_CSE () {0x4000000;}' unless defined(&STI_FLOWCF_CSE);
    eval 'sub STI_FLOWCF_CSWF () {0x2000000;}' unless defined(&STI_FLOWCF_CSWF);
    eval 'sub STI_FLOWCF_CSWC () {0x1000000;}' unless defined(&STI_FLOWCF_CSWC);
    eval 'sub STI_FLOWCF_CSWQ () {0x800000;}' unless defined(&STI_FLOWCF_CSWQ);
    eval 'sub STI_UTIMF_WAIT () {0x80000000;}' unless defined(&STI_UTIMF_WAIT);
    eval 'sub STI_UTIMF_HKS () {0x40000000;}' unless defined(&STI_UTIMF_HKS);
    eval 'sub STI_UTIMF_WAIT () {0x80000000;}' unless defined(&STI_UTIMF_WAIT);
    eval 'sub STI_UTIMOP_CLEANUP () {0x;}' unless defined(&STI_UTIMOP_CLEANUP);
    eval 'sub STI_UTIMOP_BAC () {0x10000000;}' unless defined(&STI_UTIMOP_BAC);
    eval 'sub STI_UTIMF_CRIT () {0x4000000;}' unless defined(&STI_UTIMF_CRIT);
    eval 'sub STI_UTIMF_BUFF () {0x2000000;}' unless defined(&STI_UTIMF_BUFF);
    eval 'sub STI_UTIMF_IBUFF () {0x1000000;}' unless defined(&STI_UTIMF_IBUFF);
    eval 'sub STI_UTILF_ROOT () {0x80000000;}' unless defined(&STI_UTILF_ROOT);
}
1;
