1: /*
   2:  * Copyright (c) 1982, 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:  *	@(#)adreg.h	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: struct addevice {
  10:     short int ad_csr;           /* Control status register */
  11:     short int ad_data;          /* Data buffer */
  12: };
  13: 
  14: #define AD_CHAN     ADIOSCHAN
  15: #define AD_READ     ADIOGETW
  16: #define ADIOSCHAN   _IOW(a, 0, int)     /* set channel */
  17: #define ADIOGETW    _IOR(a, 1, int)     /* read one word */
  18: 
  19: /*
  20:  * Unibus CSR register bits
  21:  */
  22: 
  23: #define AD_START        01
  24: #define AD_SCHMITT      020
  25: #define AD_CLOCK        040
  26: #define AD_IENABLE      0100
  27: #define AD_DONE         0200
  28: #define AD_INCENABLE        040000
  29: #define AD_ERROR        0100000

Defined struct's

addevice defined in line 9; used 18 times

Defined macros

ADIOGETW defined in line 17; used 1 times
  • in line 15
ADIOSCHAN defined in line 16; used 1 times
  • in line 14
AD_CHAN defined in line 14; never used
AD_CLOCK defined in line 25; never used
AD_DONE defined in line 27; never used
AD_ERROR defined in line 29; never used
AD_IENABLE defined in line 26; used 3 times
AD_INCENABLE defined in line 28; never used
AD_READ defined in line 15; never used
AD_SCHMITT defined in line 24; never used
AD_START defined in line 23; used 3 times

Usage of this include

adreg.h used 1 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 804
Valid CSS Valid XHTML 1.0 Strict