summaryrefslogtreecommitdiffstats
path: root/sys/alpha/tlsb/tlsbvar.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-01-29 16:40:17 +0000
committermjacob <mjacob@FreeBSD.org>2000-01-29 16:40:17 +0000
commit32980fbceb523ec38028377e75570400318e2e2e (patch)
treec901382982a33a88a222feddcee6afaf6e51cbe4 /sys/alpha/tlsb/tlsbvar.h
parentc9c14d15b4a8b619e42160d46ef143141c816d35 (diff)
downloadFreeBSD-src-32980fbceb523ec38028377e75570400318e2e2e.zip
FreeBSD-src-32980fbceb523ec38028377e75570400318e2e2e.tar.gz
Put tslb_device structure in this file. Put a pointer to to primary
CPU's structure.
Diffstat (limited to 'sys/alpha/tlsb/tlsbvar.h')
-rw-r--r--sys/alpha/tlsb/tlsbvar.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/alpha/tlsb/tlsbvar.h b/sys/alpha/tlsb/tlsbvar.h
index f8690b4..81fe23c 100644
--- a/sys/alpha/tlsb/tlsbvar.h
+++ b/sys/alpha/tlsb/tlsbvar.h
@@ -2,7 +2,7 @@
/* $NetBSD: tlsbvar.h,v 1.5 1998/05/13 23:23:23 thorpej Exp $ */
/*
- * Copyright (c) 1997 by Matthew Jacob
+ * Copyright (c) 1997, 2000 by Matthew Jacob
* NASA AMES Research Center.
* All rights reserved.
*
@@ -73,3 +73,15 @@ struct tlsb_cpu_busdep {
u_int8_t tcpu_vid; /* virtual ID of CPU */
int tcpu_node; /* TurboLaser node */
};
+
+/*
+ * The structure used to attach devices to the TurboLaser.
+ */
+struct tlsb_device {
+ int td_node; /* node number (TLSB slot) */
+ u_int32_t td_tldev; /* tl device id */
+};
+#define DEVTOTLSB(dev) ((struct tlsb_device *) device_get_ivars(dev))
+#ifdef _KERNEL
+extern struct tlsb_device *tlsb_primary_cpu;
+#endif
OpenPOWER on IntegriCloud