1 /* -*- linux-c -*- */ 2 /* 3 * Copyright (C) 2001 By Joachim Martillo, Telford Tools, Inc. 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. 9 * 10 **/ 11 12 #include <linux/kernel.h> 13 #include <linux/pci.h> 14 #include <linux/stddef.h> 15 #include <linux/netdevice.h> 16 #include <linux/string.h> 17 #include <linux/sockios.h> 18 #include <asm/io.h> 19 #include <asm/byteorder.h> 20 #include <asm/pgtable.h> 21 #include <linux/skbuff.h> 22 #include <linux/if_arp.h> 23 #include <linux/fs.h> 24 #include <linux/sched.h> 25 #include <asm/uaccess.h> 26 #include <linux/version.h> 27 #include "8253xctl.h" 28 #include "Reg9050.h" 29 #if 0 /* only during debugging */ 30 #undef DEBUGPRINT 31 #define DEBUGPRINT(arg) printk arg 32 #endif 33 dump_ati_adapter_registers(unsigned int * addr,int len)34void dump_ati_adapter_registers(unsigned int *addr, int len) 35 { 36 int index; 37 int flag = 1; 38 39 for(index = 0; index < (len/(sizeof(unsigned int*))); ++index) 40 { 41 if(flag) 42 { 43 DEBUGPRINT((KERN_ALERT "bridge: %4.4x:%8.8x", (4*index), *addr++)); 44 } 45 else 46 { 47 DEBUGPRINT(("%8.8x", *addr++)); 48 } 49 if(((index + 1) % 8) == 0) 50 { 51 DEBUGPRINT(("\n")); 52 flag = 1; 53 } 54 else 55 { 56 DEBUGPRINT((" ")); 57 flag = 0; 58 } 59 } 60 if(flag == 0) 61 { 62 DEBUGPRINT(("\n")); 63 } 64 } 65