ata-all.h (82053) | ata-all.h (83728) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 1998,1999,2000,2001 S�ren Schmidt | 2 * Copyright (c) 1998,1999,2000,2001 S�ren Schmidt <sos@FreeBSD.org> |
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 9 * notice, this list of conditions and the following disclaimer, 10 * without modification, immediately at the beginning of the file. --- 9 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 * | 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 9 * notice, this list of conditions and the following disclaimer, 10 * without modification, immediately at the beginning of the file. --- 9 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 82053 2001-08-21 11:35:47Z sos $ | 28 * $FreeBSD: head/sys/dev/ata/ata-all.h 83728 2001-09-20 15:25:36Z 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 */ --- 169 unchanged lines hidden (view full) --- 206int ata_resume(device_t); 207 208void ata_start(struct ata_softc *); 209void ata_reset(struct ata_softc *); 210int ata_reinit(struct ata_softc *); 211int ata_wait(struct ata_softc *, int, u_int8_t); 212int ata_command(struct ata_softc *, int, u_int8_t, u_int16_t, u_int8_t, u_int8_t, u_int8_t, u_int8_t, int); 213int ata_printf(struct ata_softc *, int, const char *, ...) __printflike(3, 4); | 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 */ --- 169 unchanged lines hidden (view full) --- 206int ata_resume(device_t); 207 208void ata_start(struct ata_softc *); 209void ata_reset(struct ata_softc *); 210int ata_reinit(struct ata_softc *); 211int ata_wait(struct ata_softc *, int, u_int8_t); 212int ata_command(struct ata_softc *, int, u_int8_t, u_int16_t, u_int8_t, u_int8_t, u_int8_t, u_int8_t, int); 213int ata_printf(struct ata_softc *, int, const char *, ...) __printflike(3, 4); |
214void ata_set_name(struct ata_softc *, int, char *); | 214void ata_set_name(struct ata_softc *, int, char *, int); |
215void ata_free_name(struct ata_softc *, int); 216int ata_get_lun(u_int32_t *); 217int ata_test_lun(u_int32_t *, int); 218void ata_free_lun(u_int32_t *, int); 219char *ata_mode2str(int); 220int ata_pio2mode(int); 221int ata_pmode(struct ata_params *); 222int ata_wmode(struct ata_params *); --- 45 unchanged lines hidden --- | 215void ata_free_name(struct ata_softc *, int); 216int ata_get_lun(u_int32_t *); 217int ata_test_lun(u_int32_t *, int); 218void ata_free_lun(u_int32_t *, int); 219char *ata_mode2str(int); 220int ata_pio2mode(int); 221int ata_pmode(struct ata_params *); 222int ata_wmode(struct ata_params *); --- 45 unchanged lines hidden --- |