ata-all.c (295276) | ata-all.c (298143) |
---|---|
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 --- 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) 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 --- 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: head/sys/dev/ata/ata-all.c 295276 2016-02-04 19:53:54Z rpokala $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ata/ata-all.c 298143 2016-04-17 05:24:36Z imp $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/ata.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/endian.h> 36#include <sys/ctype.h> --- 920 unchanged lines hidden (view full) --- 957 xpt_done(ccb); 958 return (-1); 959 } 960 if (ccb->ccb_h.target_lun != 0) { 961 ccb->ccb_h.status = CAM_LUN_INVALID; 962 xpt_done(ccb); 963 return (-1); 964 } | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/ata.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/endian.h> 36#include <sys/ctype.h> --- 920 unchanged lines hidden (view full) --- 957 xpt_done(ccb); 958 return (-1); 959 } 960 if (ccb->ccb_h.target_lun != 0) { 961 ccb->ccb_h.status = CAM_LUN_INVALID; 962 xpt_done(ccb); 963 return (-1); 964 } |
965 /* 966 * It's a programming error to see AUXILIARY register requests. 967 */ 968 KASSERT(ccb->ccb_h.func_code != XPT_ATA_IO || 969 ((ccb->ataio.ata_flags & ATA_FLAG_AUX) == 0), 970 ("AUX register unsupported")); |
|
965 return (0); 966} 967 968static void 969ataaction(struct cam_sim *sim, union ccb *ccb) 970{ 971 device_t dev, parent; 972 struct ata_channel *ch; --- 251 unchanged lines hidden --- | 971 return (0); 972} 973 974static void 975ataaction(struct cam_sim *sim, union ccb *ccb) 976{ 977 device_t dev, parent; 978 struct ata_channel *ch; --- 251 unchanged lines hidden --- |