From cd6421ca76c02f402ad7fdef4fb44c2fdd21cdc2 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sat, 29 Jan 2000 16:40:17 +0000 Subject: [PATCH] Put tslb_device structure in this file. Put a pointer to to primary CPU's structure. --- sys/alpha/tlsb/tlsbvar.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/alpha/tlsb/tlsbvar.h b/sys/alpha/tlsb/tlsbvar.h index f8690b4a40c9..81fe23ccad42 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