linux/drivers/gpu/drm/exynos
Joonyoung Shim d7f1642c90 drm/exynos: add G2D driver
Changelog v3:
- use __u64 instead of pointer in ioctl struct.

The G2D is a 2D graphic accelerator that supports Bit Block Transfer.
This G2D driver is exynos drm specific and supports only G2D(version
4.1) of later Exynos series from Exynos4X12 because supporting DMA.

The G2D is performed by two tasks simply.
1. Configures the rendering parameters, such as foreground color and
   coordinates data by setting the drawing context registers.
2. Start the rendering process by setting thre relevant command
   registers accordingly.

The G2D version 4.1 supports DMA mode as host interface. User can make
command list to reduce HOST(ARM) loads. The contents of The command list
is setted to relevant registers of G2D by DMA.

The command list is composed Header and command sets and Tail.
- Header: The number of command set(4Bytes)
- Command set: Register offset(4Bytes) + Register data(4Bytes)
- Tail: Pointer of base address of the other command list(4Bytes)

By Tail field, the G2D can process many command lists without halt at
one go.

The G2D has following the rendering pipeline.
--> Primitive Drawing --> Rotation --> Clipping --> Bilinear Sampling
--> Color Key --> ROP --> Mask Operation --> Alpha Blending -->
Dithering --> FrameBuffer

And supports various operations from the rendering pipeline.
- copy
- fast solid color fill
- window clipping
- rotation
- flip
- 4 operand raster operation(ROP4)
- masking operation
- alpha blending
- color key
- dithering
- etc

User should make the command list to data and registers needed by
operation to use. The Exynos G2D driver only manages the command lists
received from user. Some registers needs memory base address(physical
address) of image. User doesn't know its physical address, so fills the
gem handle of that memory than address to command sets, then G2D driver
converts it to memory base address.

We adds three ioctls and one event for Exynos G2D.

- ioctls
DRM_EXYNOS_G2D_GET_VER: get the G2D hardware version
DRM_EXYNOS_G2D_SET_CMDLIST: set the command list from user to driver
DRM_EXYNOS_G2D_EXEC: execute the command lists setted to driver

- event
DRM_EXYNOS_G2D_EVENT: event to give notification completion of the
		      command list to user

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2012-05-17 20:14:48 +09:00
..
exynos_ddc.c drm/exynos: remove module of exynos drm subdrv 2012-03-20 09:40:23 +00:00
exynos_drm_buf.c drm/exynos: added drm prime feature. 2012-05-08 18:46:32 +09:00
exynos_drm_buf.h drm/exynos: update gem and buffer framework. 2012-03-20 09:40:21 +00:00
exynos_drm_connector.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-03-22 13:08:22 -07:00
exynos_drm_connector.h
exynos_drm_core.c drm/exynos: fix to pointer manager member of struct exynos_drm_subdrv 2012-04-12 14:51:27 +09:00
exynos_drm_crtc.c drm/exynos: added source size to overlay structure 2012-05-17 20:14:29 +09:00
exynos_drm_crtc.h drm/exynos: added source size to overlay structure 2012-05-17 20:14:29 +09:00
exynos_drm_dmabuf.c drm/exynos: added drm prime feature. 2012-05-08 18:46:32 +09:00
exynos_drm_dmabuf.h drm/exynos: added drm prime feature. 2012-05-08 18:46:32 +09:00
exynos_drm_drv.c drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_drv.h drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_encoder.c drm/exynos: added virtual display driver. 2012-03-21 10:15:49 +00:00
exynos_drm_encoder.h drm/exynos: added possible_clones setup function. 2012-02-15 10:29:11 +09:00
exynos_drm_fb.c drm/exynos: remove module of exynos drm subdrv 2012-03-20 09:40:23 +00:00
exynos_drm_fb.h drm/exynos: Support multi buffers 2011-12-29 11:21:42 +09:00
exynos_drm_fbdev.c drm/exynos: remove module of exynos drm subdrv 2012-03-20 09:40:23 +00:00
exynos_drm_fbdev.h
exynos_drm_fimd.c drm/exynos: fix to pointer manager member of struct exynos_drm_subdrv 2012-04-12 14:51:27 +09:00
exynos_drm_g2d.c drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_g2d.h drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_gem.c drm/exynos: added a feature to get gem buffer information. 2012-05-08 18:46:32 +09:00
exynos_drm_gem.h drm/exynos: added a feature to get gem buffer information. 2012-05-08 18:46:32 +09:00
exynos_drm_hdmi.c drm/exynos: add dpms for hdmi 2012-05-08 18:46:33 +09:00
exynos_drm_hdmi.h drm/exynos: add dpms for hdmi 2012-05-08 18:46:33 +09:00
exynos_drm_plane.c drm/exynos: added source size to overlay structure 2012-05-17 20:14:29 +09:00
exynos_drm_plane.h drm/exynos: Add plane support with fimd 2011-12-21 15:14:17 +09:00
exynos_drm_vidi.c drm/exynos: fix to pointer manager member of struct exynos_drm_subdrv 2012-04-12 14:51:27 +09:00
exynos_drm_vidi.h drm/exynos: added virtual display driver. 2012-03-21 10:15:49 +00:00
exynos_hdmi.c drm/exynos: add additional display mode for hdmi 2012-05-17 20:14:27 +09:00
exynos_hdmi.h drm/exynos: cleanup exynos_hdmi.h 2012-03-20 09:41:45 +00:00
exynos_hdmiphy.c drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00
exynos_mixer.c drm/exynos: added vp scaling feature for hdmi 2012-05-17 20:14:40 +09:00
Kconfig drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
Makefile drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
regs-hdmi.h drm/exynos: enable dvi mode for dvi monitor 2012-05-17 20:14:25 +09:00
regs-mixer.h drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00
regs-vp.h drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00