Commit f24eeb06 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Move the definition of struct storvsc_device

In preparation for getting rid of the inclusion of storvsc.c from
blkvsc.c, move the definition of struct storvsc_device
from storvsc.c to storvsc_api.h.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 036bbeda
...@@ -33,32 +33,6 @@ ...@@ -33,32 +33,6 @@
#include "channel.h" #include "channel.h"
/* A storvsc device is a device object that contains a vmbus channel */
struct storvsc_device {
struct hv_device *device;
/* 0 indicates the device is being destroyed */
atomic_t ref_count;
atomic_t num_outstanding_req;
/*
* Each unique Port/Path/Target represents 1 channel ie scsi
* controller. In reality, the pathid, targetid is always 0
* and the port is set by us
*/
unsigned int port_number;
unsigned char path_id;
unsigned char target_id;
/* LIST_ENTRY OutstandingRequestList; */
/* HANDLE OutstandingRequestLock; */
/* Used for vsc/vsp channel reset process */
struct storvsc_request_extension init_request;
struct storvsc_request_extension reset_request;
};
static const char *g_driver_name = "storvsc"; static const char *g_driver_name = "storvsc";
......
...@@ -114,6 +114,32 @@ struct storvsc_request_extension { ...@@ -114,6 +114,32 @@ struct storvsc_request_extension {
struct vstor_packet vstor_packet; struct vstor_packet vstor_packet;
}; };
/* A storvsc device is a device object that contains a vmbus channel */
struct storvsc_device {
struct hv_device *device;
/* 0 indicates the device is being destroyed */
atomic_t ref_count;
atomic_t num_outstanding_req;
/*
* Each unique Port/Path/Target represents 1 channel ie scsi
* controller. In reality, the pathid, targetid is always 0
* and the port is set by us
*/
unsigned int port_number;
unsigned char path_id;
unsigned char target_id;
/* LIST_ENTRY OutstandingRequestList; */
/* HANDLE OutstandingRequestLock; */
/* Used for vsc/vsp channel reset process */
struct storvsc_request_extension init_request;
struct storvsc_request_extension reset_request;
};
/* Interface */ /* Interface */
int stor_vsc_initialize(struct hv_driver *driver); int stor_vsc_initialize(struct hv_driver *driver);
int stor_vsc_on_host_reset(struct hv_device *device); int stor_vsc_on_host_reset(struct hv_device *device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment