1: /*
   2:  * Copyright (c) 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)dtab.h	2.0 (2.11BSD GTE) 11/20/92
   7:  */
   8: 
   9: /*
  10:  * Internal structure used to store info from the device table
  11:  */
  12: typedef struct nlist    NLIST;
  13: 
  14: typedef struct handler_s {
  15:     struct handler_s    *s_next;
  16:     char    *s_str;
  17:     NLIST   *s_nl;
  18: } HAND;
  19: 
  20: typedef struct dtab_s {
  21:     struct dtab_s   *dt_next;   /* Next device in list */
  22:     char    *dt_name;       /* Two character device name */
  23:     int dt_unit;        /* Unit number, -1 is wildcard */
  24:     int dt_addr;        /* CSR address */
  25:     int dt_vector;      /* Interrupt vector */
  26:     HAND    *dt_handlers;       /* Interrupt handlers */
  27:     int dt_br;          /* Priority */
  28:     int (*dt_uprobe)();     /* User-level (internal) probe */
  29:     NLIST   *dt_probe,      /* Address of probe function */
  30:         *dt_setvec,     /* Address of vector set function */
  31:         *dt_attach;     /* Address of attach function */
  32: } DTAB;
  33: 
  34: DTAB    *devs;              /* Head of device list */
  35: 
  36: #define EOS '\0'            /* end of string */
  37: #define ERR -1          /* general error */
  38: extern char *myname,        /* program name */
  39:         *dtab_name;     /* dtab file name */

Defined variables

Defined struct's

dtab_s defined in line 20; used 2 times
  • in line 21(2)
handler_s defined in line 14; used 2 times
  • in line 15(2)

Defined typedef's

NLIST defined in line 12; used 12 times

Defined macros

ERR defined in line 37; used 1 times

Usage of this include

Last modified: 1992-11-20
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2454
Valid CSS Valid XHTML 1.0 Strict