Updated TODO tags and struct hfi1_user_sdma_pkt_q

This commit is contained in:
Aram Santogidis
2017-08-02 09:46:42 +09:00
committed by Balazs Gerofi
parent 64e2639adc
commit 5cf884ef41
3 changed files with 17 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ struct iowait_work {
#ifdef __HFI1_ORIG__
struct work_struct iowork;
#else
//TODO:
//TODO: iowait_work
#endif /* __HFI1_ORIG__ */
struct list_head tx_head;
struct iowait *iow;
@@ -151,7 +151,7 @@ struct iowait {
wait_queue_head_t wait_dma;
wait_queue_head_t wait_pio;
#else
//TODO:
//TODO: wait
#endif /* __HFI1_ORIG__ */
atomic_t sdma_busy;
atomic_t pio_busy;

View File

@@ -124,20 +124,28 @@ struct hfi1_user_sdma_pkt_q {
#ifdef __HFI1_ORIG__
struct kmem_cache *txreq_cache;
#else
void *txreq_cache; //unused
void *unused0;
#endif /* __HFI1_ORIG__ */
struct user_sdma_request *reqs;
unsigned long *req_in_use;
struct iowait busy;
unsigned state;
#ifdef __HFI1_ORIG__
#ifdef __HFI1_ORIG__
wait_queue_head_t wait;
#else
//TODO: hfi1_user_sdma_pkt_q
#endif /* __HFI1_ORIG__ */
unsigned long unpinned;
#ifdef __HFI1_ORIG__
struct mmu_rb_handler *handler;
#else
void *unused1;
#endif /* __HFI1_ORIG__ */
atomic_t n_locked;
#ifdef __HFI1_ORIG__
struct mm_struct *mm;
#else
//TODO:
void *unused2;
#endif /* __HFI1_ORIG__ */
};