/*1* linux/drivers/video/kyro/kryo.h2*3* Copyright (C) 2002 STMicroelectronics4* Copyright (C) 2004 Paul Mundt5*6* This file is subject to the terms and conditions of the GNU General Public7* License. See the file COPYING in the main directory of this archive8* for more details.9*/1011#ifndef _KYRO_H12#define _KYRO_H1314struct kyrofb_info {15void __iomem *regbase;1617u32 palette[16];18u32 HTot; /* Hor Total Time */19u32 HFP; /* Hor Front Porch */20u32 HST; /* Hor Sync Time */21u32 HBP; /* Hor Back Porch */22s32 HSP; /* Hor Sync Polarity */23u32 VTot; /* Ver Total Time */24u32 VFP; /* Ver Front Porch */25u32 VST; /* Ver Sync Time */26u32 VBP; /* Ver Back Porch */27s32 VSP; /* Ver Sync Polarity */28u32 XRES; /* X Resolution */29u32 YRES; /* Y Resolution */30u32 VFREQ; /* Ver Frequency */31u32 PIXCLK; /* Pixel Clock */32u32 HCLK; /* Hor Clock */3334/* Useful to hold depth here for Linux */35u8 PIXDEPTH;3637int wc_cookie;38};3940/*41* [email protected]42* Added the follow IOCTLS for the creation of overlay services...43*/44#define KYRO_IOC_MAGIC 'k'4546#define KYRO_IOCTL_OVERLAY_CREATE _IO(KYRO_IOC_MAGIC, 0)47#define KYRO_IOCTL_OVERLAY_VIEWPORT_SET _IO(KYRO_IOC_MAGIC, 1)48#define KYRO_IOCTL_SET_VIDEO_MODE _IO(KYRO_IOC_MAGIC, 2)49#define KYRO_IOCTL_UVSTRIDE _IO(KYRO_IOC_MAGIC, 3)50#define KYRO_IOCTL_OVERLAY_OFFSET _IO(KYRO_IOC_MAGIC, 4)51#define KYRO_IOCTL_STRIDE _IO(KYRO_IOC_MAGIC, 5)5253/*54* The follow 3 structures are used to pass data from user space into the kernel55* for the creation of overlay surfaces and setting the video mode.56*/57typedef struct _OVERLAY_CREATE {58u32 ulWidth;59u32 ulHeight;60int bLinear;61} overlay_create;6263typedef struct _OVERLAY_VIEWPORT_SET {64u32 xOrgin;65u32 yOrgin;66u32 xSize;67u32 ySize;68} overlay_viewport_set;6970typedef struct _SET_VIDEO_MODE {71u32 ulWidth;72u32 ulHeight;73u32 ulScan;74u8 displayDepth;75int bLinear;76} set_video_mode;7778#endif /* _KYRO_H */798081