aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vxge/vxge-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/vxge/vxge-config.h')
-rw-r--r--drivers/net/vxge/vxge-config.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/drivers/net/vxge/vxge-config.h b/drivers/net/vxge/vxge-config.h
index 5b2c8313426d..e249e288d160 100644
--- a/drivers/net/vxge/vxge-config.h
+++ b/drivers/net/vxge/vxge-config.h
@@ -314,9 +314,9 @@ struct vxge_hw_ring_config {
314#define VXGE_HW_RING_DEFAULT 1 314#define VXGE_HW_RING_DEFAULT 1
315 315
316 u32 ring_blocks; 316 u32 ring_blocks;
317#define VXGE_HW_MIN_RING_BLOCKS 1 317#define VXGE_HW_MIN_RING_BLOCKS 1
318#define VXGE_HW_MAX_RING_BLOCKS 128 318#define VXGE_HW_MAX_RING_BLOCKS 128
319#define VXGE_HW_DEF_RING_BLOCKS 2 319#define VXGE_HW_DEF_RING_BLOCKS 2
320 320
321 u32 buffer_mode; 321 u32 buffer_mode;
322#define VXGE_HW_RING_RXD_BUFFER_MODE_1 1 322#define VXGE_HW_RING_RXD_BUFFER_MODE_1 1
@@ -700,7 +700,7 @@ struct __vxge_hw_virtualpath {
700 * 700 *
701 * This structure is used to store the callback information. 701 * This structure is used to store the callback information.
702 */ 702 */
703struct __vxge_hw_vpath_handle{ 703struct __vxge_hw_vpath_handle {
704 struct list_head item; 704 struct list_head item;
705 struct __vxge_hw_virtualpath *vpath; 705 struct __vxge_hw_virtualpath *vpath;
706}; 706};
@@ -815,8 +815,8 @@ struct vxge_hw_device_hw_info {
815 u8 serial_number[VXGE_HW_INFO_LEN]; 815 u8 serial_number[VXGE_HW_INFO_LEN];
816 u8 part_number[VXGE_HW_INFO_LEN]; 816 u8 part_number[VXGE_HW_INFO_LEN];
817 u8 product_desc[VXGE_HW_INFO_LEN]; 817 u8 product_desc[VXGE_HW_INFO_LEN];
818 u8 (mac_addrs)[VXGE_HW_MAX_VIRTUAL_PATHS][ETH_ALEN]; 818 u8 mac_addrs[VXGE_HW_MAX_VIRTUAL_PATHS][ETH_ALEN];
819 u8 (mac_addr_masks)[VXGE_HW_MAX_VIRTUAL_PATHS][ETH_ALEN]; 819 u8 mac_addr_masks[VXGE_HW_MAX_VIRTUAL_PATHS][ETH_ALEN];
820}; 820};
821 821
822/** 822/**
@@ -863,20 +863,10 @@ struct vxge_hw_device_attr {
863 loc, \ 863 loc, \
864 offset, \ 864 offset, \
865 &val64); \ 865 &val64); \
866 \
867 if (status != VXGE_HW_OK) \ 866 if (status != VXGE_HW_OK) \
868 return status; \ 867 return status; \
869} 868}
870 869
871#define VXGE_HW_VPATH_STATS_PIO_READ(offset) { \
872 status = __vxge_hw_vpath_stats_access(vpath, \
873 VXGE_HW_STATS_OP_READ, \
874 offset, \
875 &val64); \
876 if (status != VXGE_HW_OK) \
877 return status; \
878}
879
880/* 870/*
881 * struct __vxge_hw_ring - Ring channel. 871 * struct __vxge_hw_ring - Ring channel.
882 * @channel: Channel "base" of this ring, the common part of all HW 872 * @channel: Channel "base" of this ring, the common part of all HW
@@ -1148,7 +1138,7 @@ struct __vxge_hw_non_offload_db_wrapper {
1148 * lookup to determine the transmit port. 1138 * lookup to determine the transmit port.
1149 * 01: Send on physical Port1. 1139 * 01: Send on physical Port1.
1150 * 10: Send on physical Port0. 1140 * 10: Send on physical Port0.
1151 * 11: Send on both ports. 1141 * 11: Send on both ports.
1152 * Bits 18 to 21 - Reserved 1142 * Bits 18 to 21 - Reserved
1153 * Bits 22 to 23 - Gather_Code. This field is set by the host and 1143 * Bits 22 to 23 - Gather_Code. This field is set by the host and
1154 * is used to describe how individual buffers comprise a frame. 1144 * is used to describe how individual buffers comprise a frame.
@@ -1927,6 +1917,15 @@ out:
1927 return vaddr; 1917 return vaddr;
1928} 1918}
1929 1919
1920static inline void vxge_os_dma_free(struct pci_dev *pdev, const void *vaddr,
1921 struct pci_dev **p_dma_acch)
1922{
1923 unsigned long misaligned = *(unsigned long *)p_dma_acch;
1924 u8 *tmp = (u8 *)vaddr;
1925 tmp -= misaligned;
1926 kfree((void *)tmp);
1927}
1928
1930/* 1929/*
1931 * __vxge_hw_mempool_item_priv - will return pointer on per item private space 1930 * __vxge_hw_mempool_item_priv - will return pointer on per item private space
1932 */ 1931 */
@@ -1996,7 +1995,6 @@ enum vxge_hw_status vxge_hw_vpath_mtu_set(
1996void 1995void
1997vxge_hw_vpath_rx_doorbell_init(struct __vxge_hw_vpath_handle *vp); 1996vxge_hw_vpath_rx_doorbell_init(struct __vxge_hw_vpath_handle *vp);
1998 1997
1999
2000#ifndef readq 1998#ifndef readq
2001static inline u64 readq(void __iomem *addr) 1999static inline u64 readq(void __iomem *addr)
2002{ 2000{