FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/**
 * ntb_get_max_spads() - get the total scratch regs usable
 * @ntb: pointer to ntb_softc instance
 *
 * This function returns the max 32bit scratchpad registers usable by the
 * upper layer.
 *
 * RETURNS: total number of scratch pad registers available
 */
get the total scratch regs usable
@ntb: pointer to ntb_softc instance

This function returns the max 32bit scratchpad registers usable by the
upper layer.

total number of scratch pad registers available
get the total scratch regs usable @ntb : pointer to ntb_softc instance This function returns the max 32bit scratchpad registers usable by the upper layer . total number of scratch pad registers available
uint8_t
ntb_get_max_spads(struct ntb_softc *ntb)
{
	return (ntb->spad_count);
}
uint8_t ntb_get_max_spads ( struct ntb_softc * ntb ) { return ( ntb -> spad_count ) ; }
ntb_get_max_spads() - get the total scratch regs usable
 @ntb: pointer to ntb_softc instance
ntb_get_max_spads () - get the total scratch regs usable @ntb : pointer to ntb_softc instance