Updated sdma.h (fixed struct sdma_engine size)
This commit is contained in:
committed by
Balazs Gerofi
parent
7d2e2f93b0
commit
1c4a6568e6
@@ -108,6 +108,31 @@ static inline unsigned raw_seqcount_begin(const seqcount_t *s)
|
|||||||
}
|
}
|
||||||
/***********************************************/
|
/***********************************************/
|
||||||
|
|
||||||
|
/* kernel-xppsl_1.5.2/include/linux/kref.h */
|
||||||
|
struct kref {
|
||||||
|
atomic_t refcount;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
spinlock_t lock;
|
||||||
|
struct list_head task_list;
|
||||||
|
} wait_queue_head_t ;
|
||||||
|
|
||||||
|
struct completion {
|
||||||
|
unsigned int done;
|
||||||
|
wait_queue_head_t wait;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* kernel-xppsl_1.5.2/include/linux/interrupt.h */
|
||||||
|
struct tasklet_struct
|
||||||
|
{
|
||||||
|
struct tasklet_struct *next;
|
||||||
|
unsigned long state;
|
||||||
|
atomic_t count;
|
||||||
|
void (*func)(unsigned long);
|
||||||
|
unsigned long data;
|
||||||
|
};
|
||||||
|
|
||||||
/* Misc */
|
/* Misc */
|
||||||
/* From: kernel-xppsl_1.5.2/include/linux/kernel.h */
|
/* From: kernel-xppsl_1.5.2/include/linux/kernel.h */
|
||||||
#define min_t(type, x, y) ({ \
|
#define min_t(type, x, y) ({ \
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ struct iowait_work {
|
|||||||
* Waiters explicity know that, but the destroy
|
* Waiters explicity know that, but the destroy
|
||||||
* code that unwaits QPs does not.
|
* code that unwaits QPs does not.
|
||||||
*/
|
*/
|
||||||
/* The original size on Linux is 240 */
|
/* The original size on Linux is 240 B */
|
||||||
struct iowait {
|
struct iowait {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
int (*sleep)(
|
int (*sleep)(
|
||||||
|
|||||||
@@ -202,7 +202,6 @@ struct sdma_set_state_action {
|
|||||||
unsigned go_s99_running_totrue:1;
|
unsigned go_s99_running_totrue:1;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __HFI1_ORIG__
|
|
||||||
struct sdma_state {
|
struct sdma_state {
|
||||||
struct kref kref;
|
struct kref kref;
|
||||||
struct completion comp;
|
struct completion comp;
|
||||||
@@ -214,11 +213,6 @@ struct sdma_state {
|
|||||||
unsigned previous_op;
|
unsigned previous_op;
|
||||||
enum sdma_events last_event;
|
enum sdma_events last_event;
|
||||||
};
|
};
|
||||||
#else
|
|
||||||
struct sdma_state {
|
|
||||||
enum sdma_states current_state;
|
|
||||||
};
|
|
||||||
#endif /* __HFI1_ORIG__ */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOC: sdma exported routines
|
* DOC: sdma exported routines
|
||||||
@@ -334,6 +328,7 @@ struct hw_sdma_desc {
|
|||||||
* Accessing to non public fields are not supported
|
* Accessing to non public fields are not supported
|
||||||
* since the private members are subject to change.
|
* since the private members are subject to change.
|
||||||
*/
|
*/
|
||||||
|
/* The original size on Linux is 1472 B */
|
||||||
struct sdma_engine {
|
struct sdma_engine {
|
||||||
/* read mostly */
|
/* read mostly */
|
||||||
struct hfi1_devdata *dd;
|
struct hfi1_devdata *dd;
|
||||||
@@ -410,34 +405,29 @@ struct sdma_engine {
|
|||||||
/* private: */
|
/* private: */
|
||||||
struct list_head dmawait;
|
struct list_head dmawait;
|
||||||
|
|
||||||
#ifdef __HFI1_ORIG__
|
|
||||||
/* CONFIG SDMA for now, just blindly duplicate */
|
/* CONFIG SDMA for now, just blindly duplicate */
|
||||||
/* private: */
|
/* private: */
|
||||||
struct tasklet_struct sdma_hw_clean_up_task
|
struct tasklet_struct sdma_hw_clean_up_task // size 40
|
||||||
____cacheline_aligned_in_smp;
|
____cacheline_aligned_in_smp;
|
||||||
|
|
||||||
/* private: */
|
/* private: */
|
||||||
struct tasklet_struct sdma_sw_clean_up_task
|
struct tasklet_struct sdma_sw_clean_up_task
|
||||||
____cacheline_aligned_in_smp;
|
____cacheline_aligned_in_smp;
|
||||||
/* private: */
|
/* private: */
|
||||||
struct work_struct err_halt_worker;
|
char err_halt_worker[32]; // struct work_struct err_halt_worker;
|
||||||
/* private */
|
/* private */
|
||||||
struct timer_list err_progress_check_timer;
|
char err_progress_check_timer[80]; // struct timer_list err_progress_check_timer;
|
||||||
u32 progress_check_head;
|
u32 progress_check_head;
|
||||||
/* private: */
|
/* private: */
|
||||||
struct work_struct flush_worker;
|
char flush_worker[32]; // struct work_struct flush_worker;
|
||||||
#endif /* __HFI1_ORIG__ */
|
|
||||||
/* protect flush list */
|
/* protect flush list */
|
||||||
spinlock_t flushlist_lock;
|
spinlock_t flushlist_lock;
|
||||||
/* private: */
|
/* private: */
|
||||||
struct list_head flushlist;
|
struct list_head flushlist;
|
||||||
#ifdef __HFI1_ORIG__
|
char cpu_mask[640]; // struct cpusmask cpu_mask;
|
||||||
struct cpumask cpu_mask;
|
char kobj[64]; // struct kobject kobj
|
||||||
struct kobject kobj;
|
|
||||||
#endif /* __HFI1_ORIG__ */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef __HFI1_ORIG__
|
#ifdef __HFI1_ORIG__
|
||||||
|
|
||||||
int sdma_init(struct hfi1_devdata *dd, u8 port);
|
int sdma_init(struct hfi1_devdata *dd, u8 port);
|
||||||
|
|||||||
Reference in New Issue
Block a user