FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * Doorbell register and mask are 64-bit on Atom, 16-bit on Xeon.  Abstract it
 * out to make code clearer.
 */
Doorbell register and mask are 64-bit on Atom, 16-bit on Xeon.  Abstract it
out to make code clearer.
Doorbell register and mask are 64 - bit on Atom 16 - bit on Xeon . Abstract it out to make code clearer .
static inline uint64_t
db_ioread(struct ntb_softc *ntb, uint64_t regoff)
{
	if (ntb->type == NTB_ATOM)
		return (ntb_reg_read(8, regoff));
	KASSERT(ntb->type == NTB_XEON, ("bad ntb type"));
	return (ntb_reg_read(2, regoff));
}
static inline uint64_t db_ioread ( struct ntb_softc * ntb , uint64_t regoff ) { if ( ntb -> type == NTB_ATOM ) return ( ntb_reg_read ( 8 , regoff ) ) ; KASSERT ( ntb -> type == NTB_XEON , ( " " ) ) ; return ( ntb_reg_read ( 2 , regoff ) ) ; }
Doorbell register and mask are 64-bit on Atom, 16-bit on Xeon.
Doorbell register and mask are 64 - bit on Atom 16 - bit on Xeon .