virtio_scsi.c (256281) | virtio_scsi.c (260837) |
---|---|
1/*- 2 * Copyright (c) 2012, Bryan Venteicher <bryanv@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 --- 13 unchanged lines hidden (view full) --- 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/* Driver for VirtIO SCSI devices. */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012, Bryan Venteicher <bryanv@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 --- 13 unchanged lines hidden (view full) --- 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/* Driver for VirtIO SCSI devices. */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/10/sys/dev/virtio/scsi/virtio_scsi.c 252709 2013-07-04 18:00:27Z bryanv $"); | 30__FBSDID("$FreeBSD: stable/10/sys/dev/virtio/scsi/virtio_scsi.c 260837 2014-01-18 03:33:01Z bryanv $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/malloc.h> 37#include <sys/module.h> 38#include <sys/sglist.h> --- 1495 unchanged lines hidden (view full) --- 1534 1535static void 1536vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) 1537{ 1538 1539 lun[0] = 1; 1540 lun[1] = ccbh->target_id; 1541 lun[2] = 0x40 | ((ccbh->target_lun >> 8) & 0x3F); | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/malloc.h> 37#include <sys/module.h> 38#include <sys/sglist.h> --- 1495 unchanged lines hidden (view full) --- 1534 1535static void 1536vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) 1537{ 1538 1539 lun[0] = 1; 1540 lun[1] = ccbh->target_id; 1541 lun[2] = 0x40 | ((ccbh->target_lun >> 8) & 0x3F); |
1542 lun[3] = (ccbh->target_lun >> 8) & 0xFF; | 1542 lun[3] = ccbh->target_lun & 0xFF; |
1543} 1544 1545static void 1546vtscsi_init_scsi_cmd_req(struct ccb_scsiio *csio, 1547 struct virtio_scsi_cmd_req *cmd_req) 1548{ 1549 uint8_t attr; 1550 --- 734 unchanged lines hidden --- | 1543} 1544 1545static void 1546vtscsi_init_scsi_cmd_req(struct ccb_scsiio *csio, 1547 struct virtio_scsi_cmd_req *cmd_req) 1548{ 1549 uint8_t attr; 1550 --- 734 unchanged lines hidden --- |