122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef __SIS_DRM_H__
722851890Sopenharmony_ci#define __SIS_DRM_H__
822851890Sopenharmony_ci#include "drm.h"
922851890Sopenharmony_ci#if defined(__cplusplus)
1022851890Sopenharmony_ciextern "C" {
1122851890Sopenharmony_ci#endif
1222851890Sopenharmony_ci#define NOT_USED_0_3
1322851890Sopenharmony_ci#define DRM_SIS_FB_ALLOC	0x04
1422851890Sopenharmony_ci#define DRM_SIS_FB_FREE	        0x05
1522851890Sopenharmony_ci#define NOT_USED_6_12
1622851890Sopenharmony_ci#define DRM_SIS_AGP_INIT	0x13
1722851890Sopenharmony_ci#define DRM_SIS_AGP_ALLOC	0x14
1822851890Sopenharmony_ci#define DRM_SIS_AGP_FREE	0x15
1922851890Sopenharmony_ci#define DRM_SIS_FB_INIT	        0x16
2022851890Sopenharmony_ci#define DRM_IOCTL_SIS_FB_ALLOC		DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t)
2122851890Sopenharmony_ci#define DRM_IOCTL_SIS_FB_FREE		DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t)
2222851890Sopenharmony_ci#define DRM_IOCTL_SIS_AGP_INIT		DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t)
2322851890Sopenharmony_ci#define DRM_IOCTL_SIS_AGP_ALLOC		DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t)
2422851890Sopenharmony_ci#define DRM_IOCTL_SIS_AGP_FREE		DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t)
2522851890Sopenharmony_ci#define DRM_IOCTL_SIS_FB_INIT		DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t)
2622851890Sopenharmony_citypedef struct {
2722851890Sopenharmony_ci	int context;
2822851890Sopenharmony_ci	unsigned long offset;
2922851890Sopenharmony_ci	unsigned long size;
3022851890Sopenharmony_ci	unsigned long free;
3122851890Sopenharmony_ci} drm_sis_mem_t;
3222851890Sopenharmony_citypedef struct {
3322851890Sopenharmony_ci	unsigned long offset, size;
3422851890Sopenharmony_ci} drm_sis_agp_t;
3522851890Sopenharmony_citypedef struct {
3622851890Sopenharmony_ci	unsigned long offset, size;
3722851890Sopenharmony_ci} drm_sis_fb_t;
3822851890Sopenharmony_ci#if defined(__cplusplus)
3922851890Sopenharmony_ci}
4022851890Sopenharmony_ci#endif
4122851890Sopenharmony_ci#endif
42