summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRandy Dunlap <rddunlap@osdl.org>2004-03-30 01:26:44 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-03-30 01:26:44 -0800
commit47287358aaa36ce4e3bbf71c167157913b94db1e (patch)
tree50f2be07a2a3ce619a5574ed8bdff7513202877f /include/linux
parentc5b793bdfdbbd409f44e0d2b8eae849f5d434810 (diff)
[PATCH] PCI: add DMA_{64,32}BIT constants
On Tue, 23 Mar 2004 00:23:05 -0500 Jeff Garzik <jgarzik@pobox.com> wrote: >>Yeah well... in the intervening time, somebody on IRC commented >> >>"so what is so PCI-specific about those constants?" >> >>They probably ought to be DMA_{32,64}BIT_MASK or somesuch. Here's an updated patch, applies to 2.6.5-rc2-bk9. I left the DMA_xxBIT_MASK defines in linux/pci.h, although they aren't necessarily PCI-specific. Would we prefer to have them in linux/dma-mapping.h ?
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 275344f9c5dc..d8e5700c77c6 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -433,6 +433,9 @@ enum pci_mmap_state {
#define PCI_DMA_FROMDEVICE 2
#define PCI_DMA_NONE 3
+#define DMA_64BIT_MASK 0xffffffffffffffffULL
+#define DMA_32BIT_MASK 0x00000000ffffffffULL
+
#define DEVICE_COUNT_COMPATIBLE 4
#define DEVICE_COUNT_RESOURCE 12