kernels/linux-2.4.0/arch/mips/cobalt/cobaltscc.c
/*
 * Function: EnableScc
 *
 * Description: Enable transmit and receive on SCC Channel A
 * In: none
 * Out: none
 */
EnableScc
Description: Enable transmit and receive on SCC Channel A
In: none
Out: none
EnableScc Description : Enable transmit and receive on SCC Channel A In : none Out : none
void EnableScc(void)
{
	Write8530(kSCC_ChanA | kSCC_Command, R14 | NULLCODE);
	RegisterDelay();
	Write8530(kSCC_ChanA, BRENABL | BRSRC);
	RegisterDelay();
	Write8530(kSCC_ChanA | kSCC_Command, R3 | NULLCODE);
	RegisterDelay();
	Write8530(kSCC_ChanA, RxENABLE | Rx8);
	RegisterDelay();
	Write8530(kSCC_ChanA | kSCC_Command, R5 | NULLCODE);
	RegisterDelay();
	Write8530(kSCC_ChanA, TxENAB | Tx8 | DTR | RTS); 
	RegisterDelay();
}
void EnableScc ( void ) { Write8530 ( kSCC_ChanA | kSCC_Command , R14 | NULLCODE ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanA , BRENABL | BRSRC ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanA | kSCC_Command , R3 | NULLCODE ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanA , RxENABLE | Rx8 ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanA | kSCC_Command , R5 | NULLCODE ) ; RegisterDelay ( ) ; Write8530 ( kSCC_ChanA , TxENAB | Tx8 | DTR | RTS ) ; RegisterDelay ( ) ; }
Function: EnableScc
 Description: Enable transmit and receive on SCC Channel A
 In: none
 Out: none
Function : EnableScc Description : Enable transmit and receive on SCC Channel A In : none Out : none
/* Enable BRG */ /* Rx enable (Rx 8 bits) */ /* Tx enable (Tx8, DTR, RTS) */