Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / common / xf86Debug.c
blob5b609652b23c9974346c620598fcaa519b75202d
2 /*
3 * Copyright (c) 2000-2003 by The XFree86 Project, Inc.
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
23 * Except as contained in this notice, the name of the copyright holder(s)
24 * and author(s) shall not be used in advertising or otherwise to promote
25 * the sale, use or other dealings in this Software without prior written
26 * authorization from the copyright holder(s) and author(s).
29 #ifdef HAVE_XORG_CONFIG_H
30 #include <xorg-config.h>
31 #endif
33 #include <sys/time.h>
34 #include <unistd.h>
35 #include <X11/X.h>
36 #include "os.h"
37 #include "xf86.h"
38 #include "xf86Priv.h"
39 #include "xf86_OSlib.h"
40 #include "compiler.h"
42 CARD8 xf86PeekFb8(CARD8 *p) { return *p; }
43 CARD16 xf86PeekFb16(CARD16 *p) { return *p; }
44 CARD32 xf86PeekFb32(CARD32 *p) { return *p; }
45 void xf86PokeFb8(CARD8 *p, CARD8 v) { *p = v; }
46 void xf86PokeFb16(CARD16 *p, CARD16 v) { *p = v; }
47 void xf86PokeFb32(CARD16 *p, CARD32 v) { *p = v; }
49 CARD8 xf86PeekMmio8(pointer Base, unsigned long Offset)
51 return MMIO_IN8(Base,Offset);
54 CARD16 xf86PeekMmio16(pointer Base, unsigned long Offset)
56 return MMIO_IN16(Base,Offset);
59 CARD32 xf86PeekMmio32(pointer Base, unsigned long Offset)
61 return MMIO_IN32(Base,Offset);
64 void xf86PokeMmio8(pointer Base, unsigned long Offset, CARD8 v)
66 MMIO_OUT8(Base,Offset,v);
69 void xf86PokeMmio16(pointer Base, unsigned long Offset, CARD16 v)
71 MMIO_OUT16(Base,Offset,v);
74 void xf86PokeMmio32(pointer Base, unsigned long Offset, CARD32 v)
76 MMIO_OUT32(Base,Offset,v);