FreeBSD/sys/dev/ipmi/ipmi_kcs.c
/*
 * Write a byte of the request message, excluding the last byte of the
 * message which requires special handling.
 */
Write a byte of the request message, excluding the last byte of the
message which requires special handling.
Write a byte of the request message excluding the last byte of the message which requires special handling .
static int
kcs_write_byte(struct ipmi_softc *sc, u_char data)
{
	int status;
	OUTB(sc, KCS_DATA, data);
	status = kcs_wait_for_ibf(sc, 0);
	if (status & KCS_STATUS_IBF)
		return (0);
	if (KCS_STATUS_STATE(status) != KCS_STATUS_STATE_WRITE)
		return (0);
	kcs_clear_obf(sc, status);
	return (1);
}
static int kcs_write_byte ( struct ipmi_softc * sc , u_char data ) { int status ; OUTB ( sc , KCS_DATA , data ) ; status = kcs_wait_for_ibf ( sc , 0 ) ; if ( status & KCS_STATUS_IBF ) return ( 0 ) ; if ( KCS_STATUS_STATE ( status ) != KCS_STATUS_STATE_WRITE ) return ( 0 ) ; kcs_clear_obf ( sc , status ) ; return ( 1 ) ; }
Write a byte of the request message, excluding the last byte of the
 message which requires special handling.
Write a byte of the request message excluding the last byte of the message which requires special handling .
/* Data to Data */ /* Wait for IBF = 0 */ /* Clear OBF */