diff options
author | Jack Steiner <steiner@sgi.com> | 2009-06-17 19:28:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:04:03 -0400 |
commit | 92b39388eeb45326feb0fa8bd69dbbce66c9efbf (patch) | |
tree | f39193cc5341dfd4ed3b807f9f802c4575822a29 /drivers/misc/sgi-gru/grulib.h | |
parent | 9f2501142bd3c496afa7efdf18583aab56fe3134 (diff) |
gru: generic infrastructure for context options
Change the user GRU request for specifying the "task_slice" option to use
a generic infrastructure that can be expanded in the future to include
additional context options. No new capabilities are added with this
patch.
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grulib.h')
-rw-r--r-- | drivers/misc/sgi-gru/grulib.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/misc/sgi-gru/grulib.h b/drivers/misc/sgi-gru/grulib.h index 8ed6acbc47c7..8615b904a7c7 100644 --- a/drivers/misc/sgi-gru/grulib.h +++ b/drivers/misc/sgi-gru/grulib.h | |||
@@ -32,8 +32,8 @@ | |||
32 | /* Set Number of Request Blocks */ | 32 | /* Set Number of Request Blocks */ |
33 | #define GRU_CREATE_CONTEXT _IOWR(GRU_IOCTL_NUM, 1, void *) | 33 | #define GRU_CREATE_CONTEXT _IOWR(GRU_IOCTL_NUM, 1, void *) |
34 | 34 | ||
35 | /* Register task as using the slice */ | 35 | /* Set Context Options */ |
36 | #define GRU_SET_TASK_SLICE _IOWR(GRU_IOCTL_NUM, 5, void *) | 36 | #define GRU_SET_CONTEXT_OPTION _IOWR(GRU_IOCTL_NUM, 4, void *) |
37 | 37 | ||
38 | /* Fetch exception detail */ | 38 | /* Fetch exception detail */ |
39 | #define GRU_USER_GET_EXCEPTION_DETAIL _IOWR(GRU_IOCTL_NUM, 6, void *) | 39 | #define GRU_USER_GET_EXCEPTION_DETAIL _IOWR(GRU_IOCTL_NUM, 6, void *) |
@@ -96,6 +96,16 @@ struct gru_unload_context_req { | |||
96 | }; | 96 | }; |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * Structure used to set context options | ||
100 | */ | ||
101 | enum {sco_gseg_owner}; | ||
102 | struct gru_set_context_option_req { | ||
103 | unsigned long gseg; | ||
104 | int op; | ||
105 | unsigned long val1; | ||
106 | }; | ||
107 | |||
108 | /* | ||
99 | * Structure used to pass TLB flush parameters to the driver | 109 | * Structure used to pass TLB flush parameters to the driver |
100 | */ | 110 | */ |
101 | struct gru_flush_tlb_req { | 111 | struct gru_flush_tlb_req { |