scsi_device.h (c2e872a27c610a5e2a71444f86470f765ed9dfce) scsi_device.h (ccf1e0045eea8f98d60fc9327bcb14c958d2e4c7)
1#ifndef _SCSI_SCSI_DEVICE_H
2#define _SCSI_SCSI_DEVICE_H
3
4#include <linux/list.h>
5#include <linux/spinlock.h>
6#include <linux/workqueue.h>
7#include <linux/blkdev.h>
8#include <scsi/scsi.h>

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

75 enum scsi_device_event evt_type;
76 struct list_head node;
77
78 /* put union of data structures, for non-simple event types,
79 * here
80 */
81};
82
1#ifndef _SCSI_SCSI_DEVICE_H
2#define _SCSI_SCSI_DEVICE_H
3
4#include <linux/list.h>
5#include <linux/spinlock.h>
6#include <linux/workqueue.h>
7#include <linux/blkdev.h>
8#include <scsi/scsi.h>

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

75 enum scsi_device_event evt_type;
76 struct list_head node;
77
78 /* put union of data structures, for non-simple event types,
79 * here
80 */
81};
82
83/**
84 * struct scsi_vpd - SCSI Vital Product Data
85 * @rcu: For kfree_rcu().
86 * @len: Length in bytes of @data.
87 * @data: VPD data as defined in various T10 SCSI standard documents.
88 */
89struct scsi_vpd {
90 struct rcu_head rcu;
91 int len;
92 unsigned char data[];
93};
94
83struct scsi_device {
84 struct Scsi_Host *host;
85 struct request_queue *request_queue;
86
87 /* the next two are protected by the host->host_lock */
88 struct list_head siblings; /* list of all devices on this host */
89 struct list_head same_target_siblings; /* just the devices sharing same target id */
90

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

117 struct mutex inquiry_mutex;
118 unsigned char inquiry_len; /* valid bytes in 'inquiry' */
119 unsigned char * inquiry; /* INQUIRY response data */
120 const char * vendor; /* [back_compat] point into 'inquiry' ... */
121 const char * model; /* ... after scan; point to static string */
122 const char * rev; /* ... "nullnullnullnull" before scan */
123
124#define SCSI_VPD_PG_LEN 255
95struct scsi_device {
96 struct Scsi_Host *host;
97 struct request_queue *request_queue;
98
99 /* the next two are protected by the host->host_lock */
100 struct list_head siblings; /* list of all devices on this host */
101 struct list_head same_target_siblings; /* just the devices sharing same target id */
102

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

129 struct mutex inquiry_mutex;
130 unsigned char inquiry_len; /* valid bytes in 'inquiry' */
131 unsigned char * inquiry; /* INQUIRY response data */
132 const char * vendor; /* [back_compat] point into 'inquiry' ... */
133 const char * model; /* ... after scan; point to static string */
134 const char * rev; /* ... "nullnullnullnull" before scan */
135
136#define SCSI_VPD_PG_LEN 255
125 int vpd_pg83_len;
126 unsigned char __rcu *vpd_pg83;
127 int vpd_pg80_len;
128 unsigned char __rcu *vpd_pg80;
137 struct scsi_vpd __rcu *vpd_pg83;
138 struct scsi_vpd __rcu *vpd_pg80;
129 unsigned char current_tag; /* current tag */
130 struct scsi_target *sdev_target; /* used only for single_lun */
131
132 unsigned int sdev_bflags; /* black/white flags as also found in
133 * scsi_devinfo.[hc]. For now used only to
134 * pass settings from slave_alloc to scsi
135 * core. */
136 unsigned int eh_timeout; /* Error handling timeout */

--- 423 unchanged lines hidden ---
139 unsigned char current_tag; /* current tag */
140 struct scsi_target *sdev_target; /* used only for single_lun */
141
142 unsigned int sdev_bflags; /* black/white flags as also found in
143 * scsi_devinfo.[hc]. For now used only to
144 * pass settings from slave_alloc to scsi
145 * core. */
146 unsigned int eh_timeout; /* Error handling timeout */

--- 423 unchanged lines hidden ---