forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/scsi/ibmvscsi/ibmvscsi.h
....@@ -1,24 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* ------------------------------------------------------------
23 * ibmvscsi.h
34 * (C) Copyright IBM Corporation 1994, 2003
45 * Authors: Colin DeVilbiss (devilbis@us.ibm.com)
56 * Santiago Leon (santil@us.ibm.com)
67 * Dave Boutcher (sleddog@us.ibm.com)
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21
- * USA
228 *
239 * ------------------------------------------------------------
2410 * Emulation of a SCSI host adapter for Virtual I/O devices
....@@ -88,13 +74,19 @@
8874 dma_addr_t iu_token;
8975 };
9076
77
+enum ibmvscsi_host_action {
78
+ IBMVSCSI_HOST_ACTION_NONE = 0,
79
+ IBMVSCSI_HOST_ACTION_RESET,
80
+ IBMVSCSI_HOST_ACTION_REENABLE,
81
+ IBMVSCSI_HOST_ACTION_UNBLOCK,
82
+};
83
+
9184 /* all driver data associated with a host adapter */
9285 struct ibmvscsi_host_data {
9386 struct list_head host_list;
9487 atomic_t request_limit;
9588 int client_migrated;
96
- int reset_crq;
97
- int reenable_crq;
89
+ enum ibmvscsi_host_action action;
9890 struct device *dev;
9991 struct event_pool pool;
10092 struct crq_queue queue;