aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/vnic_dev.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/enic/vnic_dev.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/enic/vnic_dev.h')
-rw-r--r--drivers/net/enic/vnic_dev.h33
1 files changed, 4 insertions, 29 deletions
diff --git a/drivers/net/enic/vnic_dev.h b/drivers/net/enic/vnic_dev.h
index 3a61873138b6..cf482a2c9dd9 100644
--- a/drivers/net/enic/vnic_dev.h
+++ b/drivers/net/enic/vnic_dev.h
@@ -44,12 +44,6 @@ static inline void writeq(u64 val, void __iomem *reg)
44#undef pr_fmt 44#undef pr_fmt
45#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 45#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
46 46
47enum vnic_dev_hw_version {
48 VNIC_DEV_HW_VER_UNKNOWN,
49 VNIC_DEV_HW_VER_A1,
50 VNIC_DEV_HW_VER_A2,
51};
52
53enum vnic_dev_intr_mode { 47enum vnic_dev_intr_mode {
54 VNIC_DEV_INTR_MODE_UNKNOWN, 48 VNIC_DEV_INTR_MODE_UNKNOWN,
55 VNIC_DEV_INTR_MODE_INTX, 49 VNIC_DEV_INTR_MODE_INTX,
@@ -84,10 +78,6 @@ unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
84 enum vnic_res_type type); 78 enum vnic_res_type type);
85void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, 79void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
86 unsigned int index); 80 unsigned int index);
87dma_addr_t vnic_dev_get_res_bus_addr(struct vnic_dev *vdev,
88 enum vnic_res_type type, unsigned int index);
89unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring,
90 unsigned int desc_count, unsigned int desc_size);
91void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring); 81void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring);
92int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, 82int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
93 unsigned int desc_count, unsigned int desc_size); 83 unsigned int desc_count, unsigned int desc_size);
@@ -95,49 +85,30 @@ void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
95 struct vnic_dev_ring *ring); 85 struct vnic_dev_ring *ring);
96int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 86int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
97 u64 *a0, u64 *a1, int wait); 87 u64 *a0, u64 *a1, int wait);
98void vnic_dev_cmd_proxy_by_bdf_start(struct vnic_dev *vdev, u16 bdf);
99void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev);
100int vnic_dev_fw_info(struct vnic_dev *vdev, 88int vnic_dev_fw_info(struct vnic_dev *vdev,
101 struct vnic_devcmd_fw_info **fw_info); 89 struct vnic_devcmd_fw_info **fw_info);
102int vnic_dev_hw_version(struct vnic_dev *vdev,
103 enum vnic_dev_hw_version *hw_ver);
104int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size, 90int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size,
105 void *value); 91 void *value);
106int vnic_dev_stats_clear(struct vnic_dev *vdev);
107int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats); 92int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats);
108int vnic_dev_hang_notify(struct vnic_dev *vdev); 93int vnic_dev_hang_notify(struct vnic_dev *vdev);
109int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, 94int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast,
110 int broadcast, int promisc, int allmulti); 95 int broadcast, int promisc, int allmulti);
111int vnic_dev_packet_filter_all(struct vnic_dev *vdev, int directed,
112 int multicast, int broadcast, int promisc, int allmulti);
113int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr); 96int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr);
114int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr); 97int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr);
115int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); 98int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr);
116int vnic_dev_raise_intr(struct vnic_dev *vdev, u16 intr);
117int vnic_dev_notify_setcmd(struct vnic_dev *vdev,
118 void *notify_addr, dma_addr_t notify_pa, u16 intr);
119int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); 99int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr);
120int vnic_dev_notify_unsetcmd(struct vnic_dev *vdev);
121int vnic_dev_notify_unset(struct vnic_dev *vdev); 100int vnic_dev_notify_unset(struct vnic_dev *vdev);
122int vnic_dev_link_status(struct vnic_dev *vdev); 101int vnic_dev_link_status(struct vnic_dev *vdev);
123u32 vnic_dev_port_speed(struct vnic_dev *vdev); 102u32 vnic_dev_port_speed(struct vnic_dev *vdev);
124u32 vnic_dev_msg_lvl(struct vnic_dev *vdev); 103u32 vnic_dev_msg_lvl(struct vnic_dev *vdev);
125u32 vnic_dev_mtu(struct vnic_dev *vdev); 104u32 vnic_dev_mtu(struct vnic_dev *vdev);
126u32 vnic_dev_link_down_cnt(struct vnic_dev *vdev);
127u32 vnic_dev_notify_status(struct vnic_dev *vdev);
128u32 vnic_dev_uif(struct vnic_dev *vdev);
129int vnic_dev_close(struct vnic_dev *vdev); 105int vnic_dev_close(struct vnic_dev *vdev);
130int vnic_dev_enable(struct vnic_dev *vdev);
131int vnic_dev_enable_wait(struct vnic_dev *vdev); 106int vnic_dev_enable_wait(struct vnic_dev *vdev);
132int vnic_dev_disable(struct vnic_dev *vdev); 107int vnic_dev_disable(struct vnic_dev *vdev);
133int vnic_dev_open(struct vnic_dev *vdev, int arg); 108int vnic_dev_open(struct vnic_dev *vdev, int arg);
134int vnic_dev_open_done(struct vnic_dev *vdev, int *done); 109int vnic_dev_open_done(struct vnic_dev *vdev, int *done);
135int vnic_dev_init(struct vnic_dev *vdev, int arg); 110int vnic_dev_init(struct vnic_dev *vdev, int arg);
136int vnic_dev_init_done(struct vnic_dev *vdev, int *done, int *err);
137int vnic_dev_init_prov(struct vnic_dev *vdev, u8 *buf, u32 len);
138int vnic_dev_deinit(struct vnic_dev *vdev); 111int vnic_dev_deinit(struct vnic_dev *vdev);
139int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg);
140int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done);
141int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg); 112int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg);
142int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done); 113int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done);
143void vnic_dev_set_intr_mode(struct vnic_dev *vdev, 114void vnic_dev_set_intr_mode(struct vnic_dev *vdev,
@@ -149,5 +120,9 @@ int vnic_dev_set_ig_vlan_rewrite_mode(struct vnic_dev *vdev,
149struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, 120struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev,
150 void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, 121 void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar,
151 unsigned int num_bars); 122 unsigned int num_bars);
123int vnic_dev_init_prov2(struct vnic_dev *vdev, u8 *buf, u32 len);
124int vnic_dev_enable2(struct vnic_dev *vdev, int active);
125int vnic_dev_enable2_done(struct vnic_dev *vdev, int *status);
126int vnic_dev_deinit_done(struct vnic_dev *vdev, int *status);
152 127
153#endif /* _VNIC_DEV_H_ */ 128#endif /* _VNIC_DEV_H_ */