Rev 6131 | Rev 6296 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6131 | Rev 6283 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #include "getopt.h" |
12 | #include "getopt.h" |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | #include "bitmap.h" |
14 | #include "bitmap.h" |
Line 15... | Line 15... | ||
15 | #include "i915_kos32.h" |
15 | #include "i915_kos32.h" |
Line 16... | Line 16... | ||
16 | 16 | ||
17 | #define DRV_NAME "i915 v4.4.1" |
17 | #define DRV_NAME "i915 v4.4.2-dbg2" |
18 | 18 | ||
Line 129... | Line 129... | ||
129 | }; |
129 | }; |
Line 130... | Line 130... | ||
130 | 130 | ||
131 | if( GetService("DISPLAY") != 0 ) |
131 | if( GetService("DISPLAY") != 0 ) |
Line 132... | Line 132... | ||
132 | return 0; |
132 | return 0; |
133 | - | ||
134 | printf("\n%s build %s %s\nusage: i915 [options]\n" |
- | |
135 | "-f\n" |
133 | |
Line 136... | Line 134... | ||
136 | "--fbsize <0-9> Set framebuffer size in megabytes (default: 16)\n", |
134 | printf("\n%s build %s %s\nusage: i915 [options]\n", |
137 | DRV_NAME, __DATE__, __TIME__); |
135 | DRV_NAME, __DATE__, __TIME__); |
138 | 136 | ||
Line 170... | Line 168... | ||
170 | { |
168 | { |
171 | static struct option long_options[] = |
169 | static struct option long_options[] = |
172 | { |
170 | { |
173 | {"log", required_argument, 0, 'l'}, |
171 | {"log", required_argument, 0, 'l'}, |
174 | {"mode", required_argument, 0, 'm'}, |
172 | {"mode", required_argument, 0, 'm'}, |
175 | {"fbsize",required_argument, 0, 'f'}, |
- | |
176 | {"video", required_argument, 0, 'v'}, |
173 | {"video", required_argument, 0, 'v'}, |
177 | {"rc6", required_argument, 0, OPTION_RC6}, |
174 | {"rc6", required_argument, 0, OPTION_RC6}, |
178 | {"fbc", required_argument, 0, OPTION_FBC}, |
175 | {"fbc", required_argument, 0, OPTION_FBC}, |
179 | {0, 0, 0, 0} |
176 | {0, 0, 0, 0} |
180 | }; |
177 | }; |
Line 181... | Line 178... | ||
181 | 178 | ||
Line 182... | Line 179... | ||
182 | int option_index = 0; |
179 | int option_index = 0; |
183 | 180 | ||
Line 184... | Line 181... | ||
184 | c = getopt_long (argc, argv, "f:l:m:v:", |
181 | c = getopt_long (argc, argv, "l:m:v:", |
185 | long_options, &option_index); |
182 | long_options, &option_index); |
Line 197... | Line 194... | ||
197 | case OPTION_FBC: |
194 | case OPTION_FBC: |
198 | i915.enable_fbc = my_atoi(&optarg); |
195 | i915.enable_fbc = my_atoi(&optarg); |
199 | printf("i915.fbc = %d\n",i915.enable_fbc); |
196 | printf("i915.fbc = %d\n",i915.enable_fbc); |
200 | break; |
197 | break; |
Line 201... | Line -... | ||
201 | - | ||
202 | case 'f': |
- | |
203 | i915.fbsize = my_atoi(&optarg); |
- | |
204 | printf("i915.fbsize =%d\n",i915.fbsize); |
- | |
205 | break; |
- | |
206 | 198 | ||
207 | case 'l': |
199 | case 'l': |
208 | i915.log_file = optarg; |
200 | i915.log_file = optarg; |
Line 209... | Line 201... | ||
209 | break; |
201 | break; |