Rev 6320 | Rev 6935 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6320 | Rev 6660 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | #include |
7 | #include |
8 | #include |
8 | #include |
9 | #include |
9 | #include |
- | 10 | #include |
|
- | 11 | #include |
|
Line 10... | Line 12... | ||
10 | #include |
12 | #include "../drm_internal.h" |
Line 11... | Line 13... | ||
11 | 13 | ||
12 | #include "getopt.h" |
14 | #include "getopt.h" |
Line 13... | Line 15... | ||
13 | 15 | ||
Line 14... | Line 16... | ||
14 | #include "bitmap.h" |
16 | #include "bitmap.h" |
15 | #include "i915_kos32.h" |
17 | #include "i915_kos32.h" |
16 | 18 | ||
Line 17... | Line 19... | ||
17 | #define DRV_NAME "i915 v4.4.5" |
19 | #define DRV_NAME "i915 v4.4.30" |
18 | 20 | ||
19 | #define I915_DEV_CLOSE 0 |
21 | #define I915_DEV_CLOSE 0 |
20 | #define I915_DEV_INIT 1 |
22 | #define I915_DEV_INIT 1 |
- | 23 | #define I915_DEV_READY 2 |
|
- | 24 | ||
- | 25 | static int my_atoi(char **cmd); |
|
- | 26 | static char* parse_mode(char *p, videomode_t *mode); |
|
- | 27 | void cpu_detect1(); |
|
- | 28 | int kmap_init(); |
|
- | 29 | int fake_framebuffer_create(); |
|
- | 30 | int i915_init(void); |
|
- | 31 | int init_display_kms(struct drm_device *dev, videomode_t *usermode); |
|
- | 32 | int get_videomodes(videomode_t *mode, int *count); |
|
Line 21... | Line 33... | ||
21 | #define I915_DEV_READY 2 |
33 | int set_user_mode(videomode_t *mode); |
22 | 34 | int i915_fbinfo(struct drm_i915_fb_info *fb); |
|
23 | static int my_atoi(char **cmd); |
35 | int i915_mask_update_ex(struct drm_device *dev, void *data, |
24 | static char* parse_mode(char *p, videomode_t *mode); |
36 | struct drm_file *file); |
Line 532... | Line 544... | ||
532 | case SRV_I915_REG_READ: |
544 | case SRV_I915_REG_READ: |
533 | retval = i915_reg_read_ioctl(main_device, inp, file); |
545 | retval = i915_reg_read_ioctl(main_device, inp, file); |
534 | break; |
546 | break; |
Line 535... | Line 547... | ||
535 | 547 | ||
536 | case SRV_FBINFO: |
548 | case SRV_FBINFO: |
537 | retval = i915_fbinfo(inp); |
549 | retval = i915_fbinfo((struct drm_i915_fb_info*)inp); |
Line 538... | Line 550... | ||
538 | break; |
550 | break; |
539 | 551 | ||
540 | case SRV_MASK_UPDATE: |
552 | case SRV_MASK_UPDATE: |