Deleted Added
full compact
ata-all.h (52918) ata-all.h (53029)
1/*-
2 * Copyright (c) 1998,1999 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 *
1/*-
2 * Copyright (c) 1998,1999 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 52918 1999-11-06 16:50:21Z sos $
28 * $FreeBSD: head/sys/dev/ata/ata-all.h 53029 1999-11-08 21:36:00Z 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_ABORT 0x04 /* command aborted */
35
36#define ATA_FEATURE 0x01 /* (W) feature register */

--- 22 unchanged lines hidden (view full) ---

59#define ATA_C_ATAPI_IDENTIFY 0xa1 /* get ATAPI params*/
60#define ATA_C_READ_MULTI 0xc4 /* read multi command */
61#define ATA_C_WRITE_MULTI 0xc5 /* write multi command */
62#define ATA_C_SET_MULTI 0xc6 /* set multi size command */
63#define ATA_C_READ_DMA 0xc8 /* read w/DMA command */
64#define ATA_C_WRITE_DMA 0xca /* write w/DMA command */
65#define ATA_C_ATA_IDENTIFY 0xec /* get ATA params */
66#define ATA_C_SETFEATURES 0xef /* features command */
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_ABORT 0x04 /* command aborted */
35
36#define ATA_FEATURE 0x01 /* (W) feature register */

--- 22 unchanged lines hidden (view full) ---

59#define ATA_C_ATAPI_IDENTIFY 0xa1 /* get ATAPI params*/
60#define ATA_C_READ_MULTI 0xc4 /* read multi command */
61#define ATA_C_WRITE_MULTI 0xc5 /* write multi command */
62#define ATA_C_SET_MULTI 0xc6 /* set multi size command */
63#define ATA_C_READ_DMA 0xc8 /* read w/DMA command */
64#define ATA_C_WRITE_DMA 0xca /* write w/DMA command */
65#define ATA_C_ATA_IDENTIFY 0xec /* get ATA params */
66#define ATA_C_SETFEATURES 0xef /* features command */
67#define ATA_C_FEA_SETXFER 0x03 /* set transfer mode */
67#define ATA_C_F_SETXFER 0x03 /* set transfer mode */
68#define ATA_C_F_ENAB_RCACHE 0xaa /* enable readahead cache */
69#define ATA_C_F_ENAB_WCACHE 0x02 /* enable write cache */
68
69#define ATA_STATUS 0x07 /* status register */
70#define ATA_S_ERROR 0x01 /* error */
71#define ATA_S_INDEX 0x02 /* index */
72#define ATA_S_CORR 0x04 /* data corrected */
73#define ATA_S_DRQ 0x08 /* data request */
74#define ATA_S_DSC 0x10 /* drive seek completed */
75#define ATA_S_SERVICE 0x10 /* drive needs service */

--- 115 unchanged lines hidden ---
70
71#define ATA_STATUS 0x07 /* status register */
72#define ATA_S_ERROR 0x01 /* error */
73#define ATA_S_INDEX 0x02 /* index */
74#define ATA_S_CORR 0x04 /* data corrected */
75#define ATA_S_DRQ 0x08 /* data request */
76#define ATA_S_DSC 0x10 /* drive seek completed */
77#define ATA_S_SERVICE 0x10 /* drive needs service */

--- 115 unchanged lines hidden ---