summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/sis_drm.h
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2002-04-27 20:47:57 +0000
committeranholt <anholt@FreeBSD.org>2002-04-27 20:47:57 +0000
commit682fe32ace5d21d6e0400fcfc7426bc6ae04c124 (patch)
tree2e73a21383876a4e751630f3059c8690aecfb78a /sys/dev/drm/sis_drm.h
parent6818945234fbb5686fb3e963d4f172c2c44fdbf1 (diff)
downloadFreeBSD-src-682fe32ace5d21d6e0400fcfc7426bc6ae04c124.zip
FreeBSD-src-682fe32ace5d21d6e0400fcfc7426bc6ae04c124.tar.gz
Add the code for the DRM, based on the code from the drm-kmod port.
This is not hooked up yet, that will come later. Approved by: des
Diffstat (limited to 'sys/dev/drm/sis_drm.h')
-rw-r--r--sys/dev/drm/sis_drm.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/dev/drm/sis_drm.h b/sys/dev/drm/sis_drm.h
new file mode 100644
index 0000000..dad43bc
--- /dev/null
+++ b/sys/dev/drm/sis_drm.h
@@ -0,0 +1,33 @@
+/*
+ * $FreeBSD$
+ */
+
+#ifndef _sis_drm_public_h_
+#define _sis_drm_public_h_
+
+typedef struct {
+ int context;
+ unsigned int offset;
+ unsigned int size;
+ unsigned int free;
+} drm_sis_mem_t;
+
+typedef struct {
+ unsigned int offset, size;
+} drm_sis_agp_t;
+
+typedef struct {
+ unsigned int left, right;
+} drm_sis_flip_t;
+
+#if defined(__KERNEL__) || defined(_KERNEL)
+
+int sis_fb_alloc(DRM_OS_IOCTL);
+int sis_fb_free(DRM_OS_IOCTL);
+int sisp_agp_init(DRM_OS_IOCTL);
+int sisp_agp_alloc(DRM_OS_IOCTL);
+int sisp_agp_free(DRM_OS_IOCTL);
+
+#endif
+
+#endif
OpenPOWER on IntegriCloud