1
/**********************************************************************
2
Copyright 1998, 1999 by Precision Insight, Inc., Cedar Park, Texas.
6
Permission to use, copy, modify, distribute, and sell this software and
7
its documentation for any purpose is hereby granted without fee,
8
provided that the above copyright notice appear in all copies and that
9
both that copyright notice and this permission notice appear in
10
supporting documentation, and that the name of Precision Insight not be
11
used in advertising or publicity pertaining to distribution of the
12
software without specific, written prior permission. Precision Insight
13
and its suppliers make no representations about the suitability of this
14
software for any purpose. It is provided "as is" without express or
17
PRECISION INSIGHT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19
EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY
20
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
21
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
22
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
23
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
**********************************************************************/
25
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/neomagic/neo_macros.h,v 1.2 2002/10/30 12:52:22 alanh Exp $ */
28
* The original Precision Insight driver for
29
* XFree86 v.3.3 has been sponsored by Red Hat.
32
* Jens Owen (jens@tungstengraphics.com)
33
* Kevin E. Martin (kevin@precisioninsight.com)
35
* Port to Xfree86 v.4.0
36
* 1998, 1999 by Egbert Eich (Egbert.Eich@Physik.TU-Darmstadt.DE)
39
#define WAIT_FB_FIFO_EMPTY() { \
40
while( INREG(NEOREG_BLTSTAT) & NEO_BS0_FIFO_PEND); \
43
#define WAIT_BLT_DONE() { \
44
while( INREG(NEOREG_BLTSTAT) & NEO_BS0_BLT_BUSY); \
47
#define WAIT_ENGINE_IDLE() { \
52
#define WAIT_FIFO(n) { \
53
while( NeoFifoCount < (n)) { \
54
NeoFifoCount = (INREG(NEOREG_BLTSTAT) >> 8); \
56
NeoFifoCount -= (n); \
59
#define WAIT_FIFO(n) { \