ioctl() investigation - TO RESET
This commit is contained in:
@@ -57,9 +57,9 @@
|
||||
#define _LINUX__HFI1_USER_H
|
||||
|
||||
#ifdef __HFI1_ORIG__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#else
|
||||
#include <mc_perf_event.h>
|
||||
#endif /* __HFI1_ORIG__ */
|
||||
|
||||
/*
|
||||
@@ -215,8 +215,6 @@ struct hfi1_cmd;
|
||||
#define HFI1_POLL_TYPE_ANYRCV 0x0
|
||||
#define HFI1_POLL_TYPE_URGENT 0x1
|
||||
|
||||
#ifdef __HFI1_ORIG__
|
||||
|
||||
/*
|
||||
* This structure is passed to the driver to tell it where
|
||||
* user code buffers are, sizes, etc. The offsets and sizes of the
|
||||
@@ -270,7 +268,6 @@ struct hfi1_tid_info {
|
||||
/* length of transfer buffer programmed by this request */
|
||||
__u32 length;
|
||||
};
|
||||
#endif /* __HFI1_ORIG__ */
|
||||
|
||||
enum hfi1_sdma_comp_state {
|
||||
FREE = 0,
|
||||
@@ -287,8 +284,6 @@ struct hfi1_sdma_comp_entry {
|
||||
__u32 errcode;
|
||||
};
|
||||
|
||||
#ifdef __HFI1_ORIG__
|
||||
|
||||
/*
|
||||
* Device status and notifications from driver to user-space.
|
||||
*/
|
||||
@@ -362,7 +357,6 @@ struct hfi1_base_info {
|
||||
__u64 subctxt_rcvegrbuf;
|
||||
__u64 subctxt_rcvhdrbuf;
|
||||
};
|
||||
#endif /* __HFI1_ORIG__ */
|
||||
|
||||
enum sdma_req_opcode {
|
||||
EXPECTED = 0,
|
||||
|
||||
@@ -88,7 +88,7 @@ static inline void kmalloc_cache_prealloc(struct kmalloc_cache_header *cache,
|
||||
kprintf("%s: pre-allocating for 0x%lx...\n",
|
||||
__FUNCTION__, cache);
|
||||
|
||||
for (i = 0; i < 256; ++i) {
|
||||
for (i = 0; i < 512; ++i) {
|
||||
struct kmalloc_header *header;
|
||||
|
||||
elem = (struct kmalloc_cache_header *)
|
||||
|
||||
Reference in New Issue
Block a user