diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 00:49:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 00:49:07 -0500 |
commit | d8762748cae4f85b3201c0304969d993b42d5258 (patch) | |
tree | 559819d9b17e5ee305d705cf9f31ac5de2aab54a /drivers/char/drm/r128_drv.c | |
parent | ce4633704038f9bf39f20c10691747d6fc127bf4 (diff) | |
parent | a4e62fa031a9681477207b08391c3a5c5c831ce7 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6
Manual fixups for some clashes due to re-indenting.
Diffstat (limited to 'drivers/char/drm/r128_drv.c')
-rw-r--r-- | drivers/char/drm/r128_drv.c | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/drivers/char/drm/r128_drv.c b/drivers/char/drm/r128_drv.c index bc446da1b210..1661e7351402 100644 --- a/drivers/char/drm/r128_drv.c +++ b/drivers/char/drm/r128_drv.c | |||
@@ -37,30 +37,28 @@ | |||
37 | 37 | ||
38 | #include "drm_pciids.h" | 38 | #include "drm_pciids.h" |
39 | 39 | ||
40 | static int postinit( struct drm_device *dev, unsigned long flags ) | 40 | static int postinit(struct drm_device *dev, unsigned long flags) |
41 | { | 41 | { |
42 | DRM_INFO( "Initialized %s %d.%d.%d %s on minor %d: %s\n", | 42 | DRM_INFO("Initialized %s %d.%d.%d %s on minor %d: %s\n", |
43 | DRIVER_NAME, | 43 | DRIVER_NAME, |
44 | DRIVER_MAJOR, | 44 | DRIVER_MAJOR, |
45 | DRIVER_MINOR, | 45 | DRIVER_MINOR, |
46 | DRIVER_PATCHLEVEL, | 46 | DRIVER_PATCHLEVEL, |
47 | DRIVER_DATE, | 47 | DRIVER_DATE, dev->primary.minor, pci_pretty_name(dev->pdev) |
48 | dev->primary.minor, | 48 | ); |
49 | pci_pretty_name(dev->pdev) | ||
50 | ); | ||
51 | return 0; | 49 | return 0; |
52 | } | 50 | } |
53 | 51 | ||
54 | static int version( drm_version_t *version ) | 52 | static int version(drm_version_t * version) |
55 | { | 53 | { |
56 | int len; | 54 | int len; |
57 | 55 | ||
58 | version->version_major = DRIVER_MAJOR; | 56 | version->version_major = DRIVER_MAJOR; |
59 | version->version_minor = DRIVER_MINOR; | 57 | version->version_minor = DRIVER_MINOR; |
60 | version->version_patchlevel = DRIVER_PATCHLEVEL; | 58 | version->version_patchlevel = DRIVER_PATCHLEVEL; |
61 | DRM_COPY( version->name, DRIVER_NAME ); | 59 | DRM_COPY(version->name, DRIVER_NAME); |
62 | DRM_COPY( version->date, DRIVER_DATE ); | 60 | DRM_COPY(version->date, DRIVER_DATE); |
63 | DRM_COPY( version->desc, DRIVER_DESC ); | 61 | DRM_COPY(version->desc, DRIVER_DESC); |
64 | return 0; | 62 | return 0; |
65 | } | 63 | } |
66 | 64 | ||
@@ -68,11 +66,11 @@ static struct pci_device_id pciidlist[] = { | |||
68 | r128_PCI_IDS | 66 | r128_PCI_IDS |
69 | }; | 67 | }; |
70 | 68 | ||
71 | extern drm_ioctl_desc_t r128_ioctls[]; | ||
72 | extern int r128_max_ioctl; | ||
73 | |||
74 | static struct drm_driver driver = { | 69 | static struct drm_driver driver = { |
75 | .driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | DRIVER_HAVE_DMA | DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_IRQ_VBL, | 70 | .driver_features = |
71 | DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | | ||
72 | DRIVER_HAVE_DMA | DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | | ||
73 | DRIVER_IRQ_VBL, | ||
76 | .dev_priv_size = sizeof(drm_r128_buf_priv_t), | 74 | .dev_priv_size = sizeof(drm_r128_buf_priv_t), |
77 | .prerelease = r128_driver_prerelease, | 75 | .prerelease = r128_driver_prerelease, |
78 | .pretakedown = r128_driver_pretakedown, | 76 | .pretakedown = r128_driver_pretakedown, |
@@ -89,21 +87,22 @@ static struct drm_driver driver = { | |||
89 | .ioctls = r128_ioctls, | 87 | .ioctls = r128_ioctls, |
90 | .dma_ioctl = r128_cce_buffers, | 88 | .dma_ioctl = r128_cce_buffers, |
91 | .fops = { | 89 | .fops = { |
92 | .owner = THIS_MODULE, | 90 | .owner = THIS_MODULE, |
93 | .open = drm_open, | 91 | .open = drm_open, |
94 | .release = drm_release, | 92 | .release = drm_release, |
95 | .ioctl = drm_ioctl, | 93 | .ioctl = drm_ioctl, |
96 | .mmap = drm_mmap, | 94 | .mmap = drm_mmap, |
97 | .poll = drm_poll, | 95 | .poll = drm_poll, |
98 | .fasync = drm_fasync, | 96 | .fasync = drm_fasync, |
99 | #ifdef CONFIG_COMPAT | 97 | #ifdef CONFIG_COMPAT |
100 | .compat_ioctl = r128_compat_ioctl, | 98 | .compat_ioctl = r128_compat_ioctl, |
101 | #endif | 99 | #endif |
102 | }, | 100 | } |
101 | , | ||
103 | .pci_driver = { | 102 | .pci_driver = { |
104 | .name = DRIVER_NAME, | 103 | .name = DRIVER_NAME, |
105 | .id_table = pciidlist, | 104 | .id_table = pciidlist, |
106 | } | 105 | } |
107 | }; | 106 | }; |
108 | 107 | ||
109 | static int __init r128_init(void) | 108 | static int __init r128_init(void) |
@@ -120,6 +119,6 @@ static void __exit r128_exit(void) | |||
120 | module_init(r128_init); | 119 | module_init(r128_init); |
121 | module_exit(r128_exit); | 120 | module_exit(r128_exit); |
122 | 121 | ||
123 | MODULE_AUTHOR( DRIVER_AUTHOR ); | 122 | MODULE_AUTHOR(DRIVER_AUTHOR); |
124 | MODULE_DESCRIPTION( DRIVER_DESC ); | 123 | MODULE_DESCRIPTION(DRIVER_DESC); |
125 | MODULE_LICENSE("GPL and additional rights"); | 124 | MODULE_LICENSE("GPL and additional rights"); |