Annotation of sys/dev/ic/z8536reg.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: z8536reg.h,v 1.2 2003/06/09 16:34:22 deraadt Exp $ */
! 2:
! 3: /*
! 4: * Copyright (c) 1997 Per Fogelstrom
! 5: *
! 6: * Redistribution and use in source and binary forms, with or without
! 7: * modification, are permitted provided that the following conditions
! 8: * are met:
! 9: * 1. Redistributions of source code must retain the above copyright
! 10: * notice, this list of conditions and the following disclaimer.
! 11: * 2. Redistributions in binary form must reproduce the above copyright
! 12: * notice, this list of conditions and the following disclaimer in the
! 13: * documentation and/or other materials provided with the distribution.
! 14: *
! 15: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
! 16: * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
! 17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 18: * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
! 19: * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 20: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 21: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 22: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 23: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 24: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 25: * SUCH DAMAGE.
! 26: *
! 27: */
! 28: /*
! 29: * Zilog CIO registers.
! 30: */
! 31: #define ZCIO_MIC 0 /* Master Interrupt Control */
! 32: #define ZCIO_MCC 1 /* Master Configuration Control */
! 33: #define ZCIO_PAIV 2 /* Port A, Interrupt Vector */
! 34: #define ZCIO_PBIV 3 /* Port B, Interrupt Vector */
! 35: #define ZCIO_CTIV 4 /* Counter/Timer, Interrupt Vector */
! 36: #define ZCIO_PCPOL 5 /* Port C, Data Path Polarity */
! 37: #define ZCIO_PCDIR 6 /* Port C, Data Direction */
! 38: #define ZCIO_PCSIOC 7 /* Port C, Special I/O Control */
! 39:
! 40: #define ZCIO_PACS 8 /* Port A, Command and Status */
! 41: #define ZCIO_PBCS 9 /* Port B, Command and Status */
! 42: #define ZCIO_CT1CS 10 /* Counter 1, Command and Status */
! 43: #define ZCIO_CT2CS 11 /* Counter 2, Command and Status */
! 44: #define ZCIO_CT3CS 12 /* Counter 2, Command and Status */
! 45: #define ZCIO_PADATA 13 /* Port A Data (can be accessed directly) */
! 46: #define ZCIO_PBDATA 14 /* Port B Data (can be accessed directly) */
! 47: #define ZCIO_PCDATA 15 /* Port C Data (can be accessed directly) */
! 48:
! 49: #define ZCIO_CT1CCM 16 /* Counter/Timer 1 Current Count MSB */
! 50: #define ZCIO_CT1CCL 17 /* Counter/Timer 1 Current Count LSB */
! 51: #define ZCIO_CT2CCM 18 /* Counter/Timer 2 Current Count MSB */
! 52: #define ZCIO_CT2CCL 19 /* Counter/Timer 2 Current Count LSB */
! 53: #define ZCIO_CT3CCM 20 /* Counter/Timer 3 Current Count MSB */
! 54: #define ZCIO_CT3CCL 21 /* Counter/Timer 3 Current Count LSB */
! 55: #define ZCIO_CT1TCM 22 /* Counter/Timer 1 Time Constant MSB */
! 56: #define ZCIO_CT1TCL 23 /* Counter/Timer 1 Time Constant LSB */
! 57: #define ZCIO_CT2TCM 24 /* Counter/Timer 2 Time Constant MSB */
! 58: #define ZCIO_CT2TCL 25 /* Counter/Timer 2 Time Constant LSB */
! 59: #define ZCIO_CT3TCM 26 /* Counter/Timer 3 Time Constant MSB */
! 60: #define ZCIO_CT3TCL 27 /* Counter/Timer 3 Time Constant LSB */
! 61: #define ZCIO_CT1MD 28 /* Counter/Timer 1 Mode Specification */
! 62: #define ZCIO_CT2MD 29 /* Counter/Timer 2 Mode Specification */
! 63: #define ZCIO_CT3MD 30 /* Counter/Timer 3 Mode Specification */
! 64:
! 65: #define ZCIO_CVEC 31 /* Current Vector */
! 66:
! 67: #define ZCIO_PAMD 32 /* Port A Mode Specification */
! 68: #define ZCIO_PAHS 33 /* Port A Handshake Specification */
! 69: #define ZCIO_PAPOL 34 /* Port A Polarity Specification */
! 70: #define ZCIO_PADIR 35 /* Port A Direction Specification */
! 71: #define ZCIO_PASIOC 36 /* Port A Special I/O Specification */
! 72: #define ZCIO_PASPP 37 /* Port A Pattern Polarity Specification */
! 73: #define ZCIO_PASPT 38 /* Port A Pattern Transition Specification */
! 74: #define ZCIO_PASPM 39 /* Port A Pattern MASK Specification */
! 75:
! 76: #define ZCIO_PBMD 40 /* Port B Mode Specification */
! 77: #define ZCIO_PBHS 41 /* Port B Handshake Specification */
! 78: #define ZCIO_PBPOL 42 /* Port B Polarity Specification */
! 79: #define ZCIO_PBDIR 43 /* Port B Direction Specification */
! 80: #define ZCIO_PBSIOC 44 /* Port B Special I/O Specification */
! 81: #define ZCIO_PBSPP 45 /* Port B Pattern Polarity Specification */
! 82: #define ZCIO_PBSPT 46 /* Port B Pattern Transition Specification */
! 83: #define ZCIO_PBSPM 47 /* Port B Pattern MASK Specification */
CVSweb