summaryrefslogtreecommitdiffstats
path: root/include/linux/nv-p2p.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nv-p2p.h')
-rw-r--r--include/linux/nv-p2p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/nv-p2p.h b/include/linux/nv-p2p.h
index 64b92cbf..da20c05d 100644
--- a/include/linux/nv-p2p.h
+++ b/include/linux/nv-p2p.h
@@ -54,7 +54,7 @@ enum nvidia_p2p_page_size_type {
54 NVIDIA_P2P_PAGE_SIZE_COUNT 54 NVIDIA_P2P_PAGE_SIZE_COUNT
55}; 55};
56 56
57struct nvidia_p2p_page_table { 57typedef struct nvidia_p2p_page_table {
58 u32 version; 58 u32 version;
59 u32 page_size; 59 u32 page_size;
60 u64 size; 60 u64 size;
@@ -69,9 +69,9 @@ struct nvidia_p2p_page_table {
69 struct mutex lock; 69 struct mutex lock;
70 void (*free_callback)(void *data); 70 void (*free_callback)(void *data);
71 void *data; 71 void *data;
72}; 72} nvidia_p2p_page_table_t;
73 73
74struct nvidia_p2p_dma_mapping { 74typedef struct nvidia_p2p_dma_mapping {
75 u32 version; 75 u32 version;
76 dma_addr_t *hw_address; 76 dma_addr_t *hw_address;
77 u32 *hw_len; 77 u32 *hw_len;
@@ -81,7 +81,7 @@ struct nvidia_p2p_dma_mapping {
81 struct device *dev; 81 struct device *dev;
82 struct nvidia_p2p_page_table *page_table; 82 struct nvidia_p2p_page_table *page_table;
83 enum dma_data_direction direction; 83 enum dma_data_direction direction;
84}; 84} nvidia_p2p_dma_mapping_t;
85 85
86#define NVIDIA_P2P_PAGE_TABLE_VERSION 0x00010000 86#define NVIDIA_P2P_PAGE_TABLE_VERSION 0x00010000
87 87