xref: /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/bus/xf86Sbus.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Platform specific SBUS and OpenPROM access declarations.
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining a copy
7*4882a593Smuzhiyun  * of this software and associated documentation files (the "Software"), to deal
8*4882a593Smuzhiyun  * in the Software without restriction, including without limitation the rights
9*4882a593Smuzhiyun  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10*4882a593Smuzhiyun  * copies of the Software, and to permit persons to whom the Software is
11*4882a593Smuzhiyun  * furnished to do so, subject to the following conditions:
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * The above copyright notice and this permission notice shall be included in
14*4882a593Smuzhiyun  * all copies or substantial portions of the Software.
15*4882a593Smuzhiyun  *
16*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*4882a593Smuzhiyun  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*4882a593Smuzhiyun  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19*4882a593Smuzhiyun  * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20*4882a593Smuzhiyun  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21*4882a593Smuzhiyun  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22*4882a593Smuzhiyun  */
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #ifdef HAVE_XORG_CONFIG_H
25*4882a593Smuzhiyun #include <xorg-config.h>
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifndef _XF86_SBUS_H
29*4882a593Smuzhiyun #define _XF86_SBUS_H
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #if defined(__linux__)
32*4882a593Smuzhiyun #include <asm/types.h>
33*4882a593Smuzhiyun #include <linux/fb.h>
34*4882a593Smuzhiyun #include <asm/fbio.h>
35*4882a593Smuzhiyun #include <asm/openpromio.h>
36*4882a593Smuzhiyun #elif defined(SVR4)
37*4882a593Smuzhiyun #include <sys/fbio.h>
38*4882a593Smuzhiyun #include <sys/openpromio.h>
39*4882a593Smuzhiyun #elif defined(__OpenBSD__) && defined(__sparc64__)
40*4882a593Smuzhiyun /* XXX */
41*4882a593Smuzhiyun #elif defined(CSRG_BASED)
42*4882a593Smuzhiyun #if defined(__FreeBSD__)
43*4882a593Smuzhiyun #include <sys/types.h>
44*4882a593Smuzhiyun #include <sys/fbio.h>
45*4882a593Smuzhiyun #include <dev/ofw/openpromio.h>
46*4882a593Smuzhiyun #else
47*4882a593Smuzhiyun #include <machine/fbio.h>
48*4882a593Smuzhiyun #endif
49*4882a593Smuzhiyun #else
50*4882a593Smuzhiyun #include <sun/fbio.h>
51*4882a593Smuzhiyun #endif
52*4882a593Smuzhiyun 
53*4882a593Smuzhiyun #ifndef FBTYPE_SUNGP3
54*4882a593Smuzhiyun #define FBTYPE_SUNGP3 -1
55*4882a593Smuzhiyun #endif
56*4882a593Smuzhiyun #ifndef FBTYPE_MDICOLOR
57*4882a593Smuzhiyun #define FBTYPE_MDICOLOR -1
58*4882a593Smuzhiyun #endif
59*4882a593Smuzhiyun #ifndef FBTYPE_SUNLEO
60*4882a593Smuzhiyun #define FBTYPE_SUNLEO -1
61*4882a593Smuzhiyun #endif
62*4882a593Smuzhiyun #ifndef FBTYPE_TCXCOLOR
63*4882a593Smuzhiyun #define FBTYPE_TCXCOLOR -1
64*4882a593Smuzhiyun #endif
65*4882a593Smuzhiyun #ifndef FBTYPE_CREATOR
66*4882a593Smuzhiyun #define FBTYPE_CREATOR -1
67*4882a593Smuzhiyun #endif
68*4882a593Smuzhiyun 
69*4882a593Smuzhiyun #endif                          /* _XF86_SBUS_H */
70