f78b12e570284aa8291f4ca1add24937fd107403vboxsync/*
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Platform specific SBUS and OpenPROM access declarations.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * Permission is hereby granted, free of charge, to any person obtaining a copy
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * of this software and associated documentation files (the "Software"), to deal
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * in the Software without restriction, including without limitation the rights
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * copies of the Software, and to permit persons to whom the Software is
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * furnished to do so, subject to the following conditions:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * The above copyright notice and this permission notice shall be included in
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * all copies or substantial portions of the Software.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync *
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
f78b12e570284aa8291f4ca1add24937fd107403vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifdef HAVE_XORG_CONFIG_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <xorg-config.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef _XF86_SBUS_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define _XF86_SBUS_H
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#if defined(linux)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <asm/types.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <linux/fb.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <asm/fbio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <asm/openpromio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#elif defined(SVR4)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <sys/fbio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <sys/openpromio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#elif defined(__OpenBSD__) && defined(__sparc64__)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync/* XXX */
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#elif defined(CSRG_BASED)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#if defined(__FreeBSD__)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <sys/types.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <sys/fbio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <dev/ofw/openpromio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#else
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <machine/fbio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#else
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include <sun/fbio.h>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef FBTYPE_SUNGP3
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define FBTYPE_SUNGP3 -1
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef FBTYPE_MDICOLOR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define FBTYPE_MDICOLOR -1
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef FBTYPE_SUNLEO
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define FBTYPE_SUNLEO -1
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef FBTYPE_TCXCOLOR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define FBTYPE_TCXCOLOR -1
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef FBTYPE_CREATOR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define FBTYPE_CREATOR -1
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif /* _XF86_SBUS_H */