hv_storvsc_drv_freebsd.c (307307) | hv_storvsc_drv_freebsd.c (307448) |
---|---|
1/*- 2 * Copyright (c) 2009-2012,2016 Microsoft Corp. 3 * Copyright (c) 2012 NetApp Inc. 4 * Copyright (c) 2012 Citrix Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 29/** 30 * StorVSC driver for Hyper-V. This driver presents a SCSI HBA interface 31 * to the Comman Access Method (CAM) layer. CAM control blocks (CCBs) are 32 * converted into VSCSI protocol messages which are delivered to the parent 33 * partition StorVSP driver over the Hyper-V VMBUS. 34 */ 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2012,2016 Microsoft Corp. 3 * Copyright (c) 2012 NetApp Inc. 4 * Copyright (c) 2012 Citrix Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 29/** 30 * StorVSC driver for Hyper-V. This driver presents a SCSI HBA interface 31 * to the Comman Access Method (CAM) layer. CAM control blocks (CCBs) are 32 * converted into VSCSI protocol messages which are delivered to the parent 33 * partition StorVSP driver over the Hyper-V VMBUS. 34 */ 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c 307307 2016-10-14 08:45:53Z sephe $"); | 36__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c 307448 2016-10-17 01:47:49Z sephe $"); |
37 38#include <sys/param.h> 39#include <sys/proc.h> 40#include <sys/condvar.h> 41#include <sys/time.h> 42#include <sys/systm.h> 43#include <sys/sockio.h> 44#include <sys/mbuf.h> --- 130 unchanged lines hidden (view full) --- 175 DRIVER_UNKNOWN 176}; 177 178#define HS_MAX_ADAPTERS 10 179 180#define HV_STORAGE_SUPPORTS_MULTI_CHANNEL 0x1 181 182/* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */ | 37 38#include <sys/param.h> 39#include <sys/proc.h> 40#include <sys/condvar.h> 41#include <sys/time.h> 42#include <sys/systm.h> 43#include <sys/sockio.h> 44#include <sys/mbuf.h> --- 130 unchanged lines hidden (view full) --- 175 DRIVER_UNKNOWN 176}; 177 178#define HS_MAX_ADAPTERS 10 179 180#define HV_STORAGE_SUPPORTS_MULTI_CHANNEL 0x1 181 182/* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */ |
183static const hv_guid gStorVscDeviceType={ 184 .data = {0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, | 183static const struct hyperv_guid gStorVscDeviceType={ 184 .hv_guid = {0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, |
185 0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f} 186}; 187 188/* {32412632-86cb-44a2-9b5c-50d1417354f5} */ | 185 0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f} 186}; 187 188/* {32412632-86cb-44a2-9b5c-50d1417354f5} */ |
189static const hv_guid gBlkVscDeviceType={ 190 .data = {0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44, | 189static const struct hyperv_guid gBlkVscDeviceType={ 190 .hv_guid = {0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44, |
191 0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5} 192}; 193 194static struct storvsc_driver_props g_drv_props_table[] = { 195 {"blkvsc", "Hyper-V IDE Storage Interface", 196 BLKVSC_MAX_IDE_DISKS_PER_TARGET, BLKVSC_MAX_IO_REQUESTS, 197 STORVSC_RINGBUFFER_SIZE}, 198 {"storvsc", "Hyper-V SCSI Storage Interface", --- 1864 unchanged lines hidden --- | 191 0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5} 192}; 193 194static struct storvsc_driver_props g_drv_props_table[] = { 195 {"blkvsc", "Hyper-V IDE Storage Interface", 196 BLKVSC_MAX_IDE_DISKS_PER_TARGET, BLKVSC_MAX_IO_REQUESTS, 197 STORVSC_RINGBUFFER_SIZE}, 198 {"storvsc", "Hyper-V SCSI Storage Interface", --- 1864 unchanged lines hidden --- |