ata-all.h (181753) | ata-all.h (183724) |
---|---|
1/*- 2 * Copyright (c) 1998 - 2008 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 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 - 2008 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 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/ata/ata-all.h 181753 2008-08-15 10:55:11Z philip $ | 26 * $FreeBSD: head/sys/dev/ata/ata-all.h 183724 2008-10-09 12:56:57Z sos $ |
27 */ 28 29/* ATA register defines */ 30#define ATA_DATA 0 /* (RW) data */ 31 32#define ATA_FEATURE 1 /* (W) feature */ 33#define ATA_F_DMA 0x01 /* enable DMA */ 34#define ATA_F_OVL 0x02 /* enable overlap */ --- 523 unchanged lines hidden (view full) --- 558int ata_device_ioctl(device_t dev, u_long cmd, caddr_t data); 559int ata_getparam(struct ata_device *atadev, int init); 560int ata_identify(device_t dev); 561void ata_default_registers(device_t dev); 562void ata_modify_if_48bit(struct ata_request *request); 563void ata_udelay(int interval); 564char *ata_unit2str(struct ata_device *atadev); 565char *ata_mode2str(int mode); | 27 */ 28 29/* ATA register defines */ 30#define ATA_DATA 0 /* (RW) data */ 31 32#define ATA_FEATURE 1 /* (W) feature */ 33#define ATA_F_DMA 0x01 /* enable DMA */ 34#define ATA_F_OVL 0x02 /* enable overlap */ --- 523 unchanged lines hidden (view full) --- 558int ata_device_ioctl(device_t dev, u_long cmd, caddr_t data); 559int ata_getparam(struct ata_device *atadev, int init); 560int ata_identify(device_t dev); 561void ata_default_registers(device_t dev); 562void ata_modify_if_48bit(struct ata_request *request); 563void ata_udelay(int interval); 564char *ata_unit2str(struct ata_device *atadev); 565char *ata_mode2str(int mode); |
566int ata_atapi(device_t dev); |
|
566int ata_pmode(struct ata_params *ap); 567int ata_wmode(struct ata_params *ap); 568int ata_umode(struct ata_params *ap); 569int ata_limit_mode(device_t dev, int mode, int maxmode); 570 571/* ata-queue.c: */ 572int ata_controlcmd(device_t dev, u_int8_t command, u_int16_t feature, u_int64_t lba, u_int16_t count); 573int ata_atapicmd(device_t dev, u_int8_t *ccb, caddr_t data, int count, int flags, int timeout); --- 105 unchanged lines hidden --- | 567int ata_pmode(struct ata_params *ap); 568int ata_wmode(struct ata_params *ap); 569int ata_umode(struct ata_params *ap); 570int ata_limit_mode(device_t dev, int mode, int maxmode); 571 572/* ata-queue.c: */ 573int ata_controlcmd(device_t dev, u_int8_t command, u_int16_t feature, u_int64_t lba, u_int16_t count); 574int ata_atapicmd(device_t dev, u_int8_t *ccb, caddr_t data, int count, int flags, int timeout); --- 105 unchanged lines hidden --- |