kernels/linux-2.4.0/arch/mips/cobalt/cobaltscc.c
/*
 * Function: SccOutb
 *
 * Description: Write a byte to the SCC (Channel A) and blink LED
 * In: Byte to send
 * Out: none
 */
SccOutb
Description: Write a byte to the SCC (Channel A) and blink LED
In: Byte to send
Out: none
SccOutb Description : Write a byte to the SCC ( Channel A ) and blink LED In : Byte to send Out : none
void SccOutb(unsigned char byte)
{
	Write8530(kSCC_ChanB | kSCC_Command, R5);
	RegisterDelay();
	Write8530(kSCC_ChanB | kSCC_Command, RTS);
	RegisterDelay();
	while ((Read8530(kSCC_ChanA) & Tx_BUF_EMP) == 0)
		RegisterDelay();
	Write8530(kSCC_ChanA | kSCC_Direct, byte);
	RegisterDelay();
	Write8530(kSCC_ChanB | kSCC_Command, R9);
	RegisterDelay();
	Write8530(kSCC_ChanB | kSCC_Command, CHRB);
	RegisterDelay();
}
void SccOutb ( unsigned char byte ) { Write8530 ( kSCC_ChanB | kSCC_Command , R5 ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanB | kSCC_Command , RTS ) ; RegisterDelay ( ) ; while ( ( Read8530 ( kSCC_ChanA ) & Tx_BUF_EMP ) == 0 ) RegisterDelay ( ) ; Write8530 ( kSCC_ChanA | kSCC_Direct , byte ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanB | kSCC_Command , R9 ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanB | kSCC_Command , CHRB ) ; RegisterDelay ( ) ; }
Function: SccOutb
 Description: Write a byte to the SCC (Channel A) and blink LED
 In: Byte to send
 Out: none
Function : SccOutb Description : Write a byte to the SCC ( Channel A ) and blink LED In : Byte to send Out : none
/* LED on.. */ /* LED off.. */