diff options
author | Preetham Chandru R <pchandru@nvidia.com> | 2019-03-06 06:00:58 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-03-13 17:44:06 -0400 |
commit | 0c47ce7d72e4c95ca293a222e2462f52683838a3 (patch) | |
tree | 57308c0083816e47aa533c54a4e84e734c59bdf7 /include | |
parent | 77ee4144ce112de624a279300d7969dfa80e0b7e (diff) |
gpu: nvgpu: typedefs page_table and dma_mapping.
typedef nvidia_p2p_page_table to nvidia_p2p_page_table_t and typedef
nvidia_p2p_dma_mapping to nvidia_p2p_dma_mapping_t.
Bug 200438879
Change-Id: I1278c4022990fdedb668e7b20ae35631d2da6089
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2033843
(cherry picked from commit ad351f17be2ce1aa7c5146e6022d02f3bc2de600)
Reviewed-on: https://git-master.nvidia.com/r/2071428
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nv-p2p.h | 8 |
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 | ||
57 | struct nvidia_p2p_page_table { | 57 | typedef 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 | ||
74 | struct nvidia_p2p_dma_mapping { | 74 | typedef 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 | ||