diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/gpu/drm/r128 | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/gpu/drm/r128')
-rw-r--r-- | drivers/gpu/drm/r128/r128_cce.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_drv.c | 41 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_ioc32.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_irq.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_state.c | 5 |
5 files changed, 32 insertions, 30 deletions
diff --git a/drivers/gpu/drm/r128/r128_cce.c b/drivers/gpu/drm/r128/r128_cce.c index d4660cf942a..570e190710b 100644 --- a/drivers/gpu/drm/r128/r128_cce.c +++ b/drivers/gpu/drm/r128/r128_cce.c | |||
@@ -32,10 +32,10 @@ | |||
32 | #include <linux/firmware.h> | 32 | #include <linux/firmware.h> |
33 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/module.h> | ||
36 | 35 | ||
37 | #include <drm/drmP.h> | 36 | #include "drmP.h" |
38 | #include <drm/r128_drm.h> | 37 | #include "drm.h" |
38 | #include "r128_drm.h" | ||
39 | #include "r128_drv.h" | 39 | #include "r128_drv.h" |
40 | 40 | ||
41 | #define R128_FIFO_DEBUG 0 | 41 | #define R128_FIFO_DEBUG 0 |
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c index 472c38fe123..b9e8efd2b75 100644 --- a/drivers/gpu/drm/r128/r128_drv.c +++ b/drivers/gpu/drm/r128/r128_drv.c | |||
@@ -29,32 +29,17 @@ | |||
29 | * Gareth Hughes <gareth@valinux.com> | 29 | * Gareth Hughes <gareth@valinux.com> |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include "drmP.h" |
33 | 33 | #include "drm.h" | |
34 | #include <drm/drmP.h> | 34 | #include "r128_drm.h" |
35 | #include <drm/r128_drm.h> | ||
36 | #include "r128_drv.h" | 35 | #include "r128_drv.h" |
37 | 36 | ||
38 | #include <drm/drm_pciids.h> | 37 | #include "drm_pciids.h" |
39 | 38 | ||
40 | static struct pci_device_id pciidlist[] = { | 39 | static struct pci_device_id pciidlist[] = { |
41 | r128_PCI_IDS | 40 | r128_PCI_IDS |
42 | }; | 41 | }; |
43 | 42 | ||
44 | static const struct file_operations r128_driver_fops = { | ||
45 | .owner = THIS_MODULE, | ||
46 | .open = drm_open, | ||
47 | .release = drm_release, | ||
48 | .unlocked_ioctl = drm_ioctl, | ||
49 | .mmap = drm_mmap, | ||
50 | .poll = drm_poll, | ||
51 | .fasync = drm_fasync, | ||
52 | #ifdef CONFIG_COMPAT | ||
53 | .compat_ioctl = r128_compat_ioctl, | ||
54 | #endif | ||
55 | .llseek = noop_llseek, | ||
56 | }; | ||
57 | |||
58 | static struct drm_driver driver = { | 43 | static struct drm_driver driver = { |
59 | .driver_features = | 44 | .driver_features = |
60 | DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | | 45 | DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | |
@@ -70,9 +55,24 @@ static struct drm_driver driver = { | |||
70 | .irq_postinstall = r128_driver_irq_postinstall, | 55 | .irq_postinstall = r128_driver_irq_postinstall, |
71 | .irq_uninstall = r128_driver_irq_uninstall, | 56 | .irq_uninstall = r128_driver_irq_uninstall, |
72 | .irq_handler = r128_driver_irq_handler, | 57 | .irq_handler = r128_driver_irq_handler, |
58 | .reclaim_buffers = drm_core_reclaim_buffers, | ||
73 | .ioctls = r128_ioctls, | 59 | .ioctls = r128_ioctls, |
74 | .dma_ioctl = r128_cce_buffers, | 60 | .dma_ioctl = r128_cce_buffers, |
75 | .fops = &r128_driver_fops, | 61 | .fops = { |
62 | .owner = THIS_MODULE, | ||
63 | .open = drm_open, | ||
64 | .release = drm_release, | ||
65 | .unlocked_ioctl = drm_ioctl, | ||
66 | .mmap = drm_mmap, | ||
67 | .poll = drm_poll, | ||
68 | .fasync = drm_fasync, | ||
69 | #ifdef CONFIG_COMPAT | ||
70 | .compat_ioctl = r128_compat_ioctl, | ||
71 | #endif | ||
72 | .llseek = noop_llseek, | ||
73 | }, | ||
74 | |||
75 | |||
76 | .name = DRIVER_NAME, | 76 | .name = DRIVER_NAME, |
77 | .desc = DRIVER_DESC, | 77 | .desc = DRIVER_DESC, |
78 | .date = DRIVER_DATE, | 78 | .date = DRIVER_DATE, |
@@ -83,7 +83,6 @@ static struct drm_driver driver = { | |||
83 | 83 | ||
84 | int r128_driver_load(struct drm_device *dev, unsigned long flags) | 84 | int r128_driver_load(struct drm_device *dev, unsigned long flags) |
85 | { | 85 | { |
86 | pci_set_master(dev->pdev); | ||
87 | return drm_vblank_init(dev, 1); | 86 | return drm_vblank_init(dev, 1); |
88 | } | 87 | } |
89 | 88 | ||
diff --git a/drivers/gpu/drm/r128/r128_ioc32.c b/drivers/gpu/drm/r128/r128_ioc32.c index a954c548201..51c99fc4dd3 100644 --- a/drivers/gpu/drm/r128/r128_ioc32.c +++ b/drivers/gpu/drm/r128/r128_ioc32.c | |||
@@ -31,8 +31,9 @@ | |||
31 | */ | 31 | */ |
32 | #include <linux/compat.h> | 32 | #include <linux/compat.h> |
33 | 33 | ||
34 | #include <drm/drmP.h> | 34 | #include "drmP.h" |
35 | #include <drm/r128_drm.h> | 35 | #include "drm.h" |
36 | #include "r128_drm.h" | ||
36 | 37 | ||
37 | typedef struct drm_r128_init32 { | 38 | typedef struct drm_r128_init32 { |
38 | int func; | 39 | int func; |
diff --git a/drivers/gpu/drm/r128/r128_irq.c b/drivers/gpu/drm/r128/r128_irq.c index 2ea4f09d269..429d5a02695 100644 --- a/drivers/gpu/drm/r128/r128_irq.c +++ b/drivers/gpu/drm/r128/r128_irq.c | |||
@@ -30,8 +30,9 @@ | |||
30 | * Eric Anholt <anholt@FreeBSD.org> | 30 | * Eric Anholt <anholt@FreeBSD.org> |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <drm/drmP.h> | 33 | #include "drmP.h" |
34 | #include <drm/r128_drm.h> | 34 | #include "drm.h" |
35 | #include "r128_drm.h" | ||
35 | #include "r128_drv.h" | 36 | #include "r128_drv.h" |
36 | 37 | ||
37 | u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) | 38 | u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) |
diff --git a/drivers/gpu/drm/r128/r128_state.c b/drivers/gpu/drm/r128/r128_state.c index 19bb7e6f3d9..a9e33ce6591 100644 --- a/drivers/gpu/drm/r128/r128_state.c +++ b/drivers/gpu/drm/r128/r128_state.c | |||
@@ -28,8 +28,9 @@ | |||
28 | * Gareth Hughes <gareth@valinux.com> | 28 | * Gareth Hughes <gareth@valinux.com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <drm/drmP.h> | 31 | #include "drmP.h" |
32 | #include <drm/r128_drm.h> | 32 | #include "drm.h" |
33 | #include "r128_drm.h" | ||
33 | #include "r128_drv.h" | 34 | #include "r128_drv.h" |
34 | 35 | ||
35 | /* ================================================================ | 36 | /* ================================================================ |