# 2.11BSD#431 - /usr/src/sys/pdpuba/sireg.h

##### Macros

    SIERR_BITS        X
    SIERR_CNT         X
    SIERR_ERR         X
    SIERR_TIMO        X
    SISSR_BITS        X
    SISSR_BUSY        X
    SISSR_DONE        X
    SISSR_ERR         X
    SISSR_NRDY        X
    SI_BITS           X
    SI_DONE           X
    SI_GO             X
    SI_IE             X
    SI_OFM            X
    SI_OFP            X
    SI_READ           X
    SI_RESET          X
    SI_WRITE          X

##### struct's

    sidevice          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:  *	@(#)sireg.h	1.1 (2.10BSD Berkeley) 12/1/86
       7:  */
       8:
       9: /*
      10:  *	Definitions for Systems Industries 9500 controller.
      11:  */
      12:
      13: /*
      14:  *	Controller registers and bits
      15:  */
      16: struct sidevice
      17: {
      18:     short   sicnr;      /* control register */
      19:     short   siwcr;      /* word count register */
      20:     short   sipcr;      /* port/cylinder address register */
      21:     short   sihsr;      /* head/sector address register */
      22:     caddr_t simar;      /* UNIBUS memory address register */
      23:     short   sierr;      /* error register */
      24:     short   sissr;      /* seek status register */
      25:     short   sisar;      /* seek address register */
      26:     short   sidbr;      /* data buffer register (unused) */
      27:     short   sicom;      /* communications register */
      28:     short   siscr;      /* shared computer option register */
      29: };
      30:
      31: /* Other bits of sicnr */
      32: #define SI_OFP      0040000     /* offset+ */
      33: #define SI_OFM      0020000     /* offset- */
      34: #define SI_DONE     0000200     /* done */
      35: #define SI_IE       0000100     /* interrupt enable */
      36: #define SI_READ     0000004     /* read command */
      37: #define SI_WRITE    0000002     /* write command */
      38: #define SI_GO       0000001
      39: #define SI_RESET    0000000     /* logic master clear */
      40: #define SI_BITS     \
      41: "\10\10DONE\7IE\3READ\2WRITE\1GO"
      42:
      43: /* sierr */
      44: #define SIERR_ERR   0100000     /* error */
      45: #define SIERR_CNT   0140000     /* contention error */
      46: #define SIERR_TIMO  0020000     /* timeout error */
      47:
      48: #define SIERR_BITS \
      49: "\10\20ERR\17CNT\16TMO\15SEL\14FLT\13WLK\12BSE\11FMT\10SKI\
      50: \7AVE\6CRC\5VFY\4TMG\2OSE\1OSC"
      51:
      52: /* sissr */
      53: #define SISSR_DONE  010     /* Seek complete */
      54: #define SISSR_ERR   004     /* Hardware seek error */
      55: #define SISSR_BUSY  002     /* Busy error */
      56: #define SISSR_NRDY  001     /* Not ready to seek */
      57:
      58: #define SISSR_BITS \
      59: "\10\20DONE4\17ERR4\16BUSY4\15NRDY4\
      60: \14DONE3\13ERR3\12BUSY3\11NRDY3\
      61: \10DONE2\7ERR2\6BUSY2\5NRDY2\
      62: \4DONE1\3ERR1\2BUSY1\1NRDY1"

#### Defined struct's

sidevice defined in line 16; used 34 times

- in /usr/src/sys/autoconfig/siauto.c line 16(2)
- in /usr/src/sys/pdpstand/si.c line 17-21(8), 36(2)
- in /usr/src/sys/pdpuba/si.c line 59(2), 76-80(4), 92(2), 101(2), 126(2), 168(2), 249(2), 328(2), 414(2), 474(2)

#### Defined macros

SIERR_BITS defined in line 48; used 2 times

- in /usr/src/sys/pdpuba/si.c line 358, 392

SIERR_CNT defined in line 45; used 4 times

- in /usr/src/sys/pdpstand/si.c line 55(2)
- in /usr/src/sys/pdpuba/si.c line 97(2)

SIERR_ERR defined in line 44; used 7 times

- in /usr/src/sys/pdpstand/si.c line 55(2), 79
- in /usr/src/sys/pdpuba/si.c line 97(2), 349, 461

SIERR_TIMO defined in line 46; used 1 times

- in /usr/src/sys/pdpuba/si.c line 462

SISSR_BITS defined in line 58; used 1 times

- in /usr/src/sys/pdpuba/si.c line 392

SISSR_BUSY defined in line 55; used 1 times

- in /usr/src/sys/pdpuba/si.c line 389

SISSR_DONE defined in line 53; used 1 times

- in /usr/src/sys/pdpuba/si.c line 396

SISSR_ERR defined in line 54; used 1 times

- in /usr/src/sys/pdpuba/si.c line 389

SISSR_NRDY defined in line 56; used 2 times

- in /usr/src/sys/pdpuba/si.c line 197, 285

SI_BITS defined in line 40; used 1 times

- in /usr/src/sys/pdpuba/si.c line 358

SI_DONE defined in line 34; used 3 times

- in /usr/src/sys/autoconfig/siauto.c line 20
- in /usr/src/sys/pdpstand/si.c line 76
- in /usr/src/sys/pdpuba/si.c line 459

SI_GO defined in line 38; used 4 times

- in /usr/src/sys/pdpstand/si.c line 68
- in /usr/src/sys/pdpuba/si.c line 305, 452-457(2)

SI_IE defined in line 35; used 4 times

- in /usr/src/sys/autoconfig/siauto.c line 19-20(2)
- in /usr/src/sys/pdpuba/si.c line 305, 365

SI_OFM defined in line 33; used 1 times

- in /usr/src/sys/pdpuba/si.c line 61

SI_OFP defined in line 32; used 1 times

- in /usr/src/sys/pdpuba/si.c line 61

SI_READ defined in line 36; used 4 times

- in /usr/src/sys/autoconfig/siauto.c line 19-20(2)
- in /usr/src/sys/pdpstand/si.c line 70
- in /usr/src/sys/pdpuba/si.c line 307

SI_RESET defined in line 39; used 4 times

- in /usr/src/sys/pdpstand/si.c line 60
- in /usr/src/sys/pdpuba/si.c line 362, 433, 478

SI_WRITE defined in line 37; used 4 times

- in /usr/src/sys/pdpstand/si.c line 72
- in /usr/src/sys/pdpuba/si.c line 309, 452-457(2)

#### Usage of this include

sireg.h used 3 times

- in /usr/src/sys/autoconfig/siauto.c line 13
- in /usr/src/sys/pdpstand/si.c line 12
- in /usr/src/sys/pdpuba/si.c line 21

Last modified: 1987-01-09 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 598 |