summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.(none)>2002-11-22 04:39:35 -0600
committerJames Bottomley <jejb@mulgrave.(none)>2002-11-22 04:39:35 -0600
commit8ab1bc19e974fdebe76c065fe444979c84ba2f74 (patch)
treedfa5f2f651e11de5c6d0eaffc14c1d40c13a4ba9 /include/linux/device.h
parentfc983daf8fe2318d66f416931b0f6b1e469e78e6 (diff)
move dma_mask into struct device
Attached is a patch which moves dma_mask into struct device and cleans up the scsi mid-layer to use it (instead of using struct pci_dev). The advantage to doing this is probably most apparent on non-pci bus architectures where currently you have to construct a fake pci_dev just so you can get the bounce buffers to work correctly. The patch tries to perturb the minimum amount of code, so dma_mask in struct device is simply a pointer to the one in pci_dev. However, it will make it easy for me now to add generic device to MCA without having to go the fake pci route.
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 6ce7d11cc8f9..44262d7f34c3 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -303,6 +303,7 @@ struct device {
being off. */
unsigned char *saved_state; /* saved device state */
+ u64 *dma_mask; /* dma mask (if dma'able device) */
void (*release)(struct device * dev);
};