summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-04-06 19:09:51 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-04-06 19:09:51 +0000
commit883df95ae052284f135dab080cce056e38ee3d6d (patch)
treed5e82a51dd9ead2628833adcbd9309d86f686792 /sys/arch/sgi/include
parente6802ee194ced74b1e5840557dcbe12a9d7824b8 (diff)
Add more KL grovelling routines: one routine to enumerate on all nodes,
and routines to turn a KL console and a KL component structs, respectively, into struct sgi_device_location for further device identification. XXX Due to the way PCI devices are numbered on PIC buses, this code is tainted XXX by knowledge about PIC widgets, to compensate. I have considered changing XXX xbridge(4) to have our PCI device numbering match KL on PIC-connected XXX devices, but I expect this to be even uglier. This is not settled yet.
Diffstat (limited to 'sys/arch/sgi/include')
-rw-r--r--sys/arch/sgi/include/mnode.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sgi/include/mnode.h b/sys/arch/sgi/include/mnode.h
index a7d69814d07..f1ee600a3ca 100644
--- a/sys/arch/sgi/include/mnode.h
+++ b/sys/arch/sgi/include/mnode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mnode.h,v 1.14 2010/03/21 13:52:03 miod Exp $ */
+/* $OpenBSD: mnode.h,v 1.15 2010/04/06 19:09:44 miod Exp $ */
/*
* Copyright (c) 2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -468,14 +468,18 @@ typedef struct gda {
console_t *kl_get_console(void);
void kl_init(int);
-void kl_scan_config(int, int16_t);
+int kl_scan_all_nodes(uint, int (*)(lboard_t *, void *), void *);
int kl_scan_node(int, uint, int (*)(lboard_t *, void *), void *);
#define KLBRD_ANY 0
int kl_scan_board(lboard_t *, uint, int (*)(klinfo_t *, void *), void *);
#define KLSTRUCT_ANY ((uint)~0)
+void kl_get_location(klinfo_t *, struct sgi_device_location *);
+void kl_get_console_location(console_t *, struct sgi_device_location *);
extern int kl_n_mode;
extern u_int kl_n_shift;
extern klinfo_t *kl_glass_console;
+extern gda_t *gda;
+extern uint maxnodes;
#endif /* __MACHINE_MNODE_H__ */