Deleted Added
full compact
smsat.c (285662) smsat.c (300050)
1/*******************************************************************************
2*Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
3*
4*Redistribution and use in source and binary forms, with or without modification, are permitted provided
5*that the following conditions are met:
6*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
7*following disclaimer.
8*2. Redistributions in binary form must reproduce the above copyright notice,

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

15*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
17*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
20
21********************************************************************************/
22#include <sys/cdefs.h>
1/*******************************************************************************
2*Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
3*
4*Redistribution and use in source and binary forms, with or without modification, are permitted provided
5*that the following conditions are met:
6*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
7*following disclaimer.
8*2. Redistributions in binary form must reproduce the above copyright notice,

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

15*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
17*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
20
21********************************************************************************/
22#include <sys/cdefs.h>
23__FBSDID("$FreeBSD: head/sys/dev/pms/RefTisa/sat/src/smsat.c 285242 2015-07-07 13:17:02Z achim $");
23__FBSDID("$FreeBSD: head/sys/dev/pms/RefTisa/sat/src/smsat.c 300050 2016-05-17 12:52:31Z eadler $");
24#include <dev/pms/config.h>
25
26#include <dev/pms/freebsd/driver/common/osenv.h>
27#include <dev/pms/freebsd/driver/common/ostypes.h>
28#include <dev/pms/freebsd/driver/common/osdebug.h>
29
30#include <dev/pms/RefTisa/tisa/api/titypes.h>
31

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

10878 * If 48-bit addressing is supported, set capacity information from Identify
10879 * Device Word 100-103.
10880 */
10881 if (pSatDevData->sat48BitSupport == agTRUE)
10882 {
10883 /*
10884 * Setting RETURNED LOGICAL BLOCK ADDRESS in READ CAPACITY(10) response data:
10885 * SBC-2 specifies that if the capacity exceeded the 4-byte RETURNED LOGICAL
24#include <dev/pms/config.h>
25
26#include <dev/pms/freebsd/driver/common/osenv.h>
27#include <dev/pms/freebsd/driver/common/ostypes.h>
28#include <dev/pms/freebsd/driver/common/osdebug.h>
29
30#include <dev/pms/RefTisa/tisa/api/titypes.h>
31

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

10878 * If 48-bit addressing is supported, set capacity information from Identify
10879 * Device Word 100-103.
10880 */
10881 if (pSatDevData->sat48BitSupport == agTRUE)
10882 {
10883 /*
10884 * Setting RETURNED LOGICAL BLOCK ADDRESS in READ CAPACITY(10) response data:
10885 * SBC-2 specifies that if the capacity exceeded the 4-byte RETURNED LOGICAL
10886 * BLOCK ADDRESS in READ CAPACITY(10) parameter data, the the RETURNED LOGICAL
10886 * BLOCK ADDRESS in READ CAPACITY(10) parameter data, the RETURNED LOGICAL
10887 * BLOCK ADDRESS should be set to 0xFFFFFFFF so the application client would
10888 * then issue a READ CAPACITY(16) command.
10889 */
10890 /* ATA Identify Device information word 100 - 103 */
10891 if ( (pSATAIdData->maxLBA32_47 != 0 ) || (pSATAIdData->maxLBA48_63 != 0))
10892 {
10893 dataBuffer[0] = 0xFF; /* MSB number of block */
10894 dataBuffer[1] = 0xFF;

--- 9926 unchanged lines hidden ---
10887 * BLOCK ADDRESS should be set to 0xFFFFFFFF so the application client would
10888 * then issue a READ CAPACITY(16) command.
10889 */
10890 /* ATA Identify Device information word 100 - 103 */
10891 if ( (pSATAIdData->maxLBA32_47 != 0 ) || (pSATAIdData->maxLBA48_63 != 0))
10892 {
10893 dataBuffer[0] = 0xFF; /* MSB number of block */
10894 dataBuffer[1] = 0xFF;

--- 9926 unchanged lines hidden ---