/* sis_drv.h -- Private header for sis driver -*- linux-c -*- */1/*2* Copyright 2005 Eric Anholt3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the "Software"),7* to deal in the Software without restriction, including without limitation8* the rights to use, copy, modify, merge, publish, distribute, sublicense,9* and/or sell copies of the Software, and to permit persons to whom the10* Software is furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice (including the next13* paragraph) shall be included in all copies or substantial portions of the14* Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL19* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE22* SOFTWARE.23*24*/2526#ifndef __SIS_DRM_H__27#define __SIS_DRM_H__2829/* SiS specific ioctls */30#define NOT_USED_0_331#define DRM_SIS_FB_ALLOC 0x0432#define DRM_SIS_FB_FREE 0x0533#define NOT_USED_6_1234#define DRM_SIS_AGP_INIT 0x1335#define DRM_SIS_AGP_ALLOC 0x1436#define DRM_SIS_AGP_FREE 0x1537#define DRM_SIS_FB_INIT 0x163839#define DRM_IOCTL_SIS_FB_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t)40#define DRM_IOCTL_SIS_FB_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t)41#define DRM_IOCTL_SIS_AGP_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t)42#define DRM_IOCTL_SIS_AGP_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t)43#define DRM_IOCTL_SIS_AGP_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t)44#define DRM_IOCTL_SIS_FB_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t)45/*46#define DRM_IOCTL_SIS_FLIP DRM_IOW( 0x48, drm_sis_flip_t)47#define DRM_IOCTL_SIS_FLIP_INIT DRM_IO( 0x49)48#define DRM_IOCTL_SIS_FLIP_FINAL DRM_IO( 0x50)49*/5051typedef struct {52int context;53unsigned int offset;54unsigned int size;55unsigned long free;56} drm_sis_mem_t;5758typedef struct {59unsigned int offset, size;60} drm_sis_agp_t;6162typedef struct {63unsigned int offset, size;64} drm_sis_fb_t;6566#endif /* __SIS_DRM_H__ */676869