4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
38 * Rounded parameter, as returned in Extended Sense information
40 #define ROUNDED_PARAMETER 0x37
44 * Convert a three-byte triplet into an int
46 #define TRIPLET(u, m, l) ((int)((((u))&0xff<<16) + \
47 (((m)&0xff)<<8) + (l&0xff)))
49 diskaddr_t altsec_offset
; /* Alternate sector offset */
50 #endif /* defined(i386) */
54 * Local prototypes for ANSI C compilers
58 int ata_rdwr(int, int, diskaddr_t
, int, caddr_t
, int, int *);
59 #else /* defined(i386) */
60 static int ata_rdwr(int, int, diskaddr_t
, int, caddr_t
, int, int *);
61 #endif /* defined(i386) */
63 int ata_ex_man(struct defect_list
*);
64 int ata_ex_grown(struct defect_list
*);
65 int ata_read_defect_data(struct defect_list
*, int);
66 int apply_chg_list(int, int, uchar_t
*, uchar_t
*, struct chg_list
*);
73 #else /* defined(i386) */
74 static int ata_rdwr();
75 static int ata_ex_cur();
76 #endif /* defined(i386) */
81 int ata_read_defect_data();
90 #endif /* _CTLR_ATA_H */