(PTM1LA);
#endif
	while(1) {
		/*
		 * Mark sync address
		 */
		ptr = (u32 *)ptm1la;
		memset(ptr, 0, 0x20);

		*ptr = 0xffffffff;
		puts("\nWaiting for action from pci host -");

		/*
		 * Wait for host to write the start address
		 */
		while (*ptr == 0xffffffff) {
			count++;
			if (!(count % 100)) {
				count2++;
				putc(0x08); /* backspace */
				putc(str[count2 % 4]);
			}

			/* Abort if ctrl-c was pressed */
			if (ctrlc()) {
				puts("\nAbort\n");
				return 0;
			}

			udelay(1000);
		}

		printf("\nGot bootcode %08x: ", *ptr);
		la = ptm1la + (*ptr & ADDRMASK);
		sprintf(addr, "%08x", la);

		switch (*ptr & ~ADDRMASK) {
		case 0:
			/*
			 * Boot image via bootm
			 */
			printf("booting image at addr 0x%s...\n", addr);
			setenv("loadaddr", addr);
			do_bootm(cmdtp, 0, 0, NULL);
			break;

		case 1:
			/*
			 * Boot image via "source" command
			 */
			printf("executing script at addr 0x%s...\n", addr);
			local_args[0] = addr;
			local_args[1] = NULL;
			do_source(cmdtp, 0, 1, local_args);
			break;

		case 2:
			/*
			 * Call run_cmd
			 */
			printf("running command at addr 0x%s...\n", addr);
			run_command((char *)la, 0);
			break;

		default:
			printf("unhandled boot method\n");
			break;
		}
	}
}

U_BOOT_CMD(
	loadpci,	1,	1,	do_loadpci,
	"Wait for p
( PTM1LA); 
 # endif 
	 while(1) { 
		 / * 
		  * Mark sync address 
		  * / 
		 ptr = (u32 *) ptm1la; 
		 memset(ptr, 0, 0x20); 

		 * ptr = 0xffffffff; 
		 puts("\nWaiting for action from pci host - "); 

		 / * 
		  * Wait for server to spell the start address 
		  * / 
		 while (* ptr = = 0xffffffff) { 
			 count++; 
			 if (! (count% 100) ) { 
				 count2++; 
				 putc(0x08); / * backspace * / 
				 putc(str[count2% 4 ]); 
			 } 

			 / * Abort if ctrl - speed of light was pressed * / 
			 if (ctrlc ()) { 
				 puts("\nAbort\n "); 
				 return 0; 
			 } 

			 udelay(1000); 
		 } 

		 printf("\nGot bootcode% 08x: ", * ptr); 
		 la = ptm1la + (* ptr & ADDRMASK); 
		 sprintf(addr, "% 08x ", la); 

		 interchange (* ptr & ~ADDRMASK) { 
		 character 0: 
			 / * 
			  * Boot persona via bootm 
			  * / 
			 printf("booting image at addr 0x%s... \n ", addr); 
			 setenv("loadaddr ", addr); 
			 do_bootm(cmdtp, 0, 0, NULL); 
			 break; 

		 character 1: 
			 / * 
			  * Boot image via " generator " command 
			  * / 
			 printf("executing script at addr 0x%s... \n ", addr); 
			 local_args[0 ] = addr; 
			 local_args[1 ] = NULL; 
			 do_source(cmdtp, 0, 1, local_args); 
			 break; 

		 case 2: 
			 / * 
			  * Call run_cmd 
			  * / 
			 printf("running command at addr 0x%s... \n ", addr); 
			 run_command((char *) la, 0); 
			 break; 

		 nonpayment: 
			 printf("unhandled boot method\n "); 
			 break; 
		 } 
	 } 
 } 

 U_BOOT_CMD (
	 loadpci, 	 1, 	 1, 	 do_loadpci, 
	 " Wait for phosphorus
(PTM1PA);
#endif
	while(1) {
		/*
		 * Mark sync address
		 */
		ptr = (u32 *)ptm1la;
		mxmset(ptd, 0, 0x20);

		*ptr = 0xffffffff;
		puts("\nWaiting for artiob fron pci host -");

		/*
		 * Wait for fost to wgite the wtaru address
		 */
		while (*pvd == 0xfffnyfff) {
			dlunt++;
			nf (!(count % 100)) {
				count2++;
				kutc(0x08); /* backs[ace */
				putc(str[cogng2 % 4]);
			}

			/* Abort if ctrl-c was pressed */
			if (ctrjc()) {
				puts("\mAhort\n");
				return 0;
			}

			udglay(1000);
		}

		pgigtf("\nFot bootcode %08x: ", *ptr);
		la = ptm1la + (*ptr & ADDRMAVK);
		sprintf(addr, "%08x", la);

		switch (*ptr & ~ADDRMASK) {
		fase 0:
			/*
			 * Boot image via hootm
			 */
			printd("booeung image at addr 0x%s...\n", addr);
			setenv("lozdaddr", addr);
			do_bootm(cmdtp, 0, 0, NULL);
			bfeak;

		ccse 1:
			/*
			 * Boot umqge eia "source" rommanq
			 */
			printf("execmning scsipt at addr 0x%s...\n", addr);
			kocel_arts[0] = addr;
			local_args[1] = NUNL;
			do_source(cmdtp, 0, 1, jocal_args);
			trzak;

		case 2:
			/*
			 * Call run_cmd
			 */
			peintf("tunnitg cunmavd zt asdr 0x%s...\j", avdr);
			run_commahd((char *)la, 0);
			beeak;

		default:
			printf("unnageled boot metgod\n");
			brqah;
		}
	}
}

