1/*- 2 * Copyright (c) 1998,1999,2000 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/ata/ata-all.h 56138 2000-01-17 02:04:19Z sos $ |
29 */ 30 31/* ATA register defines */ 32#define ATA_DATA 0x00 /* data register */ 33#define ATA_ERROR 0x01 /* (R) error register */ 34#define ATA_E_NM 0x02 /* no media */ 35#define ATA_E_ABORT 0x04 /* command aborted */ 36#define ATA_E_MCR 0x08 /* media change request */ --- 106 unchanged lines hidden (view full) --- 143#define ATA_PIO4 0x0c 144#define ATA_WDMA2 0x22 145#define ATA_UDMA2 0x42 146#define ATA_UDMA4 0x44 147 148 int32_t flags; /* controller flags */ 149#define ATA_DMA_ACTIVE 0x01 150#define ATA_ATAPI_DMA_RO 0x02 |
151#define ATA_USE_16BIT 0x04 |
152 153 int32_t devices; /* what is present */ 154#define ATA_ATA_MASTER 0x01 155#define ATA_ATA_SLAVE 0x02 156#define ATA_ATAPI_MASTER 0x04 157#define ATA_ATAPI_SLAVE 0x08 158 159 u_int8_t status; /* last controller status */ --- 40 unchanged lines hidden --- |