···588588589589 bfin_write_EMAC_MMC_CTL(RSTC | CROLL);590590591591+ /* Set vlan regs to let 1522 bytes long packets pass through */592592+ bfin_write_EMAC_VLAN1(lp->vlan1_mask);593593+ bfin_write_EMAC_VLAN2(lp->vlan2_mask);594594+591595 /* Initialize the TX DMA channel registers */592596 bfin_write_DMA2_X_COUNT(0);593597 bfin_write_DMA2_X_MODIFY(4);···15231519 dev_err(&pdev->dev, "MII Probe failed!\n");15241520 goto out_err_mii_probe;15251521 }15221522+15231523+ lp->vlan1_mask = ETH_P_8021Q | mii_bus_data->vlan1_mask;15241524+ lp->vlan2_mask = ETH_P_8021Q | mii_bus_data->vlan2_mask;1526152515271526 /* Fill in the fields of the device structure with ethernet values. */15281527 ether_setup(ndev);
+3
drivers/net/bfin_mac.h
···8282 struct timer_list tx_reclaim_timer;8383 struct net_device *ndev;84848585+ /* Data for EMAC_VLAN1 regs */8686+ u16 vlan1_mask, vlan2_mask;8787+8588 /* MII and PHY stuffs */8689 int old_link; /* used by bf537_adjust_link */8790 int old_speed;
+1
include/linux/bfin_mac.h
···2424 const unsigned short *mac_peripherals;2525 int phy_mode;2626 unsigned int phy_mask;2727+ unsigned short vlan1_mask, vlan2_mask;2728};28292930#endif