ata_all.c (302408) | ata_all.c (305614) |
---|---|
1/*- 2 * Copyright (c) 2009 Alexander Motin <mav@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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 Alexander Motin <mav@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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/11/sys/cam/ata/ata_all.c 300207 2016-05-19 14:08:36Z ken $"); | 28__FBSDID("$FreeBSD: stable/11/sys/cam/ata/ata_all.c 305614 2016-09-08 15:05:25Z pfg $"); |
29 30#include <sys/param.h> 31 32#ifdef _KERNEL 33#include <opt_scsi.h> 34 35#include <sys/systm.h> 36#include <sys/libkern.h> --- 1033 unchanged lines hidden (view full) --- 1070 /* XXX KDM put a macro here */ 1071 features_out = (zm_action & 0xf) | (zone_flags << 8); 1072 ata_flags = CAM_ATAIO_DMA; 1073 sectors_out = ((dxfer_len >> 9) & 0xffff); 1074 auxiliary = 0; 1075 } else { 1076 command_out = ATA_RECV_FPDMA_QUEUED; 1077 sectors_out = ATA_RFPDMA_ZAC_MGMT_IN << 8; | 29 30#include <sys/param.h> 31 32#ifdef _KERNEL 33#include <opt_scsi.h> 34 35#include <sys/systm.h> 36#include <sys/libkern.h> --- 1033 unchanged lines hidden (view full) --- 1070 /* XXX KDM put a macro here */ 1071 features_out = (zm_action & 0xf) | (zone_flags << 8); 1072 ata_flags = CAM_ATAIO_DMA; 1073 sectors_out = ((dxfer_len >> 9) & 0xffff); 1074 auxiliary = 0; 1075 } else { 1076 command_out = ATA_RECV_FPDMA_QUEUED; 1077 sectors_out = ATA_RFPDMA_ZAC_MGMT_IN << 8; |
1078 auxiliary = (zm_action & 0xf) | (zone_flags << 8), | 1078 auxiliary = (zm_action & 0xf) | (zone_flags << 8); |
1079 ata_flags = CAM_ATAIO_FPDMA; 1080 /* 1081 * For RECEIVE FPDMA QUEUED, the transfer length is 1082 * encoded in the FEATURE register, and 0 means 1083 * that 65536 512 byte blocks are to be tranferred. 1084 * In practice, it is unlikely we will see a transfer that 1085 * large. 1086 */ --- 34 unchanged lines hidden --- | 1079 ata_flags = CAM_ATAIO_FPDMA; 1080 /* 1081 * For RECEIVE FPDMA QUEUED, the transfer length is 1082 * encoded in the FEATURE register, and 0 means 1083 * that 65536 512 byte blocks are to be tranferred. 1084 * In practice, it is unlikely we will see a transfer that 1085 * large. 1086 */ --- 34 unchanged lines hidden --- |