Put tslb_device structure in this file. Put a pointer to to primary

CPU's structure.
This commit is contained in:
Matt Jacob 2000-01-29 16:40:17 +00:00
parent 602d8494a9
commit cd6421ca76
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56851

View File

@ -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