2 * Samsung S5P G2D - 2D Graphics Accelerator Driver
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
5 * Kamil Debski, <k.debski@samsung.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version
13 #include <linux/module.h>
15 #include <linux/version.h>
16 #include <linux/timer.h>
17 #include <linux/sched.h>
18 #include <linux/slab.h>
19 #include <linux/clk.h>
20 #include <linux/interrupt.h>
22 #include <linux/platform_device.h>
23 #include <media/v4l2-mem2mem.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-ioctl.h>
26 #include <media/videobuf2-core.h>
27 #include <media/videobuf2-dma-contig.h>
32 #define fh2ctx(__fh) container_of(__fh, struct g2d_ctx, fh)
34 static struct g2d_fmt formats[] = {
37 .fourcc = V4L2_PIX_FMT_RGB32,
39 .hw = COLOR_MODE(ORDER_XRGB, MODE_XRGB_8888),
43 .fourcc = V4L2_PIX_FMT_RGB565X,
45 .hw = COLOR_MODE(ORDER_XRGB, MODE_RGB_565),
49 .fourcc = V4L2_PIX_FMT_RGB555X,
51 .hw = COLOR_MODE(ORDER_XRGB, MODE_XRGB_1555),
55 .fourcc = V4L2_PIX_FMT_RGB444,
57 .hw = COLOR_MODE(ORDER_XRGB, MODE_XRGB_4444),
60 .name = "PACKED_RGB_888",
61 .fourcc = V4L2_PIX_FMT_RGB24,
63 .hw = COLOR_MODE(ORDER_XRGB, MODE_PACKED_RGB_888),
66 #define NUM_FORMATS ARRAY_SIZE(formats)
68 static struct g2d_frame def_frame = {
69 .width = DEFAULT_WIDTH,
70 .height = DEFAULT_HEIGHT,
71 .c_width = DEFAULT_WIDTH,
72 .c_height = DEFAULT_HEIGHT,
76 .right = DEFAULT_WIDTH,
77 .bottom = DEFAULT_HEIGHT,
80 static struct g2d_fmt *find_fmt(struct v4l2_format *f)
83 for (i = 0; i < NUM_FORMATS; i++) {
84 if (formats[i].fourcc == f->fmt.pix.pixelformat)
91 static struct g2d_frame *get_frame(struct g2d_ctx *ctx,
92 enum v4l2_buf_type type)
95 case V4L2_BUF_TYPE_VIDEO_OUTPUT:
97 case V4L2_BUF_TYPE_VIDEO_CAPTURE:
100 return ERR_PTR(-EINVAL);
104 static int g2d_queue_setup(struct vb2_queue *vq, const struct v4l2_format *fmt,
105 unsigned int *nbuffers, unsigned int *nplanes,
106 unsigned int sizes[], void *alloc_ctxs[])
108 struct g2d_ctx *ctx = vb2_get_drv_priv(vq);
109 struct g2d_frame *f = get_frame(ctx, vq->type);
116 alloc_ctxs[0] = ctx->dev->alloc_ctx;
124 static int g2d_buf_prepare(struct vb2_buffer *vb)
126 struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
127 struct g2d_frame *f = get_frame(ctx, vb->vb2_queue->type);
131 vb2_set_plane_payload(vb, 0, f->size);
135 static void g2d_buf_queue(struct vb2_buffer *vb)
137 struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
138 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb);
142 static struct vb2_ops g2d_qops = {
143 .queue_setup = g2d_queue_setup,
144 .buf_prepare = g2d_buf_prepare,
145 .buf_queue = g2d_buf_queue,
148 static int queue_init(void *priv, struct vb2_queue *src_vq,
149 struct vb2_queue *dst_vq)
151 struct g2d_ctx *ctx = priv;
154 memset(src_vq, 0, sizeof(*src_vq));
155 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
156 src_vq->io_modes = VB2_MMAP | VB2_USERPTR;
157 src_vq->drv_priv = ctx;
158 src_vq->ops = &g2d_qops;
159 src_vq->mem_ops = &vb2_dma_contig_memops;
160 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
162 ret = vb2_queue_init(src_vq);
166 memset(dst_vq, 0, sizeof(*dst_vq));
167 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
168 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR;
169 dst_vq->drv_priv = ctx;
170 dst_vq->ops = &g2d_qops;
171 dst_vq->mem_ops = &vb2_dma_contig_memops;
172 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
174 return vb2_queue_init(dst_vq);
177 static int g2d_s_ctrl(struct v4l2_ctrl *ctrl)
179 struct g2d_ctx *ctx = container_of(ctrl->handler, struct g2d_ctx,
183 spin_lock_irqsave(&ctx->dev->ctrl_lock, flags);
185 case V4L2_CID_COLORFX:
186 if (ctrl->val == V4L2_COLORFX_NEGATIVE)
187 ctx->rop = ROP4_INVERT;
189 ctx->rop = ROP4_COPY;
193 ctx->flip = ctx->ctrl_hflip->val | (ctx->ctrl_vflip->val << 1);
197 spin_unlock_irqrestore(&ctx->dev->ctrl_lock, flags);
201 static const struct v4l2_ctrl_ops g2d_ctrl_ops = {
202 .s_ctrl = g2d_s_ctrl,
205 static int g2d_setup_ctrls(struct g2d_ctx *ctx)
207 struct g2d_dev *dev = ctx->dev;
209 v4l2_ctrl_handler_init(&ctx->ctrl_handler, 3);
211 ctx->ctrl_hflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, &g2d_ctrl_ops,
212 V4L2_CID_HFLIP, 0, 1, 1, 0);
214 ctx->ctrl_vflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, &g2d_ctrl_ops,
215 V4L2_CID_VFLIP, 0, 1, 1, 0);
217 v4l2_ctrl_new_std_menu(
221 V4L2_COLORFX_NEGATIVE,
222 ~((1 << V4L2_COLORFX_NONE) | (1 << V4L2_COLORFX_NEGATIVE)),
225 if (ctx->ctrl_handler.error) {
226 int err = ctx->ctrl_handler.error;
227 v4l2_err(&dev->v4l2_dev, "g2d_setup_ctrls failed\n");
228 v4l2_ctrl_handler_free(&ctx->ctrl_handler);
232 v4l2_ctrl_cluster(2, &ctx->ctrl_hflip);
237 static int g2d_open(struct file *file)
239 struct g2d_dev *dev = video_drvdata(file);
240 struct g2d_ctx *ctx = NULL;
243 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
247 /* Set default formats */
249 ctx->out = def_frame;
251 ctx->m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init);
252 if (IS_ERR(ctx->m2m_ctx)) {
253 ret = PTR_ERR(ctx->m2m_ctx);
257 v4l2_fh_init(&ctx->fh, video_devdata(file));
258 file->private_data = &ctx->fh;
259 v4l2_fh_add(&ctx->fh);
261 g2d_setup_ctrls(ctx);
263 /* Write the default values to the ctx struct */
264 v4l2_ctrl_handler_setup(&ctx->ctrl_handler);
266 ctx->fh.ctrl_handler = &ctx->ctrl_handler;
268 v4l2_info(&dev->v4l2_dev, "instance opened\n");
272 static int g2d_release(struct file *file)
274 struct g2d_dev *dev = video_drvdata(file);
275 struct g2d_ctx *ctx = fh2ctx(file->private_data);
277 v4l2_ctrl_handler_free(&ctx->ctrl_handler);
278 v4l2_fh_del(&ctx->fh);
279 v4l2_fh_exit(&ctx->fh);
281 v4l2_info(&dev->v4l2_dev, "instance closed\n");
286 static int vidioc_querycap(struct file *file, void *priv,
287 struct v4l2_capability *cap)
289 strncpy(cap->driver, G2D_NAME, sizeof(cap->driver) - 1);
290 strncpy(cap->card, G2D_NAME, sizeof(cap->card) - 1);
291 cap->bus_info[0] = 0;
292 cap->version = KERNEL_VERSION(1, 0, 0);
294 * This is only a mem-to-mem video device. The capture and output
295 * device capability flags are left only for backward compatibility
296 * and are scheduled for removal.
298 cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT |
299 V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
303 static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
306 if (f->index >= NUM_FORMATS)
308 fmt = &formats[f->index];
309 f->pixelformat = fmt->fourcc;
310 strncpy(f->description, fmt->name, sizeof(f->description) - 1);
314 static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
316 struct g2d_ctx *ctx = prv;
317 struct vb2_queue *vq;
318 struct g2d_frame *frm;
320 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type);
323 frm = get_frame(ctx, f->type);
327 f->fmt.pix.width = frm->width;
328 f->fmt.pix.height = frm->height;
329 f->fmt.pix.field = V4L2_FIELD_NONE;
330 f->fmt.pix.pixelformat = frm->fmt->fourcc;
331 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3;
332 f->fmt.pix.sizeimage = frm->size;
336 static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
339 enum v4l2_field *field;
345 field = &f->fmt.pix.field;
346 if (*field == V4L2_FIELD_ANY)
347 *field = V4L2_FIELD_NONE;
348 else if (*field != V4L2_FIELD_NONE)
351 if (f->fmt.pix.width > MAX_WIDTH)
352 f->fmt.pix.width = MAX_WIDTH;
353 if (f->fmt.pix.height > MAX_HEIGHT)
354 f->fmt.pix.height = MAX_HEIGHT;
356 if (f->fmt.pix.width < 1)
357 f->fmt.pix.width = 1;
358 if (f->fmt.pix.height < 1)
359 f->fmt.pix.height = 1;
361 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3;
362 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
366 static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
368 struct g2d_ctx *ctx = prv;
369 struct g2d_dev *dev = ctx->dev;
370 struct vb2_queue *vq;
371 struct g2d_frame *frm;
375 /* Adjust all values accordingly to the hardware capabilities
376 * and chosen format. */
377 ret = vidioc_try_fmt(file, prv, f);
380 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type);
381 if (vb2_is_busy(vq)) {
382 v4l2_err(&dev->v4l2_dev, "queue (%d) bust\n", f->type);
385 frm = get_frame(ctx, f->type);
391 frm->width = f->fmt.pix.width;
392 frm->height = f->fmt.pix.height;
393 frm->size = f->fmt.pix.sizeimage;
394 /* Reset crop settings */
397 frm->c_width = frm->width;
398 frm->c_height = frm->height;
399 frm->right = frm->width;
400 frm->bottom = frm->height;
402 frm->stride = f->fmt.pix.bytesperline;
406 static unsigned int g2d_poll(struct file *file, struct poll_table_struct *wait)
408 struct g2d_ctx *ctx = fh2ctx(file->private_data);
409 return v4l2_m2m_poll(file, ctx->m2m_ctx, wait);
412 static int g2d_mmap(struct file *file, struct vm_area_struct *vma)
414 struct g2d_ctx *ctx = fh2ctx(file->private_data);
415 return v4l2_m2m_mmap(file, ctx->m2m_ctx, vma);
418 static int vidioc_reqbufs(struct file *file, void *priv,
419 struct v4l2_requestbuffers *reqbufs)
421 struct g2d_ctx *ctx = priv;
422 return v4l2_m2m_reqbufs(file, ctx->m2m_ctx, reqbufs);
425 static int vidioc_querybuf(struct file *file, void *priv,
426 struct v4l2_buffer *buf)
428 struct g2d_ctx *ctx = priv;
429 return v4l2_m2m_querybuf(file, ctx->m2m_ctx, buf);
432 static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
434 struct g2d_ctx *ctx = priv;
435 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf);
438 static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
440 struct g2d_ctx *ctx = priv;
441 return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
445 static int vidioc_streamon(struct file *file, void *priv,
446 enum v4l2_buf_type type)
448 struct g2d_ctx *ctx = priv;
449 return v4l2_m2m_streamon(file, ctx->m2m_ctx, type);
452 static int vidioc_streamoff(struct file *file, void *priv,
453 enum v4l2_buf_type type)
455 struct g2d_ctx *ctx = priv;
456 return v4l2_m2m_streamoff(file, ctx->m2m_ctx, type);
459 static int vidioc_cropcap(struct file *file, void *priv,
460 struct v4l2_cropcap *cr)
462 struct g2d_ctx *ctx = priv;
465 f = get_frame(ctx, cr->type);
471 cr->bounds.width = f->width;
472 cr->bounds.height = f->height;
473 cr->defrect = cr->bounds;
477 static int vidioc_g_crop(struct file *file, void *prv, struct v4l2_crop *cr)
479 struct g2d_ctx *ctx = prv;
482 f = get_frame(ctx, cr->type);
486 cr->c.left = f->o_height;
487 cr->c.top = f->o_width;
488 cr->c.width = f->c_width;
489 cr->c.height = f->c_height;
493 static int vidioc_try_crop(struct file *file, void *prv, struct v4l2_crop *cr)
495 struct g2d_ctx *ctx = prv;
496 struct g2d_dev *dev = ctx->dev;
499 f = get_frame(ctx, cr->type);
503 if (cr->c.top < 0 || cr->c.left < 0) {
504 v4l2_err(&dev->v4l2_dev,
505 "doesn't support negative values for top & left\n");
512 static int vidioc_s_crop(struct file *file, void *prv, struct v4l2_crop *cr)
514 struct g2d_ctx *ctx = prv;
518 ret = vidioc_try_crop(file, prv, cr);
521 f = get_frame(ctx, cr->type);
525 f->c_width = cr->c.width;
526 f->c_height = cr->c.height;
527 f->o_width = cr->c.left;
528 f->o_height = cr->c.top;
529 f->bottom = f->o_height + f->c_height;
530 f->right = f->o_width + f->c_width;
534 static void g2d_lock(void *prv)
536 struct g2d_ctx *ctx = prv;
537 struct g2d_dev *dev = ctx->dev;
538 mutex_lock(&dev->mutex);
541 static void g2d_unlock(void *prv)
543 struct g2d_ctx *ctx = prv;
544 struct g2d_dev *dev = ctx->dev;
545 mutex_unlock(&dev->mutex);
548 static void job_abort(void *prv)
550 struct g2d_ctx *ctx = prv;
551 struct g2d_dev *dev = ctx->dev;
554 if (dev->curr == NULL) /* No job currently running */
557 ret = wait_event_timeout(dev->irq_queue,
559 msecs_to_jiffies(G2D_TIMEOUT));
562 static void device_run(void *prv)
564 struct g2d_ctx *ctx = prv;
565 struct g2d_dev *dev = ctx->dev;
566 struct vb2_buffer *src, *dst;
572 src = v4l2_m2m_next_src_buf(ctx->m2m_ctx);
573 dst = v4l2_m2m_next_dst_buf(ctx->m2m_ctx);
575 clk_enable(dev->gate);
578 spin_lock_irqsave(&dev->ctrl_lock, flags);
580 g2d_set_src_size(dev, &ctx->in);
581 g2d_set_src_addr(dev, vb2_dma_contig_plane_dma_addr(src, 0));
583 g2d_set_dst_size(dev, &ctx->out);
584 g2d_set_dst_addr(dev, vb2_dma_contig_plane_dma_addr(dst, 0));
586 g2d_set_rop4(dev, ctx->rop);
587 g2d_set_flip(dev, ctx->flip);
589 if (ctx->in.c_width != ctx->out.c_width ||
590 ctx->in.c_height != ctx->out.c_height)
591 cmd |= g2d_cmd_stretch(1);
592 g2d_set_cmd(dev, cmd);
595 spin_unlock_irqrestore(&dev->ctrl_lock, flags);
598 static irqreturn_t g2d_isr(int irq, void *prv)
600 struct g2d_dev *dev = prv;
601 struct g2d_ctx *ctx = dev->curr;
602 struct vb2_buffer *src, *dst;
605 clk_disable(dev->gate);
609 src = v4l2_m2m_src_buf_remove(ctx->m2m_ctx);
610 dst = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx);
615 v4l2_m2m_buf_done(src, VB2_BUF_STATE_DONE);
616 v4l2_m2m_buf_done(dst, VB2_BUF_STATE_DONE);
617 v4l2_m2m_job_finish(dev->m2m_dev, ctx->m2m_ctx);
620 wake_up(&dev->irq_queue);
624 static const struct v4l2_file_operations g2d_fops = {
625 .owner = THIS_MODULE,
627 .release = g2d_release,
629 .unlocked_ioctl = video_ioctl2,
633 static const struct v4l2_ioctl_ops g2d_ioctl_ops = {
634 .vidioc_querycap = vidioc_querycap,
636 .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt,
637 .vidioc_g_fmt_vid_cap = vidioc_g_fmt,
638 .vidioc_try_fmt_vid_cap = vidioc_try_fmt,
639 .vidioc_s_fmt_vid_cap = vidioc_s_fmt,
641 .vidioc_enum_fmt_vid_out = vidioc_enum_fmt,
642 .vidioc_g_fmt_vid_out = vidioc_g_fmt,
643 .vidioc_try_fmt_vid_out = vidioc_try_fmt,
644 .vidioc_s_fmt_vid_out = vidioc_s_fmt,
646 .vidioc_reqbufs = vidioc_reqbufs,
647 .vidioc_querybuf = vidioc_querybuf,
649 .vidioc_qbuf = vidioc_qbuf,
650 .vidioc_dqbuf = vidioc_dqbuf,
652 .vidioc_streamon = vidioc_streamon,
653 .vidioc_streamoff = vidioc_streamoff,
655 .vidioc_g_crop = vidioc_g_crop,
656 .vidioc_s_crop = vidioc_s_crop,
657 .vidioc_cropcap = vidioc_cropcap,
660 static struct video_device g2d_videodev = {
663 .ioctl_ops = &g2d_ioctl_ops,
665 .release = video_device_release,
668 static struct v4l2_m2m_ops g2d_m2m_ops = {
669 .device_run = device_run,
670 .job_abort = job_abort,
672 .unlock = g2d_unlock,
675 static int g2d_probe(struct platform_device *pdev)
678 struct video_device *vfd;
679 struct resource *res;
682 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
686 spin_lock_init(&dev->ctrl_lock);
687 mutex_init(&dev->mutex);
688 atomic_set(&dev->num_inst, 0);
689 init_waitqueue_head(&dev->irq_queue);
691 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
693 dev->regs = devm_request_and_ioremap(&pdev->dev, res);
694 if (dev->regs == NULL) {
695 dev_err(&pdev->dev, "Failed to obtain io memory\n");
699 dev->clk = clk_get(&pdev->dev, "sclk_fimg2d");
700 if (IS_ERR_OR_NULL(dev->clk)) {
701 dev_err(&pdev->dev, "failed to get g2d clock\n");
705 ret = clk_prepare(dev->clk);
707 dev_err(&pdev->dev, "failed to prepare g2d clock\n");
711 dev->gate = clk_get(&pdev->dev, "fimg2d");
712 if (IS_ERR_OR_NULL(dev->gate)) {
713 dev_err(&pdev->dev, "failed to get g2d clock gate\n");
718 ret = clk_prepare(dev->gate);
720 dev_err(&pdev->dev, "failed to prepare g2d clock gate\n");
724 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
726 dev_err(&pdev->dev, "failed to find IRQ\n");
728 goto unprep_clk_gate;
731 dev->irq = res->start;
733 ret = devm_request_irq(&pdev->dev, dev->irq, g2d_isr,
736 dev_err(&pdev->dev, "failed to install IRQ\n");
740 dev->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev);
741 if (IS_ERR(dev->alloc_ctx)) {
742 ret = PTR_ERR(dev->alloc_ctx);
743 goto unprep_clk_gate;
746 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev);
748 goto alloc_ctx_cleanup;
749 vfd = video_device_alloc();
751 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n");
756 /* Locking in file operations other than ioctl should be done
757 by the driver, not the V4L2 core.
758 This driver needs auditing so that this flag can be removed. */
759 set_bit(V4L2_FL_LOCK_ALL_FOPS, &vfd->flags);
760 vfd->lock = &dev->mutex;
761 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);
763 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n");
766 video_set_drvdata(vfd, dev);
767 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name);
769 v4l2_info(&dev->v4l2_dev, "device registered as /dev/video%d\n",
771 platform_set_drvdata(pdev, dev);
772 dev->m2m_dev = v4l2_m2m_init(&g2d_m2m_ops);
773 if (IS_ERR(dev->m2m_dev)) {
774 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem device\n");
775 ret = PTR_ERR(dev->m2m_dev);
776 goto unreg_video_dev;
779 def_frame.stride = (def_frame.width * def_frame.fmt->depth) >> 3;
784 video_unregister_device(dev->vfd);
786 video_device_release(vfd);
788 v4l2_device_unregister(&dev->v4l2_dev);
790 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx);
792 clk_unprepare(dev->gate);
796 clk_unprepare(dev->clk);
803 static int g2d_remove(struct platform_device *pdev)
805 struct g2d_dev *dev = (struct g2d_dev *)platform_get_drvdata(pdev);
807 v4l2_info(&dev->v4l2_dev, "Removing " G2D_NAME);
808 v4l2_m2m_release(dev->m2m_dev);
809 video_unregister_device(dev->vfd);
810 v4l2_device_unregister(&dev->v4l2_dev);
811 vb2_dma_contig_cleanup_ctx(dev->alloc_ctx);
812 clk_unprepare(dev->gate);
814 clk_unprepare(dev->clk);
819 static struct platform_driver g2d_pdrv = {
821 .remove = g2d_remove,
824 .owner = THIS_MODULE,
828 module_platform_driver(g2d_pdrv);
830 MODULE_AUTHOR("Kamil Debski <k.debski@samsung.com>");
831 MODULE_DESCRIPTION("S5P G2D 2d graphics accelerator driver");
832 MODULE_LICENSE("GPL");