hfi.h (261a4351844bcacb622d6d498a1bc98242b2db9e) | hfi.h (60368186fd853899c1819bcefa47f85fe8d5e5ad) |
---|---|
1#ifndef _HFI1_KERNEL_H 2#define _HFI1_KERNEL_H 3/* 4 * Copyright(c) 2015, 2016 Intel Corporation. 5 * 6 * This file is provided under a dual BSD/GPLv2 license. When using or 7 * redistributing this file, you may do so under either license. 8 * --- 158 unchanged lines hidden (view full) --- 167 ssize_t size; /* total size of eager buffers */ 168 u32 count; /* size of buffers array */ 169 u32 numbufs; /* number of buffers allocated */ 170 u32 alloced; /* number of rcvarray entries used */ 171 u32 rcvtid_size; /* size of each eager rcv tid */ 172 u32 threshold; /* head update threshold */ 173 struct eager_buffer { 174 void *addr; | 1#ifndef _HFI1_KERNEL_H 2#define _HFI1_KERNEL_H 3/* 4 * Copyright(c) 2015, 2016 Intel Corporation. 5 * 6 * This file is provided under a dual BSD/GPLv2 license. When using or 7 * redistributing this file, you may do so under either license. 8 * --- 158 unchanged lines hidden (view full) --- 167 ssize_t size; /* total size of eager buffers */ 168 u32 count; /* size of buffers array */ 169 u32 numbufs; /* number of buffers allocated */ 170 u32 alloced; /* number of rcvarray entries used */ 171 u32 rcvtid_size; /* size of each eager rcv tid */ 172 u32 threshold; /* head update threshold */ 173 struct eager_buffer { 174 void *addr; |
175 dma_addr_t phys; | 175 dma_addr_t dma; |
176 ssize_t len; 177 } *buffers; 178 struct { 179 void *addr; | 176 ssize_t len; 177 } *buffers; 178 struct { 179 void *addr; |
180 dma_addr_t phys; | 180 dma_addr_t dma; |
181 } *rcvtids; 182}; 183 184struct exp_tid_set { 185 struct list_head list; 186 u32 count; 187}; 188 --- 14 unchanged lines hidden (view full) --- 203 wait_queue_head_t wait; 204 /* rcvhdrq size (for freeing) */ 205 size_t rcvhdrq_size; 206 /* number of rcvhdrq entries */ 207 u16 rcvhdrq_cnt; 208 /* size of each of the rcvhdrq entries */ 209 u16 rcvhdrqentsize; 210 /* mmap of hdrq, must fit in 44 bits */ | 181 } *rcvtids; 182}; 183 184struct exp_tid_set { 185 struct list_head list; 186 u32 count; 187}; 188 --- 14 unchanged lines hidden (view full) --- 203 wait_queue_head_t wait; 204 /* rcvhdrq size (for freeing) */ 205 size_t rcvhdrq_size; 206 /* number of rcvhdrq entries */ 207 u16 rcvhdrq_cnt; 208 /* size of each of the rcvhdrq entries */ 209 u16 rcvhdrqentsize; 210 /* mmap of hdrq, must fit in 44 bits */ |
211 dma_addr_t rcvhdrq_phys; 212 dma_addr_t rcvhdrqtailaddr_phys; | 211 dma_addr_t rcvhdrq_dma; 212 dma_addr_t rcvhdrqtailaddr_dma; |
213 struct ctxt_eager_bufs egrbufs; 214 /* this receive context's assigned PIO ACK send context */ 215 struct send_context *sc; 216 217 /* dynamic receive available interrupt timeout */ 218 u32 rcvavail_timeout; 219 /* 220 * number of opens (including slave sub-contexts) on this instance --- 939 unchanged lines hidden (view full) --- 1160 wait_queue_head_t event_queue; 1161 1162 /* Save the enabled LCB error bits */ 1163 u64 lcb_err_en; 1164 u8 dc_shutdown; 1165 1166 /* receive context tail dummy address */ 1167 __le64 *rcvhdrtail_dummy_kvaddr; | 213 struct ctxt_eager_bufs egrbufs; 214 /* this receive context's assigned PIO ACK send context */ 215 struct send_context *sc; 216 217 /* dynamic receive available interrupt timeout */ 218 u32 rcvavail_timeout; 219 /* 220 * number of opens (including slave sub-contexts) on this instance --- 939 unchanged lines hidden (view full) --- 1160 wait_queue_head_t event_queue; 1161 1162 /* Save the enabled LCB error bits */ 1163 u64 lcb_err_en; 1164 u8 dc_shutdown; 1165 1166 /* receive context tail dummy address */ 1167 __le64 *rcvhdrtail_dummy_kvaddr; |
1168 dma_addr_t rcvhdrtail_dummy_physaddr; | 1168 dma_addr_t rcvhdrtail_dummy_dma; |
1169 1170 bool eprom_available; /* true if EPROM is available for this device */ 1171 bool aspm_supported; /* Does HW support ASPM */ 1172 bool aspm_enabled; /* ASPM state: enabled/disabled */ 1173 /* Serialize ASPM enable/disable between multiple verbs contexts */ 1174 spinlock_t aspm_lock; 1175 /* Number of verbs contexts which have disabled ASPM */ 1176 atomic_t aspm_disabled_cnt; --- 882 unchanged lines hidden --- | 1169 1170 bool eprom_available; /* true if EPROM is available for this device */ 1171 bool aspm_supported; /* Does HW support ASPM */ 1172 bool aspm_enabled; /* ASPM state: enabled/disabled */ 1173 /* Serialize ASPM enable/disable between multiple verbs contexts */ 1174 spinlock_t aspm_lock; 1175 /* Number of verbs contexts which have disabled ASPM */ 1176 atomic_t aspm_disabled_cnt; --- 882 unchanged lines hidden --- |