pciide.h revision 507c32411f3f101e90ca2120f042b5ee698ba1d5
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PCIIDE_H
#define _PCIIDE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Bus Mastering devices have a PCI class-code of 0x010180 to 0x0101ff
*/
#define PCIIDE_BM_CAP_MASK 0x80
#define PCIIDE_BM_CLASS_MASK 0xffffff80
#define PCIIDE_BMICX_REG 0 /* Bus Master IDE Command Register */
/* 0=Start (Disable) */
/*
* NOTE: "read" and "write" are the actions of the DMA
* engine on the PCI bus. Not the DMA engine's action on the ATA
* BUS. Therefore for a ATA READ command, program the DMA engine to
* "write to memory" mode (and vice versa).
*/
/* preserve these bits during updates */
/* preserve these bits during updates */
#define PCIIDE_BMISX_MASK 0xf8
typedef struct PhysicalRegionDescriptorTableEntry {
} prde_t;
/*
* Some specs say the p_address must 32-bit aligned, and some claim
* 16-bit alignment. Use 32-bit alignment just to be safe.
*/
#ifdef __not_yet__
#else
#endif
#ifdef __cplusplus
}
#endif
#endif /* _PCIIDE_H */