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