Deleted Added
full compact
ata-all.h (56686) ata-all.h (56744)
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 *
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 56686 2000-01-27 19:00:51Z sos $
28 * $FreeBSD: head/sys/dev/ata/ata-all.h 56744 2000-01-28 13:35:43Z 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 */

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

308#define MAXATA 16
309
310/* public prototypes */
311void ata_start(struct ata_softc *);
312void ata_reset(struct ata_softc *, int32_t *);
313int32_t ata_reinit(struct ata_softc *);
314int32_t ata_wait(struct ata_softc *, int32_t, u_int8_t);
315int32_t ata_command(struct ata_softc *, int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, int32_t);
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 */

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

308#define MAXATA 16
309
310/* public prototypes */
311void ata_start(struct ata_softc *);
312void ata_reset(struct ata_softc *, int32_t *);
313int32_t ata_reinit(struct ata_softc *);
314int32_t ata_wait(struct ata_softc *, int32_t, u_int8_t);
315int32_t ata_command(struct ata_softc *, int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, int32_t);
316int32_t ata_dmainit(struct ata_softc *, int32_t, int32_t, int32_t, int32_t);
316void ata_dmainit(struct ata_softc *, int32_t, int32_t, int32_t, int32_t);
317int32_t ata_dmasetup(struct ata_softc *, int32_t, int8_t *, int32_t, int32_t);
318void ata_dmastart(struct ata_softc *);
319int32_t ata_dmastatus(struct ata_softc *);
320int32_t ata_dmadone(struct ata_softc *);
321int32_t ata_pmode(struct ata_params *);
322int32_t ata_wmode(struct ata_params *);
323int32_t ata_umode(struct ata_params *);
324int8_t *ata_mode2str(int32_t);
325int8_t ata_pio2mode(int32_t);
326int32_t ata_find_dev(device_t, int32_t);
327int32_t ata_printf(struct ata_softc *, int32_t, const char *, ...) __printflike(3, 4);
317int32_t ata_dmasetup(struct ata_softc *, int32_t, int8_t *, int32_t, int32_t);
318void ata_dmastart(struct ata_softc *);
319int32_t ata_dmastatus(struct ata_softc *);
320int32_t ata_dmadone(struct ata_softc *);
321int32_t ata_pmode(struct ata_params *);
322int32_t ata_wmode(struct ata_params *);
323int32_t ata_umode(struct ata_params *);
324int8_t *ata_mode2str(int32_t);
325int8_t ata_pio2mode(int32_t);
326int32_t ata_find_dev(device_t, int32_t);
327int32_t ata_printf(struct ata_softc *, int32_t, const char *, ...) __printflike(3, 4);