Back to index

libdrm  2.4.37
sis_drm.h
Go to the documentation of this file.
00001 /* sis_drv.h -- Private header for sis driver -*- linux-c -*- */
00002 /*
00003  * Copyright 2005 Eric Anholt
00004  * All Rights Reserved.
00005  *
00006  * Permission is hereby granted, free of charge, to any person obtaining a
00007  * copy of this software and associated documentation files (the "Software"),
00008  * to deal in the Software without restriction, including without limitation
00009  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00010  * and/or sell copies of the Software, and to permit persons to whom the
00011  * Software is furnished to do so, subject to the following conditions:
00012  *
00013  * The above copyright notice and this permission notice (including the next
00014  * paragraph) shall be included in all copies or substantial portions of the
00015  * Software.
00016  *
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00020  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00021  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00022  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00023  * SOFTWARE.
00024  *
00025  */
00026 
00027 #ifndef __SIS_DRM_H__
00028 #define __SIS_DRM_H__
00029 
00030 /* SiS specific ioctls */
00031 #define NOT_USED_0_3
00032 #define DRM_SIS_FB_ALLOC    0x04
00033 #define DRM_SIS_FB_FREE             0x05
00034 #define NOT_USED_6_12
00035 #define DRM_SIS_AGP_INIT    0x13
00036 #define DRM_SIS_AGP_ALLOC   0x14
00037 #define DRM_SIS_AGP_FREE    0x15
00038 #define DRM_SIS_FB_INIT             0x16
00039 
00040 #define DRM_IOCTL_SIS_FB_ALLOC            DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t)
00041 #define DRM_IOCTL_SIS_FB_FREE             DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t)
00042 #define DRM_IOCTL_SIS_AGP_INIT            DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t)
00043 #define DRM_IOCTL_SIS_AGP_ALLOC           DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t)
00044 #define DRM_IOCTL_SIS_AGP_FREE            DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t)
00045 #define DRM_IOCTL_SIS_FB_INIT             DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t)
00046 /*
00047 #define DRM_IOCTL_SIS_FLIP         DRM_IOW( 0x48, drm_sis_flip_t)
00048 #define DRM_IOCTL_SIS_FLIP_INIT           DRM_IO(  0x49)
00049 #define DRM_IOCTL_SIS_FLIP_FINAL   DRM_IO(  0x50)
00050 */
00051 
00052 typedef struct {
00053        int context;
00054        unsigned int offset;
00055        unsigned int size;
00056        unsigned long free;
00057 } drm_sis_mem_t;
00058 
00059 typedef struct {
00060        unsigned int offset, size;
00061 } drm_sis_agp_t;
00062 
00063 typedef struct {
00064        unsigned int offset, size;
00065 } drm_sis_fb_t;
00066 
00067 #endif                      /* __SIS_DRM_H__ */