add event counters; expand dv_xname for external use; fix copyright
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Tue, 17 Nov 1992 10:27:45 +0000 (02:27 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Tue, 17 Nov 1992 10:27:45 +0000 (02:27 -0800)
SCCS-vsn: sys/sys/device.h 7.5

usr/src/sys/sys/device.h

index dc2f26b..8596b59 100644 (file)
@@ -6,11 +6,16 @@
  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
  * contributed to Berkeley.
  *
  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
  * contributed to Berkeley.
  *
+ * All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Lawrence Berkeley Laboratories.
+ *
  * %sccs.include.redist.c%
  *
  *     @(#)device.h    7.5 (Berkeley) %G%
  *
  * %sccs.include.redist.c%
  *
  *     @(#)device.h    7.5 (Berkeley) %G%
  *
- * from: $Header: device.h,v 1.6 92/06/11 17:56:45 torek Exp $ (LBL)
+ * from: $Header: device.h,v 1.7 92/11/17 01:55:17 torek Exp $ (LBL)
  */
 
 /*
  */
 
 /*
@@ -30,10 +35,11 @@ struct device {
        enum    devclass dv_class;      /* this device's classification */
        struct  device *dv_next;        /* next in list of all */
        struct  cfdata *dv_cfdata;      /* config data that found us */
        enum    devclass dv_class;      /* this device's classification */
        struct  device *dv_next;        /* next in list of all */
        struct  cfdata *dv_cfdata;      /* config data that found us */
-       char    *dv_name;               /* device name */
        int     dv_unit;                /* device unit number */
        int     dv_unit;                /* device unit number */
-       char    *dv_xname;              /* expanded name (name + unit) */
+       char    dv_xname[16];           /* external name (name + unit) */
        struct  device *dv_parent;      /* pointer to parent device */
        struct  device *dv_parent;      /* pointer to parent device */
+       int     dv_evcnt[2];            /* event counters */
+       char    dv_evnam[2][8];         /* and their names */
 };
 
 /*
 };
 
 /*
@@ -70,6 +76,7 @@ struct cfdriver {
        enum    devclass cd_class;      /* device classification */
        size_t  cd_devsize;             /* size of dev data (for malloc) */
        void    *cd_aux;                /* additional driver, if any */
        enum    devclass cd_class;      /* device classification */
        size_t  cd_devsize;             /* size of dev data (for malloc) */
        void    *cd_aux;                /* additional driver, if any */
+       char    cd_evnam[2][8];         /* names for dv_evnam */
        int     cd_ndevs;               /* size of cd_devs array */
 };
 
        int     cd_ndevs;               /* size of cd_devs array */
 };