require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&NE7_DAB)) {
    sub NE7_DAB () {	0x1;}
}
unless(defined(&NE7_DBB)) {
    sub NE7_DBB () {	0x2;}
}
unless(defined(&NE7_CB)) {
    sub NE7_CB () {	0x10;}
}
unless(defined(&NE7_NDM)) {
    sub NE7_NDM () {	0x20;}
}
unless(defined(&NE7_DIO)) {
    sub NE7_DIO () {	0x40;}
}
unless(defined(&NE7_RQM)) {
    sub NE7_RQM () {	0x80;}
}
unless(defined(&NE7_ST0BITS)) {
    sub NE7_ST0BITS () {	"\020\010invld\007abnrml\006seek_cmplt\005equ_chck\004drive_notrdy\003top_head";}
}
unless(defined(&NE7_ST0_IC)) {
    sub NE7_ST0_IC () {	0xc0;}
}
unless(defined(&NE7_ST0_IC_RC)) {
    sub NE7_ST0_IC_RC () {	0xc0;}
}
unless(defined(&NE7_ST0_IC_IV)) {
    sub NE7_ST0_IC_IV () {	0x80;}
}
unless(defined(&NE7_ST0_IC_AT)) {
    sub NE7_ST0_IC_AT () {	0x40;}
}
unless(defined(&NE7_ST0_IC_NT)) {
    sub NE7_ST0_IC_NT () {	0x;}
}
unless(defined(&NE7_ST0_SE)) {
    sub NE7_ST0_SE () {	0x20;}
}
unless(defined(&NE7_ST0_EC)) {
    sub NE7_ST0_EC () {	0x10;}
}
unless(defined(&NE7_ST0_NR)) {
    sub NE7_ST0_NR () {	0x8;}
}
unless(defined(&NE7_ST0_HD)) {
    sub NE7_ST0_HD () {	0x4;}
}
unless(defined(&NE7_ST0_DR)) {
    sub NE7_ST0_DR () {	0x3;}
}
unless(defined(&NE7_ST1BITS)) {
    sub NE7_ST1BITS () {	"\020\010end_of_cyl\006bad_crc\005data_overrun\003sec_not_fnd\002write_protect\001no_am";}
}
unless(defined(&NE7_ST1_EN)) {
    sub NE7_ST1_EN () {	0x80;}
}
unless(defined(&NE7_ST1_DE)) {
    sub NE7_ST1_DE () {	0x20;}
}
unless(defined(&NE7_ST1_OR)) {
    sub NE7_ST1_OR () {	0x10;}
}
unless(defined(&NE7_ST1_ND)) {
    sub NE7_ST1_ND () {	0x4;}
}
unless(defined(&NE7_ST1_NW)) {
    sub NE7_ST1_NW () {	0x2;}
}
unless(defined(&NE7_ST1_MA)) {
    sub NE7_ST1_MA () {	0x1;}
}
unless(defined(&NE7_ST2BITS)) {
    sub NE7_ST2BITS () {	"\020\007ctrl_mrk\006bad_crc\005wrong_cyl\004scn_eq\003scn_not_fnd\002bad_cyl\001no_dam";}
}
unless(defined(&NE7_ST2_CM)) {
    sub NE7_ST2_CM () {	0x40;}
}
unless(defined(&NE7_ST2_DD)) {
    sub NE7_ST2_DD () {	0x20;}
}
unless(defined(&NE7_ST2_WC)) {
    sub NE7_ST2_WC () {	0x10;}
}
unless(defined(&NE7_ST2_SH)) {
    sub NE7_ST2_SH () {	0x8;}
}
unless(defined(&NE7_ST2_SN)) {
    sub NE7_ST2_SN () {	0x4;}
}
unless(defined(&NE7_ST2_BC)) {
    sub NE7_ST2_BC () {	0x2;}
}
unless(defined(&NE7_ST2_MD)) {
    sub NE7_ST2_MD () {	0x1;}
}
unless(defined(&NE7_ST3BITS)) {
    sub NE7_ST3BITS () {	"\020\010fault\007write_protect\006drdy\005tk0\004two_side\003side_sel\002";}
}
unless(defined(&NE7_ST3_FT)) {
    sub NE7_ST3_FT () {	0x80;}
}
unless(defined(&NE7_ST3_WP)) {
    sub NE7_ST3_WP () {	0x40;}
}
unless(defined(&NE7_ST3_RD)) {
    sub NE7_ST3_RD () {	0x20;}
}
unless(defined(&NE7_ST3_T0)) {
    sub NE7_ST3_T0 () {	0x10;}
}
unless(defined(&NE7_ST3_TS)) {
    sub NE7_ST3_TS () {	0x8;}
}
unless(defined(&NE7_ST3_HD)) {
    sub NE7_ST3_HD () {	0x4;}
}
unless(defined(&NE7_ST3_US)) {
    sub NE7_ST3_US () {	0x3;}
}
unless(defined(&NE7CMD_READTRK)) {
    sub NE7CMD_READTRK () {	0x42;}
}
unless(defined(&NE7CMD_SPECIFY)) {
    sub NE7CMD_SPECIFY () {	3;}
}
unless(defined(&NE7CMD_SENSED)) {
    sub NE7CMD_SENSED () {	4;}
}
unless(defined(&NE7CMD_WRITE)) {
    sub NE7CMD_WRITE () {	0xc5;}
}
unless(defined(&NE7CMD_READ)) {
    sub NE7CMD_READ () {	0xe6;}
}
unless(defined(&NE7CMD_RECAL)) {
    sub NE7CMD_RECAL () {	7;}
}
unless(defined(&NE7CMD_SENSEI)) {
    sub NE7CMD_SENSEI () {	8;}
}
unless(defined(&NE7CMD_WRITEDEL)) {
    sub NE7CMD_WRITEDEL () {	0xc9;}
}
unless(defined(&NE7CMD_READID)) {
    sub NE7CMD_READID () {	0x4a;}
}
unless(defined(&NE7CMD_READDEL)) {
    sub NE7CMD_READDEL () {	0xec;}
}
unless(defined(&NE7CMD_FORMAT)) {
    sub NE7CMD_FORMAT () {	0x4d;}
}
unless(defined(&NE7CMD_SEEK)) {
    sub NE7CMD_SEEK () {	0xf;}
}
unless(defined(&NE7CMD_SCNEQU)) {
    sub NE7CMD_SCNEQU () {	0xf1;}
}
unless(defined(&NE7CMD_SCNLE)) {
    sub NE7CMD_SCNLE () {	0xf9;}
}
unless(defined(&NE7CMD_SCNGE)) {
    sub NE7CMD_SCNGE () {	0xfd;}
}
unless(defined(&NE7CMD_VERSION)) {
    sub NE7CMD_VERSION () {	0x10;}
}
unless(defined(&NE7_SPEC_1)) {
    sub NE7_SPEC_1 {
	my($srt, $hut) = @_;
	eval q((((16- ($srt)) << 4) | ((($hut) / 16))));
    }
}
unless(defined(&NE7_SPEC_2)) {
    sub NE7_SPEC_2 {
	my($hlt, $nd) = @_;
	eval q(((($hlt) & 0xfe) | (($nd) & 1)));
    }
}
1;