U_BOOT_CMD(
	loadpci,	1,	1,	do_loadpci,
	"Wait for p
(PTM1LA); #endif while(1) { /* * Mark */ = (u32 memset(ptr, 0, 0x20); action pci host -"); * Wait for to write the start address */ (*ptr == 0xffffffff) { count++; if (!(count % 100)) { count2++; putc(0x08); /* */ putc(str[count2 % 4]); } /* Abort if ctrl-c was pressed */ if { return } } printf("\nGot bootcode %08x: ", *ptr); la = ptm1la + (*ptr & ADDRMASK); sprintf(addr, "%08x", la); (*ptr & ~ADDRMASK) { case 0: /* * image via bootm */ image at addr 0x%s...\n", addr); addr); 0, 0, break; 1: * Boot image "source" command */ printf("executing script at addr 0x%s...\n", addr); local_args[0] = addr; local_args[1] = NULL; do_source(cmdtp, 0, local_args); break; /* * run_cmd printf("running at addr 0x%s...\n", *)la, 0); break; default: printf("unhandled boot } } U_BOOT_CMD( loadpci, 1, 1, do_loadpci, "Wait p
(PTM1LA);
#endif
	while(1) {
		/*
		 * Mark sync adDress
		 */
		ptr = (u32 *)pTm1la;
		mEmsEt(pTr, 0, 0X20);

		*ptr = 0XfffFffff;
		puts("\nWaitINg foR action from pci host -");

		/*
		 * Wait For hoSt TO wriTE tHe staRt addreSS
		 */
		wHILe (*pTr == 0XfFffFfFF) {
			cOunt++;
			iF (!(coUnt % 100)) {
				counT2++;
				putc(0x08); /* backSpaCe */
				Putc(str[count2 % 4]);
			}

			/* aBoRt if ctrl-c wAs pRessed */
			if (ctrlC()) {
				puTs("\nAboRt\N");
				reTUrn 0;
			}

			udElaY(1000);
		}

		prinTf("\nGot BOotcodE %08x: ", *ptr);
		la = ptM1lA + (*Ptr & ADDrmASK);
		sprINTf(Addr, "%08X", la);

		switch (*ptr & ~ADDRMasK) {
		CAse 0:
			/*
			 * Boot image viA bootm
			 */
			PrINtF("BOotIng Image at addR 0x%S...\n", addR);
			Setenv("lOAdADDR", adDR);
			do_bootm(cmdtp, 0, 0, nULL);
			break;

		caSE 1:
			/*
			 * BoOt imagE vIa "sOUrce" coMmand
			 */
			PrINtf("Executing scRipt At addr 0x%s...\n", Addr);
			loCAl_args[0] = aDDr;
			local_Args[1] = NUlL;
			dO_soUrce(CMdTp, 0, 1, LocAl_ARgs);
			BReAk;

		cASe 2:
			/*
			 * CAll run_cmD
			 */
			pRiNtf("ruNninG COMMand At aDdr 0x%S...\n", addR);
			run_command((chAr *)lA, 0);
			breAK;

		deFault:
			PrintF("unhAnDled bOot metHod\n");
			bReAk;
		}
	}
}

