patch-2.3.48 linux/arch/mips64/sgi-ip27/ip27-klconfig.c
Next file: linux/arch/mips64/sgi-ip27/ip27-memory.c
Previous file: linux/arch/mips64/sgi-ip27/ip27-irq.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Thu Feb 24 22:53:35 2000
- Orig file:
v2.3.47/linux/arch/mips64/sgi-ip27/ip27-klconfig.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.47/linux/arch/mips64/sgi-ip27/ip27-klconfig.c linux/arch/mips64/sgi-ip27/ip27-klconfig.c
@@ -0,0 +1,33 @@
+/* $Id: ip27-klconfig.c,v 1.1 2000/01/17 23:32:47 ralf Exp $
+ *
+ * Copyright (C) 1999, 2000 Ralf Baechle (ralf@gnu.org)
+ * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
+ */
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/sched.h>
+#include <linux/interrupt.h>
+#include <linux/kernel_stat.h>
+#include <linux/param.h>
+#include <linux/timex.h>
+#include <linux/mm.h>
+
+#include <asm/sn/klconfig.h>
+
+lboard_t *find_lboard(unsigned int type)
+{
+ lboard_t *b;
+
+ for (
+b = KL_CONFIG_INFO(get_nasid());
+b;
+b = KLCF_NEXT(b)) {
+ if (KLCF_REMOTE(b))
+ continue; /* Skip remote boards. */
+
+ if (b->brd_type == type)
+ return (lboard_t *) b;
+ }
+
+ return NULL;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)