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
Defined struct's
Defined typedef's
DTAB
defined in line
32; used 13 times
HAND
defined in line
18; used 13 times
NLIST
defined in line
12; used 12 times
Defined macros
EOS
defined in line
36; used 3 times
ERR
defined in line
37; used 1 times
Usage of this include