patch-2.4.19 linux-2.4.19/drivers/net/wan/8253x/8253xdbg.c
Next file: linux-2.4.19/drivers/net/wan/8253x/8253xini.c
Previous file: linux-2.4.19/drivers/net/wan/8253x/8253xctl.h
Back to the patch index
Back to the overall index
- Lines: 65
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/net/wan/8253x/8253xdbg.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -urN linux-2.4.18/drivers/net/wan/8253x/8253xdbg.c linux-2.4.19/drivers/net/wan/8253x/8253xdbg.c
@@ -0,0 +1,64 @@
+/* -*- linux-c -*- */
+/*
+ * Copyright (C) 2001 By Joachim Martillo, Telford Tools, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ *
+ **/
+
+#include <linux/kernel.h>
+#include <linux/pci.h>
+#include <linux/stddef.h>
+#include <linux/netdevice.h>
+#include <linux/string.h>
+#include <linux/sockios.h>
+#include <asm/io.h>
+#include <asm/byteorder.h>
+#include <asm/pgtable.h>
+#include <linux/skbuff.h>
+#include <linux/if_arp.h>
+#include <linux/fs.h>
+#include <linux/sched.h>
+#include <asm/uaccess.h>
+#include <linux/version.h>
+#include "8253xctl.h"
+#include "Reg9050.h"
+#if 0 /* only during debugging */
+#undef DEBUGPRINT
+#define DEBUGPRINT(arg) printk arg
+#endif
+
+void dump_ati_adapter_registers(unsigned int *addr, int len)
+{
+ int index;
+ int flag = 1;
+
+ for(index = 0; index < (len/(sizeof(unsigned int*))); ++index)
+ {
+ if(flag)
+ {
+ DEBUGPRINT((KERN_ALERT "bridge: %4.4x:%8.8x", (4*index), *addr++));
+ }
+ else
+ {
+ DEBUGPRINT(("%8.8x", *addr++));
+ }
+ if(((index + 1) % 8) == 0)
+ {
+ DEBUGPRINT(("\n"));
+ flag = 1;
+ }
+ else
+ {
+ DEBUGPRINT((" "));
+ flag = 0;
+ }
+ }
+ if(flag == 0)
+ {
+ DEBUGPRINT(("\n"));
+ }
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)