summaryrefslogtreecommitdiff
path: root/src/i810_driver.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-04-10 19:41:41 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-04-10 19:41:41 -0700
commitc26f0737e2c0f000f67f21ef6007b351160036a4 (patch)
treeb96aee13ba6fd6ec076b66818a1c3dd616db5457 /src/i810_driver.c
parent11ad8a590d65849be00e1be4e9dd52c1159a4f24 (diff)
parent692a4a4bafd4cab197b761cda22368581b78f996 (diff)
Merge in master to modesetting
Diffstat (limited to 'src/i810_driver.c')
-rw-r--r--src/i810_driver.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/i810_driver.c b/src/i810_driver.c
index f7247f4b..ae9069c7 100644
--- a/src/i810_driver.c
+++ b/src/i810_driver.c
@@ -60,11 +60,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* DGA
*/
+#include <math.h>
+#include <string.h>
+#include <unistd.h>
+
/*
* These are X and server generic header files.
*/
#include "xf86.h"
-#include "xf86_ansic.h"
#include "xf86_OSproc.h"
#include "xf86Resources.h"
#include "xf86RAC.h"
@@ -1224,21 +1227,24 @@ I810PrintErrorState(ScrnInfoPtr pScrn)
I810Ptr pI810 = I810PTR(pScrn);
ErrorF("pgetbl_ctl: 0x%lx pgetbl_err: 0x%lx\n",
- INREG(PGETBL_CTL), INREG(PGE_ERR));
+ (unsigned long) INREG(PGETBL_CTL), (unsigned long) INREG(PGE_ERR));
- ErrorF("ipeir: %lx iphdr: %lx\n", INREG(IPEIR), INREG(IPEHR));
+ ErrorF("ipeir: %lx iphdr: %lx\n", (unsigned long) INREG(IPEIR),
+ (unsigned long) INREG(IPEHR));
ErrorF("LP ring tail: %lx head: %lx len: %lx start %lx\n",
- INREG(LP_RING + RING_TAIL),
- INREG(LP_RING + RING_HEAD) & HEAD_ADDR,
- INREG(LP_RING + RING_LEN), INREG(LP_RING + RING_START));
+ (unsigned long) INREG(LP_RING + RING_TAIL),
+ (unsigned long) INREG(LP_RING + RING_HEAD) & HEAD_ADDR,
+ (unsigned long) INREG(LP_RING + RING_LEN),
+ (unsigned long) INREG(LP_RING + RING_START));
ErrorF("eir: %x esr: %x emr: %x\n",
INREG16(EIR), INREG16(ESR), INREG16(EMR));
ErrorF("instdone: %x instpm: %x\n", INREG16(INST_DONE), INREG8(INST_PM));
- ErrorF("memmode: %lx instps: %lx\n", INREG(MEMMODE), INREG(INST_PS));
+ ErrorF("memmode: %lx instps: %lx\n", (unsigned long) INREG(MEMMODE),
+ (unsigned long) INREG(INST_PS));
ErrorF("hwstam: %x ier: %x imr: %x iir: %x\n",
INREG16(HWSTAM), INREG16(IER), INREG16(IMR), INREG16(IIR));