Esempio n. 1
0
static void nlm_init_node(void)
{
	struct nlm_soc_info *nodep;

	nodep = nlm_current_node();
	nodep->picbase = nlm_mmio_base(NETLOGIC_IO_PIC_OFFSET);
	nodep->ebase = read_c0_ebase() & (~((1 << 12) - 1));
	spin_lock_init(&nodep->piclock);
}
Esempio n. 2
0
static void config_mac(struct xlr_net_data *nd, int phy, u32 __iomem *serdes,
		u32 __iomem *pcs, int rfr, int tx, int *bkt_size,
		struct xlr_fmn_info *gmac_fmn_info, int phy_addr)
{
	nd->cpu_mask = nlm_current_node()->coremask;
	nd->phy_interface = phy;
	nd->rfr_station = rfr;
	nd->tx_stnid = tx;
	nd->mii_addr = gmac0_addr;
	nd->serdes_addr = serdes;
	nd->pcs_addr = pcs;
	nd->gpio_addr = gpio_addr;

	nd->bucket_size = bkt_size;
	nd->gmac_fmn_info = gmac_fmn_info;
	nd->phy_addr = phy_addr;
}