diff options
author | Ariel Elior <ariele@broadcom.com> | 2013-01-01 00:22:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-02 04:45:06 -0500 |
commit | b56e9670ffa4de1a3cf0ca2f89ff5e2e0c31a1f7 (patch) | |
tree | d2b8a133c9f7d8726bea5e16dade32e4b7e56d03 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | 290ca2bb456d4214f00ba0b83fcb9793963fe007 (diff) |
bnx2x: Prepare device and initialize VF database
At nic load of the PF, if VFs may be present, prepare the device
for the VFs. Initialize the VF database in preparation of VF arrival.
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index 027a4a31dd20..af34ee36dab8 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |||
@@ -1633,6 +1633,10 @@ struct bnx2x { | |||
1633 | int dcb_version; | 1633 | int dcb_version; |
1634 | 1634 | ||
1635 | /* CAM credit pools */ | 1635 | /* CAM credit pools */ |
1636 | |||
1637 | /* used only in sriov */ | ||
1638 | struct bnx2x_credit_pool_obj vlans_pool; | ||
1639 | |||
1636 | struct bnx2x_credit_pool_obj macs_pool; | 1640 | struct bnx2x_credit_pool_obj macs_pool; |
1637 | 1641 | ||
1638 | /* RX_MODE object */ | 1642 | /* RX_MODE object */ |
@@ -1847,12 +1851,14 @@ int bnx2x_del_all_macs(struct bnx2x *bp, | |||
1847 | 1851 | ||
1848 | /* Init Function API */ | 1852 | /* Init Function API */ |
1849 | void bnx2x_func_init(struct bnx2x *bp, struct bnx2x_func_init_params *p); | 1853 | void bnx2x_func_init(struct bnx2x *bp, struct bnx2x_func_init_params *p); |
1854 | u32 bnx2x_get_pretend_reg(struct bnx2x *bp); | ||
1850 | int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); | 1855 | int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); |
1851 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | 1856 | int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); |
1852 | int bnx2x_set_mult_gpio(struct bnx2x *bp, u8 pins, u32 mode); | 1857 | int bnx2x_set_mult_gpio(struct bnx2x *bp, u8 pins, u32 mode); |
1853 | int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); | 1858 | int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); |
1854 | void bnx2x_read_mf_cfg(struct bnx2x *bp); | 1859 | void bnx2x_read_mf_cfg(struct bnx2x *bp); |
1855 | 1860 | ||
1861 | int bnx2x_pretend_func(struct bnx2x *bp, u16 pretend_func_val); | ||
1856 | 1862 | ||
1857 | /* dmae */ | 1863 | /* dmae */ |
1858 | void bnx2x_read_dmae(struct bnx2x *bp, u32 src_addr, u32 len32); | 1864 | void bnx2x_read_dmae(struct bnx2x *bp, u32 src_addr, u32 len32); |
@@ -1864,6 +1870,7 @@ u32 bnx2x_dmae_opcode_clr_src_reset(u32 opcode); | |||
1864 | u32 bnx2x_dmae_opcode(struct bnx2x *bp, u8 src_type, u8 dst_type, | 1870 | u32 bnx2x_dmae_opcode(struct bnx2x *bp, u8 src_type, u8 dst_type, |
1865 | bool with_comp, u8 comp_type); | 1871 | bool with_comp, u8 comp_type); |
1866 | 1872 | ||
1873 | u8 bnx2x_is_pcie_pending(struct pci_dev *dev); | ||
1867 | 1874 | ||
1868 | void bnx2x_calc_fc_adv(struct bnx2x *bp); | 1875 | void bnx2x_calc_fc_adv(struct bnx2x *bp); |
1869 | int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, | 1876 | int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, |
@@ -1888,6 +1895,9 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, | |||
1888 | return val; | 1895 | return val; |
1889 | } | 1896 | } |
1890 | 1897 | ||
1898 | void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id, | ||
1899 | bool is_pf); | ||
1900 | |||
1891 | #define BNX2X_ILT_ZALLOC(x, y, size) \ | 1901 | #define BNX2X_ILT_ZALLOC(x, y, size) \ |
1892 | do { \ | 1902 | do { \ |
1893 | x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \ | 1903 | x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \ |