b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/cfb/cfb24.h,v 1.4 1998/11/28 10:42:51 dawes Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a copy
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * of this software and associated documentation files (the "Software"), to
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * deal in the Software without restriction, including without limitation the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * sell copies of the Software, and to permit persons to whom the Software is
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * all copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Except as contained in this notice, the name of the XFree86 Project shall
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * not be used in advertising or otherwise to promote the sale, use or other
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * dealings in this Software without prior written authorization from the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * XFree86 Project.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifdef HAVE_DIX_CONFIG_H
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include <dix-config.h>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef _CFB24_H_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define _CFB24_H_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * C's preprocessing language substitutes >text<, not values...
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifdef OLDPSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# undef OLDPSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifdef PSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (PSZ == 8)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define OLDPSZ 8
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (PSZ == 16)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define OLDPSZ 16
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (PSZ == 24)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define OLDPSZ 24
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (PSZ == 32)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define OLDPSZ 32
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# ifndef OLDPSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /* Maybe an #error here ? */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# undef PSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define PSZ 24
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define CFB_PROTOTYPES_ONLY
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include "cfb.h"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#undef CFB_PROTOTYPES_ONLY
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include "cfbunmap.h"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#undef PSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifdef OLDPSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (OLDPSZ == 8)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define PSZ 8
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (OLDPSZ == 16)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define PSZ 16
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (OLDPSZ == 24)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define PSZ 24
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# if (OLDPSZ == 32)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# define PSZ 32
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# undef OLDPSZ
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* _CFB24_H_ */