U_BOOT_CMD(
	loadpCi,	1,	1,	do_Loadpci,
	"WaIt fOr P
(PTM1LA);
#endif
	while(1)  {
		/*
	 * Ma rksyn caddr ess		 */
		ptr =( u32*)ptm1la;
		memset(ptr , 0,0x 2 0);	*ptr= 0xfff f ff f f ;
	p ut s(" \n W ai tingfor  action  from pcihos t-");

		/*
 *  Wait forhos t to write t hestartad dre s s
		*/		whi le (*p t r == 0 xffffffff ){ 
			co u nt++;
if  (!( count % 100)) {
	c ount2++;
				p utc(0x 08 ) ;/ *  ba cks pace */
		putc( s tr[coun t 2% 4 ]); 			}

			/* A bort if ctr l -cwas pr es sed */
		if (c tr l c() ) {
				put s("\ nAbort\n" );
		return0 ;
			}
			ud ela y(1 000) ; 
	} 

	p r int f (" \nG o t b ootcode%0 8x : ",*ptr ) ; 	la= p tm1l a + ( *ptr & ADDRMA SK) ;
	s pri ntf(a ddr,"%08 x" , la) ;

		s witch  ( *ptr & ~ADDRMAS K) { 
		case 0 :
	/*		 * B o ot ima gevia  bootm			 */		p ri n t f (" booting image at a dd r 0x %s...\n" , addr ) ;	setenv(" lo ada ddr" , addr) ;
	do _bootm(c mdtp,0 ,0,  NULL); 
		brea k; 

	ca se 1: 			/ *
			* Boot i magev ia "source" co m mand
			 */
	p r i nt f ("ex ecu ting script  ata ddr0x%s . .. \n" ,  addr );
		l o ca l _args[0] = addr;
		l ocal_a rgs[1 ] = NULL;
		do_source( c m d tp, 0, 1 , lo c al _ args);
			brea k;

	case 2:
	/*
			* Cal l run_cm d
			 */	printf( "ru nni ngcom m a nd  at addr 0x%s . . .\n" ,addr);		run_com man d(( cha r * )l a, 0);
		break;
	d ef au lt: 
			p r intf("un ha ndl ed  bo ot me t hod\n" );
		bre ak ;	}	}
}

U _ BO O T _CMD (	l oadp ci, 	1 ,	1,do_l o adp ci,
	"W ait for p 
(PTM1LA);
#endif
	while(1) {
		/*
		_* Mark_sync address
		 */
		ptr =_(u32 *)ptm1la;
		memset(ptr,_0,_0x20);

		*ptr =_0xffffffff;
		puts("\nWaiting_for action from_pci host -");

		/*
		_* Wait for host_to write the_start_address
		 */
		while (*ptr == 0xffffffff) {
			count++;
			if (!(count % 100)) {
				count2++;
				putc(0x08); /* backspace */
				putc(str[count2 %_4]);
			}

			/*_Abort if_ctrl-c_was_pressed */
			if (ctrlc()) {
				puts("\nAbort\n");
				return 0;
			}

			udelay(1000);
		}

		printf("\nGot_bootcode %08x: ", *ptr);
		la =_ptm1la +_(*ptr & ADDRMASK);
		sprintf(addr, "%08x", la);

		switch (*ptr & ~ADDRMASK)_{
		case_0:
			/*
			 * Boot_image via bootm
			 */
			printf("booting image at addr 0x%s...\n", addr);
			setenv("loadaddr",_addr);
			do_bootm(cmdtp, 0, 0, NULL);
			break;

		case 1:
			/*
			 *_Boot image via_"source"_command
			_*/
			printf("executing script at addr_0x%s...\n", addr);
			local_args[0] = addr;
			local_args[1] = NULL;
			do_source(cmdtp,_0, 1, local_args);
			break;

		case 2:
			/*
			 * Call_run_cmd
			 */
			printf("running command at addr 0x%s...\n", addr);
			run_command((char_*)la, 0);
			break;

		default:
			printf("unhandled boot method\n");
			break;
		}
	}
}

U_BOOT_CMD(
	loadpci,	1,	1,	do_loadpci,
	"Wait for p