xref: /titanic_50/usr/src/uts/i86pc/sys/mcdma.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1992 Sun Microsystems, Inc.  All Rights Reserved.
24*7c478bd9Sstevel@tonic-gate  */
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #ifndef _SYS_MCDMA_H
27*7c478bd9Sstevel@tonic-gate #define	_SYS_MCDMA_H
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
32*7c478bd9Sstevel@tonic-gate extern "C" {
33*7c478bd9Sstevel@tonic-gate #endif
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate /*
36*7c478bd9Sstevel@tonic-gate  * Defines for PS/2 DMA controllers.
37*7c478bd9Sstevel@tonic-gate  */
38*7c478bd9Sstevel@tonic-gate 
39*7c478bd9Sstevel@tonic-gate /*
40*7c478bd9Sstevel@tonic-gate  * PS/2 DMA extended mode definitions
41*7c478bd9Sstevel@tonic-gate  *
42*7c478bd9Sstevel@tonic-gate  */
43*7c478bd9Sstevel@tonic-gate #define	PS2DMA_CTL	0x18	/* function register		*/
44*7c478bd9Sstevel@tonic-gate #define	PS2DMA_DAT	0x1A	/* execute function register	*/
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate #define	PS2DMA_IOR	0x0	/* I/O address register		*/
47*7c478bd9Sstevel@tonic-gate #define	PS2DMA_MAR	0x20	/* memory address register	*/
48*7c478bd9Sstevel@tonic-gate #define	PS2DMA_RMA	0x30	/* read memory address register	*/
49*7c478bd9Sstevel@tonic-gate #define	PS2DMA_TCR	0x40	/* transfer count register	*/
50*7c478bd9Sstevel@tonic-gate #define	PS2DMA_RTC	0x50	/* read transfer count register	*/
51*7c478bd9Sstevel@tonic-gate #define	PS2DMA_STR	0x60	/* read status register		*/
52*7c478bd9Sstevel@tonic-gate #define	PS2DMA_WMR	0x70	/* write mode register		*/
53*7c478bd9Sstevel@tonic-gate #define	PS2DMA_ARB	0x80	/* arbus register		*/
54*7c478bd9Sstevel@tonic-gate #define	PS2DMA_SMK	0x90	/* set mask bit			*/
55*7c478bd9Sstevel@tonic-gate #define	PS2DMA_CMK	0xA0	/* clear mask bit		*/
56*7c478bd9Sstevel@tonic-gate 
57*7c478bd9Sstevel@tonic-gate 
58*7c478bd9Sstevel@tonic-gate #define	PS2DMA_M8	0x00	/* 8-bit mode			*/
59*7c478bd9Sstevel@tonic-gate #define	PS2DMA_M16	0x40	/* 16-bit mode			*/
60*7c478bd9Sstevel@tonic-gate #define	PS2DMA_MVF	0x00	/* mode for verify operation	*/
61*7c478bd9Sstevel@tonic-gate #define	PS2DMA_MRD	0x0C	/* mode for read operation	*/
62*7c478bd9Sstevel@tonic-gate #define	PS2DMA_MWT	0x04	/* mode for write operation	*/
63*7c478bd9Sstevel@tonic-gate #define	PS2DMA_MIO	0x01	/* use i/o address reg		*/
64*7c478bd9Sstevel@tonic-gate 
65*7c478bd9Sstevel@tonic-gate /* the following read & write are relative to memory, not the device */
66*7c478bd9Sstevel@tonic-gate #define	PS2DMA_RD	0x44	/* 16-bit read mode		*/
67*7c478bd9Sstevel@tonic-gate #define	PS2DMA_WR	0x4C	/* 16-bit write mode		*/
68*7c478bd9Sstevel@tonic-gate 
69*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
70*7c478bd9Sstevel@tonic-gate }
71*7c478bd9Sstevel@tonic-gate #endif
72*7c478bd9Sstevel@tonic-gate 
73*7c478bd9Sstevel@tonic-gate #endif	/* _SYS_MCDMA_H */
74