//##############################################################################
//#
//#                 WUTT DOALL.UTS   -  Samsung DoAll Process
//#            ( Run ServoCopy, Functional/BurnIn, and Final Tests )
//#
//#                   For All Promise PATA/SATA Host Adapters
//#                     (PATA UDMA 33/66/100/100TX2/133TX2 and SATA 150TX4)
//#
//#     Version    Date     Description of changes
//#     -------  --------   --------------------------------------------------------
//#      v1.04   11-22-04   Added FMTU_91h(cyl) cmd to Trident shorten BI process
//#      v1.05   12-03-04   Added Final Test Error Logging
//#      v1.07   02-02-04   Added Flash code (DN) download
//#      v1.11   04-12-04   Added Inline CSC code download
//#                         Added new Final test modified from Gumi AT test
//#              
//#     M80HTBI  06-03-06   M80 Script Verification by JungJinwoo
//##############################################################################
//#               Copyright (C) Samsung Information Systems, 2004
//##############################################################################

void main()
{
	int nRet,nCnt, iCnt, loaddata;
	int nHalfCYL;
	int nMaxCYL;
	int n14CYL;
	int iTempC;  //Temperature Test 

//      strcpy(StringParam1,"M80HTBI.uts");
	strcpy(StringParam1,"MUN42SB.UTS");  

	@MESSAGE_Step(NUM); @MESSAGE_SCRIPTNAME();
	@MESSAGE_Step(NUM); @WINSTAR_load_port();                        
	delays(NET_PORT * 10);
    
	setvoltage(nCnt, NET_PORT, 5.0, 12.0 ); 

	delays(10);
    
	@MESSAGE_Step(NUM); @WINSTAR_set_timeout(120000);
	LastPowerOnLimit = 120000;        
	@MESSAGE_Step(NUM); @WINSTAR_time_stamp(0); 



//#-------------------------------------
//    Physical Sequential Write
//#-------------------------------------    
	@MESSAGE_Step(NUM); @WINSTAR_set_timeout(25000);     // SET COMMAND TIMEOUT      
	@MESSAGE_Step(NUM); LastPowerOnLimit = 120000;
	@MESSAGE_Step(NUM); @WINSTAR_power_on(STOP_BURNIN_);
	@MESSAGE_Step(NUM); @WINSTAR_init();
        	            Lba48Bit = 0;                                                                 
	@MESSAGE_Step(NUM); @WINSTAR_set_UDMA(4);                                                              
	@MESSAGE_Step(NUM); @WINSTAR_set_pattern(0x0000);                                             
	@MESSAGE_Step(NUM); @WINSTAR_set_retry(10);
	@MESSAGE_Step(NUM); @WINSTAR_write ( BY_CHS | BY_VENDOR, 0, 10, 256, 0); 
        	            delays(10);                                                 
	@MESSAGE_Step(NUM); @WINSTAR_write ( BY_CHS | BY_VENDOR, 0, MAX_CYL, 256, 0); 
        	            delays(10);   
	@MESSAGE_Step(NUM); @WINSTAR_power_off();
        	            delays(7);  




        @MESSAGE_Step(NUM); @WINSTAR_set_timeout(25000);     // SET COMMAND TIMEOUT              
	LastPowerOnLimit = 360000;
	@MESSAGE_Step(NUM); @WINSTAR_power_on(STOP_BURNIN_); // POWER ON, SPINUP, & CHECK READY.
	@MESSAGE_Step(NUM); @WINSTAR_init();                            
        	            delays(2);
	@MESSAGE_Step(NUM); @WINSTAR_power_off();
        	            delays(7);  


	@MESSAGE_Step(NUM); @WINSTAR_time_stamp(1); 
	@MESSAGE_Step(NUM); @MESSAGE_DrivePass();
}
//################################# End of file ################################




