summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_fb_dma_helper.c
blob: 1daa8e9c19c77489e845e3838d16969539e3b2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Public Domain */

#include <drm/drm_framebuffer.h>
#include <drm/drm_fb_dma_helper.h>
#include <drm/drm_gem_dma_helper.h>

struct drm_gem_dma_object *
drm_fb_dma_get_gem_obj(struct drm_framebuffer *fb, unsigned int plane)
{
	struct drm_gem_object *obj;

	KASSERT(plane == 0);
	obj = fb->obj[plane];
	if (obj)
		return to_drm_gem_dma_obj(obj);
	return NULL;
}