# 2.11BSD#431 - /usr/src/sys/autoconfig/dtab.h

##### Variables

    devs              X

##### Macros

    EOS               X
    ERR               X

##### struct's

    dtab_s            X
    handler_s         X

##### typedef's

    DTAB              X
    HAND              X
    NLIST             X

       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

devs defined in line 34; used 5 times

- in /usr/src/sys/autoconfig/do_config.c line 95
- in /usr/src/sys/autoconfig/read_dtab.c line 48, 96-97(2)
- in /usr/src/sys/autoconfig/read_nlist.c line 59

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

DTAB defined in line 32; used 13 times

- in line 34
- in /usr/src/sys/autoconfig/attach.c line 34, 100, 133
- in /usr/src/sys/autoconfig/do_config.c line 58, 84, 196, 259, 283
- in /usr/src/sys/autoconfig/read_dtab.c line 29, 58(2)
- in /usr/src/sys/autoconfig/read_nlist.c line 44

HAND defined in line 18; used 13 times

- in line 26
- in /usr/src/sys/autoconfig/attach.c line 40, 62
- in /usr/src/sys/autoconfig/do_config.c line 198, 243
- in /usr/src/sys/autoconfig/read_dtab.c line 32, 70, 107-114(4)
- in /usr/src/sys/autoconfig/read_nlist.c line 47(2)

NLIST defined in line 12; used 12 times

- in line 17, 29
- in /usr/src/sys/autoconfig/do_config.c line 26-27(2)
- in /usr/src/sys/autoconfig/read_dtab.c line 69
- in /usr/src/sys/autoconfig/read_nlist.c line 28, 42, 56-58(3), 131-135(2)

#### Defined macros

EOS defined in line 36; used 3 times

- in /usr/src/sys/autoconfig/read_dtab.c line 50, 77
- in /usr/src/sys/autoconfig/read_nlist.c line 118

ERR defined in line 37; used 1 times

- in /usr/src/sys/autoconfig/attach.c line 167

#### Usage of this include

dtab.h used 4 times

- in /usr/src/sys/autoconfig/attach.c line 27
- in /usr/src/sys/autoconfig/do_config.c line 22
- in /usr/src/sys/autoconfig/read_dtab.c line 13
- in /usr/src/sys/autoconfig/read_nlist.c line 20

Last modified: 1992-11-20 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 578 |