Path: blob/master/arch/parisc/include/asm/grfioctl.h
10819 views
/* Architecture specific parts of HP's STI (framebuffer) driver.1* Structures are HP-UX compatible for XFree86 usage.2*3* Linux/PA-RISC Project (http://www.parisc-linux.org/)4* Copyright (C) 2001 Helge Deller (deller a parisc-linux org)5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/2021#ifndef __ASM_PARISC_GRFIOCTL_H22#define __ASM_PARISC_GRFIOCTL_H2324/* upper 32 bits of graphics id (HP/UX identifier) */2526#define GRFGATOR 827#define S9000_ID_S300 928#define GRFBOBCAT 929#define GRFCATSEYE 930#define S9000_ID_98720 1031#define GRFRBOX 1032#define S9000_ID_98550 1133#define GRFFIREEYE 1134#define S9000_ID_A1096A 1235#define GRFHYPERION 1236#define S9000_ID_FRI 1337#define S9000_ID_98730 1438#define GRFDAVINCI 1439#define S9000_ID_98705 0x26C08070 /* Tigershark */40#define S9000_ID_98736 0x26D148AB41#define S9000_ID_A1659A 0x26D1482A /* CRX 8 plane color (=ELK) */42#define S9000_ID_ELK S9000_ID_A1659A43#define S9000_ID_A1439A 0x26D148EE /* CRX24 = CRX+ (24-plane color) */44#define S9000_ID_A1924A 0x26D1488C /* GRX gray-scale */45#define S9000_ID_ELM S9000_ID_A1924A46#define S9000_ID_98765 0x27480DEF47#define S9000_ID_ELK_768 0x2748210148#define S9000_ID_STINGER 0x27A4A40249#define S9000_ID_TIMBER 0x27F12392 /* Bushmaster (710) Graphics */50#define S9000_ID_TOMCAT 0x27FCCB6D /* dual-headed ELK (Dual CRX) */51#define S9000_ID_ARTIST 0x2B4DED6D /* Artist (Gecko/712 & 715) onboard Graphics */52#define S9000_ID_HCRX 0x2BCB015A /* Hyperdrive/Hyperbowl (A4071A) Graphics */53#define CRX24_OVERLAY_PLANES 0x920825AA /* Overlay planes on CRX24 */5455#define CRT_ID_ELK_1024 S9000_ID_ELK_768 /* Elk 1024x768 CRX */56#define CRT_ID_ELK_1280 S9000_ID_A1659A /* Elk 1280x1024 CRX */57#define CRT_ID_ELK_1024DB 0x27849CA5 /* Elk 1024x768 double buffer */58#define CRT_ID_ELK_GS S9000_ID_A1924A /* Elk 1280x1024 GreyScale */59#define CRT_ID_CRX24 S9000_ID_A1439A /* Piranha */60#define CRT_ID_VISUALIZE_EG 0x2D08C0A7 /* Graffiti, A4450A (built-in B132+/B160L) */61#define CRT_ID_THUNDER 0x2F23E5FC /* Thunder 1 VISUALIZE 48*/62#define CRT_ID_THUNDER2 0x2F8D570E /* Thunder 2 VISUALIZE 48 XP*/63#define CRT_ID_HCRX S9000_ID_HCRX /* Hyperdrive HCRX */64#define CRT_ID_CRX48Z S9000_ID_STINGER /* Stinger */65#define CRT_ID_DUAL_CRX S9000_ID_TOMCAT /* Tomcat */66#define CRT_ID_PVRX S9000_ID_98705 /* Tigershark */67#define CRT_ID_TIMBER S9000_ID_TIMBER /* Timber (710 builtin) */68#define CRT_ID_TVRX S9000_ID_98765 /* TVRX (gto/falcon) */69#define CRT_ID_ARTIST S9000_ID_ARTIST /* Artist */70#define CRT_ID_SUMMIT 0x2FC1066B /* Summit FX2, FX4, FX6 ... */71#define CRT_ID_LEGO 0x35ACDA30 /* Lego FX5, FX10 ... */72#define CRT_ID_PINNACLE 0x35ACDA16 /* Pinnacle FXe */7374/* structure for ioctl(GCDESCRIBE) */7576#define gaddr_t unsigned long /* FIXME: PA2.0 (64bit) portable ? */7778struct grf_fbinfo {79unsigned int id; /* upper 32 bits of graphics id */80unsigned int mapsize; /* mapped size of framebuffer */81unsigned int dwidth, dlength;/* x and y sizes */82unsigned int width, length; /* total x and total y size */83unsigned int xlen; /* x pitch size */84unsigned int bpp, bppu; /* bits per pixel and used bpp */85unsigned int npl, nplbytes; /* # of planes and bytes per plane */86char name[32]; /* name of the device (from ROM) */87unsigned int attr; /* attributes */88gaddr_t fbbase, regbase;/* framebuffer and register base addr */89gaddr_t regions[6]; /* region bases */90};9192#define GCID _IOR('G', 0, int)93#define GCON _IO('G', 1)94#define GCOFF _IO('G', 2)95#define GCAON _IO('G', 3)96#define GCAOFF _IO('G', 4)97#define GCMAP _IOWR('G', 5, int)98#define GCUNMAP _IOWR('G', 6, int)99#define GCMAP_HPUX _IO('G', 5)100#define GCUNMAP_HPUX _IO('G', 6)101#define GCLOCK _IO('G', 7)102#define GCUNLOCK _IO('G', 8)103#define GCLOCK_MINIMUM _IO('G', 9)104#define GCUNLOCK_MINIMUM _IO('G', 10)105#define GCSTATIC_CMAP _IO('G', 11)106#define GCVARIABLE_CMAP _IO('G', 12)107#define GCTERM _IOWR('G',20,int) /* multi-headed Tomcat */108#define GCDESCRIBE _IOR('G', 21, struct grf_fbinfo)109#define GCFASTLOCK _IO('G', 26)110111#endif /* __ASM_PARISC_GRFIOCTL_H */112113114115