/* Lark.h
   Stewart, July 30, 1982  5:33 PM
   Stewart, February 23, 1983  2:54 PM, Interrupt enable mech.
   Stewart, April 30, 1983  10:38 AM, added PIO stuff.
 */

/* 8255 */
#define	pioctl	0x0000
#define	pioa	0x0006
#define	piob	0x0004
#define	pioc	0x0002

/* 8237 */
#define dmabase	0x0010
#define dmaad0	0x0010
#define dmawc0	0x0011
#define dmaad1	0x0012
#define dmawc1	0x0013
#define dmaad2	0x0014
#define dmawc2	0x0015
#define dmaad3	0x0016
#define dmawc3	0x0017
#define dmastat	0x0018
#define dmacmd	0x0018
#define dmareq	0x0019
#define dmasmsk	0x001A
#define dmamode	0x001B
#define dmacbp	0x001C
#define dmartmp	0x001D
#define dmaclr	0x001D
#define dmamask	0x001F

/* 9513 */
#define TimData	0x0062
#define TimCtl	0x0060

/* 8274 */
#define sioctla 0x0032
#define siodata 0x0036
#define sioctlb 0x0030
#define siodatb 0x0034

/* 8259 */
#define intctl	0x0052
#define intdata	0x0050

/* interrupt mask bits */
#define SLRTyp	0x0000
#define SLTTyp	0x0001
#define EncTyp	0x0002
#define SIOTyp	0x0003
#define AlATyp	0x0004
#define AlBTyp	0x0005
#define AlCTyp	0x0006
#define AlDTyp	0x0007

/* Audio pio */
#define	apioctl	0x0070
#define	apioa	0x0076
#define	apiob	0x0074
#define	apioc	0x0072

/* 2001 */
#define encctl	0x0040
#define encdata	0x0042

/* clock */
#define	clklo	0xda1e
#define	clkhi	0xda20

/* PIO interface data */
#define	SwData	0x0001
#define	SwStb0	0x0010
#define	ipioa	0
#define	ipiob	1
#define	ipioc	2
#define	iapioa	3
#define	iapiob	4
#define	iapioc	5

/* audio input bits */

#define	AIDTMF	1
#define	AISwitch	2
#define	AIRing	4
#define	AIHookSwitch	8