atapi.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
*/
#ifndef _ATAPI_H
#define _ATAPI_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Additional atapi status bits (redefinitions)
*/
/*
* Status bits from ATAPI Interrupt reason register (AT_COUNT) register
*/
/* ATAPI feature reg definitions */
#define ATF_OVERLAP 0x02
/*
* ATAPI commands.
*/
/*
* ATAPI IDENTIFY_DRIVE configuration word
*/
#define ATAPI_ID_CFG_PKT_SZ 0x3
#define ATAPI_ID_CFG_PKT_12B 0x0
#define ATAPI_ID_CFG_PKT_16B 0x1
#define ATAPI_ID_CFG_DRQ_TYPE 0x60
#define ATAPI_ID_CFG_DRQ_INTR 0x20
#define ATAPI_ID_CFG_DEV_TYPE 0x0f00
#define ATAPI_ID_CFG_DEV_SHFT 8
/*
* ATAPI IDENTIFY_DRIVE capabilities word
*/
#define ATAPI_ID_CAP_DMA 0x0100
#define ATAPI_ID_CAP_OVERLAP 0x2000
/*
* ATAPI SET FEATURE commands
*/
#define ATAPI_FEAT_RELEASE_INTR 0x5d
#define ATAPI_FEAT_SERVICE_INTR 0x5e
/*
* ATAPI bits
*/
#define ATAPI_SECTOR_SIZE 2048
#define ATAPI_HEADS 64
#define ATAPI_SECTORS_PER_TRK 32
/*
* Useful macros
*/
/*
* public function prototypes
*/
#ifdef DSC_OVERLAP_SUPPORT
#endif
#ifdef __cplusplus
}
#endif
#endif /* _ATAPI_H */