FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/* XXX: Linux driver doesn't seem to do any of this for Atom. */
Linux driver doesn't seem to do any of this for Atom.
Linux driver doesn ' t seem to do any of this for Atom .
static void
configure_atom_secondary_side_bars(struct ntb_softc *ntb)
{
	if (ntb->dev_type == NTB_DEV_USD) {
		ntb_reg_write(8, ATOM_PBAR2XLAT_OFFSET,
		    XEON_B2B_BAR2_ADDR64);
		ntb_reg_write(8, ATOM_PBAR4XLAT_OFFSET,
		    XEON_B2B_BAR4_ADDR64);
		ntb_reg_write(8, ATOM_MBAR23_OFFSET, XEON_B2B_BAR2_ADDR64);
		ntb_reg_write(8, ATOM_MBAR45_OFFSET, XEON_B2B_BAR4_ADDR64);
	} else {
		ntb_reg_write(8, ATOM_PBAR2XLAT_OFFSET,
		    XEON_B2B_BAR2_ADDR64);
		ntb_reg_write(8, ATOM_PBAR4XLAT_OFFSET,
		    XEON_B2B_BAR4_ADDR64);
		ntb_reg_write(8, ATOM_MBAR23_OFFSET, XEON_B2B_BAR2_ADDR64);
		ntb_reg_write(8, ATOM_MBAR45_OFFSET, XEON_B2B_BAR4_ADDR64);
	}
}
static void configure_atom_secondary_side_bars ( struct ntb_softc * ntb ) { if ( ntb -> dev_type == NTB_DEV_USD ) { ntb_reg_write ( 8 , ATOM_PBAR2XLAT_OFFSET , XEON_B2B_BAR2_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_PBAR4XLAT_OFFSET , XEON_B2B_BAR4_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_MBAR23_OFFSET , XEON_B2B_BAR2_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_MBAR45_OFFSET , XEON_B2B_BAR4_ADDR64 ) ; } else { ntb_reg_write ( 8 , ATOM_PBAR2XLAT_OFFSET , XEON_B2B_BAR2_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_PBAR4XLAT_OFFSET , XEON_B2B_BAR4_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_MBAR23_OFFSET , XEON_B2B_BAR2_ADDR64 ) ; ntb_reg_write ( 8 , ATOM_MBAR45_OFFSET , XEON_B2B_BAR4_ADDR64 ) ; } }
XXX: Linux driver doesn't seem to do any of this for Atom.
XXX : Linux driver doesn ' t seem to do any of this for Atom .