kernels/linux-2.4.0/drivers/sound/aci.c
/*
 * The four ACI command types (implied, write, read and indexed) can
 * be sent to the microcontroller using the following four functions.
 * If a problem occurred, they return -1.
 */
The four ACI command types (implied, write, read and indexed) can
be sent to the microcontroller using the following four functions.
If a problem occurred, they return -1.
The four ACI command types ( implied write read and indexed ) can be sent to the microcontroller using the following four functions . If a problem occurred they return - 1 .
int aci_implied_cmd(unsigned char opcode)
{
	unsigned long flags;
#ifdef DEBUG
	printk("ACI: aci_implied_cmd(0x%02x)\n", opcode);
#endif
	save_flags(flags);
	cli();
  	if (read_general_status() < 0 || busy_wait()) {
		restore_flags(flags);
		return -1;
	}
	outb_p(opcode, COMMAND_REGISTER);
	restore_flags(flags);
	return 0;
}
int aci_implied_cmd ( unsigned char opcode ) { unsigned long flags ; #ifdef DEBUG printk ( " \n " , opcode ) ; #endif save_flags ( flags ) ; cli ( ) ; if ( read_general_status ( ) < 0 || busy_wait ( ) ) { restore_flags ( flags ) ; return -1 ; } outb_p ( opcode , COMMAND_REGISTER ) ; restore_flags ( flags ) ; return 0 ; }
The four ACI command types (implied, write, read and indexed) can
 be sent to the microcontroller using the following four functions.
The four ACI command types ( implied write read and indexed ) can be sent to the microcontroller using the following four functions .