diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-10-23 04:30:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-24 07:27:05 -0400 |
commit | 3ffeabdd2bc62e0ebcb1a51a5d959a86a7a915fc (patch) | |
tree | a3b17cc4b0f8300aca46d67a6f9a362f6b052975 /drivers/net/sfc/net_driver.h | |
parent | 12d00cadcc45382fc127712aa35bd0c96cbf81d9 (diff) |
sfc: Eliminate indirect lookups of queue size constants
Move size and mask definitions into efx.h; calculate page orders in falcon.c.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 479a6fe38318..3afadc621a81 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -869,9 +869,6 @@ static inline const char *efx_dev_name(struct efx_nic *efx) | |||
869 | * @buf_tbl_base: Buffer table base address | 869 | * @buf_tbl_base: Buffer table base address |
870 | * @evq_ptr_tbl_base: Event queue pointer table base address | 870 | * @evq_ptr_tbl_base: Event queue pointer table base address |
871 | * @evq_rptr_tbl_base: Event queue read-pointer table base address | 871 | * @evq_rptr_tbl_base: Event queue read-pointer table base address |
872 | * @txd_ring_mask: TX descriptor ring size - 1 (must be a power of two - 1) | ||
873 | * @rxd_ring_mask: RX descriptor ring size - 1 (must be a power of two - 1) | ||
874 | * @evq_size: Event queue size (must be a power of two) | ||
875 | * @max_dma_mask: Maximum possible DMA mask | 872 | * @max_dma_mask: Maximum possible DMA mask |
876 | * @tx_dma_mask: TX DMA mask | 873 | * @tx_dma_mask: TX DMA mask |
877 | * @bug5391_mask: Address mask for bug 5391 workaround | 874 | * @bug5391_mask: Address mask for bug 5391 workaround |
@@ -890,9 +887,6 @@ struct efx_nic_type { | |||
890 | unsigned int evq_ptr_tbl_base; | 887 | unsigned int evq_ptr_tbl_base; |
891 | unsigned int evq_rptr_tbl_base; | 888 | unsigned int evq_rptr_tbl_base; |
892 | 889 | ||
893 | unsigned int txd_ring_mask; | ||
894 | unsigned int rxd_ring_mask; | ||
895 | unsigned int evq_size; | ||
896 | u64 max_dma_mask; | 890 | u64 max_dma_mask; |
897 | unsigned int tx_dma_mask; | 891 | unsigned int tx_dma_mask; |
898 | unsigned bug5391_mask; | 892 | unsigned bug5391_mask; |