diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2010-04-12 10:32:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-13 05:54:19 -0400 |
commit | 64b9b41de87e86129d055a584ee9e16bce97573a (patch) | |
tree | b636305ef64cb1b3e96a6043606f66973f34f36b /drivers/net/qlge/qlge.h | |
parent | 56e3b9df1376fa865ae929909b02f6840207520f (diff) |
qlge: use the DMA state API instead of the pci equivalents
This replace the PCI DMA state API (include/linux/pci-dma.h) with the
DMA equivalents since the PCI DMA state API will be obsolete.
No functional change.
For further information about the background:
http://marc.info/?l=linux-netdev&m=127037540020276&w=2
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge.h')
-rw-r--r-- | drivers/net/qlge/qlge.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h index 8b742b639ce..20624ba44a3 100644 --- a/drivers/net/qlge/qlge.h +++ b/drivers/net/qlge/qlge.h | |||
@@ -1344,8 +1344,8 @@ struct oal { | |||
1344 | }; | 1344 | }; |
1345 | 1345 | ||
1346 | struct map_list { | 1346 | struct map_list { |
1347 | DECLARE_PCI_UNMAP_ADDR(mapaddr); | 1347 | DEFINE_DMA_UNMAP_ADDR(mapaddr); |
1348 | DECLARE_PCI_UNMAP_LEN(maplen); | 1348 | DEFINE_DMA_UNMAP_LEN(maplen); |
1349 | }; | 1349 | }; |
1350 | 1350 | ||
1351 | struct tx_ring_desc { | 1351 | struct tx_ring_desc { |
@@ -1373,8 +1373,8 @@ struct bq_desc { | |||
1373 | } p; | 1373 | } p; |
1374 | __le64 *addr; | 1374 | __le64 *addr; |
1375 | u32 index; | 1375 | u32 index; |
1376 | DECLARE_PCI_UNMAP_ADDR(mapaddr); | 1376 | DEFINE_DMA_UNMAP_ADDR(mapaddr); |
1377 | DECLARE_PCI_UNMAP_LEN(maplen); | 1377 | DEFINE_DMA_UNMAP_LEN(maplen); |
1378 | }; | 1378 | }; |
1379 | 1379 | ||
1380 | #define QL_TXQ_IDX(qdev, skb) (smp_processor_id()%(qdev->tx_ring_count)) | 1380 | #define QL_TXQ_IDX(qdev, skb) (smp_processor_id()%(qdev->tx_ring_count)) |