xref: /titanic_41/usr/src/uts/sun/sys/dada/impl/services.h (revision ba2e4443695ee6a6f420a35cd4fc3d3346d22932)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 
23 /*
24  * Copyright (c) 1996, by Sun MicroSystems, Inc.
25  * All rights reserved.
26  */
27 
28 #ifndef	_SYS_DADA_IMPL_SERVICES_H
29 #define	_SYS_DADA_IMPL_SERVICES_H
30 
31 #pragma ident	"%Z%%M%	%I%	%E% SMI"
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 #ifdef _KERNEL
38 #ifdef	__STDC__
39 
40 #ifdef NOT_NEEDED
41 extern int dcd_poll(struct dcd_pkt *);
42 #endif
43 
44 #else
45 extern int dcd_poll();
46 #endif
47 
48 
49 #define	DCD_DEBUG	0xDEB00000
50 
51 #define	DCD_ERR_ALL		0
52 #define	DCD_ERR_UNKONOW		1
53 #define	DCD_ERR_INFO		2
54 #define	DCD_ERR_RECOVERED	3
55 #define	DCD_ERR_RETRYABLE	4
56 #define	DCD_ERR_FATAL		5
57 #define	DCD_ERR_NONE		6
58 
59 
60 /*
61  * Common Capability strings array
62  */
63 
64 #define	DCD_CAP_DMA_MAX		0
65 #define	DCD_CAP_ULTRA_ATA	1
66 #define	DCD_CAP_BUS_MASTER	2
67 #define	DCD_CAP_OVERLAP		3
68 #define	DCD_CAP_PARITY		4
69 #define	DCD_CAP_SECTOR_SIZE	5
70 #define	DCD_CAP_TOTAL_SECTORS	6
71 #define	DCD_CAP_GEOMETRY	7
72 #define	DCD_CAP_BLOCKMODE	8
73 #define	DCD_CAP_BLOCKFACTOR	9
74 #define	DCD_CAP_DMA_SUPPORT	10
75 #define	DCD_CAP_PIO_SUPPORT	11
76 #define	DCD_CAP_LBA_ADDRESSING	12
77 
78 #endif
79 
80 #ifdef	__cplusplus
81 }
82 #endif
83 
84 #endif	/* _SYS_DADA_IMPL_SERVICES_H */
85