summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27/ip27-klconfig.c
blob: 54073abfd35db47ada0eb527d1ccb4ab39b65748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* $Id$
 *
 * 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;
}