Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:51

0001 /* sis_drv.h -- Private header for sis driver -*- linux-c -*- */
0002 /*
0003  * Copyright 2005 Eric Anholt
0004  * All Rights Reserved.
0005  *
0006  * Permission is hereby granted, free of charge, to any person obtaining a
0007  * copy of this software and associated documentation files (the "Software"),
0008  * to deal in the Software without restriction, including without limitation
0009  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0010  * and/or sell copies of the Software, and to permit persons to whom the
0011  * Software is furnished to do so, subject to the following conditions:
0012  *
0013  * The above copyright notice and this permission notice (including the next
0014  * paragraph) shall be included in all copies or substantial portions of the
0015  * Software.
0016  *
0017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0018  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0020  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0021  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0022  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0023  * SOFTWARE.
0024  *
0025  */
0026 
0027 #ifndef __SIS_DRM_H__
0028 #define __SIS_DRM_H__
0029 
0030 #include "drm.h"
0031 
0032 #if defined(__cplusplus)
0033 extern "C" {
0034 #endif
0035 
0036 /* SiS specific ioctls */
0037 #define NOT_USED_0_3
0038 #define DRM_SIS_FB_ALLOC    0x04
0039 #define DRM_SIS_FB_FREE         0x05
0040 #define NOT_USED_6_12
0041 #define DRM_SIS_AGP_INIT    0x13
0042 #define DRM_SIS_AGP_ALLOC   0x14
0043 #define DRM_SIS_AGP_FREE    0x15
0044 #define DRM_SIS_FB_INIT         0x16
0045 
0046 #define DRM_IOCTL_SIS_FB_ALLOC      DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t)
0047 #define DRM_IOCTL_SIS_FB_FREE       DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t)
0048 #define DRM_IOCTL_SIS_AGP_INIT      DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t)
0049 #define DRM_IOCTL_SIS_AGP_ALLOC     DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t)
0050 #define DRM_IOCTL_SIS_AGP_FREE      DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t)
0051 #define DRM_IOCTL_SIS_FB_INIT       DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t)
0052 /*
0053 #define DRM_IOCTL_SIS_FLIP      DRM_IOW( 0x48, drm_sis_flip_t)
0054 #define DRM_IOCTL_SIS_FLIP_INIT     DRM_IO(  0x49)
0055 #define DRM_IOCTL_SIS_FLIP_FINAL    DRM_IO(  0x50)
0056 */
0057 
0058 typedef struct {
0059     int context;
0060     unsigned int offset;
0061     unsigned int size;
0062     unsigned long free;
0063 } drm_sis_mem_t;
0064 
0065 typedef struct {
0066     unsigned int offset, size;
0067 } drm_sis_agp_t;
0068 
0069 typedef struct {
0070     unsigned int offset, size;
0071 } drm_sis_fb_t;
0072 
0073 #if defined(__cplusplus)
0074 }
0075 #endif
0076 
0077 #endif              /* __SIS_DRM_H__ */