| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* ------------------------------------------------------------ |
|---|
| 2 | 3 | * ibmvscsi.h |
|---|
| 3 | 4 | * (C) Copyright IBM Corporation 1994, 2003 |
|---|
| 4 | 5 | * Authors: Colin DeVilbiss (devilbis@us.ibm.com) |
|---|
| 5 | 6 | * Santiago Leon (santil@us.ibm.com) |
|---|
| 6 | 7 | * 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 |
|---|
| 22 | 8 | * |
|---|
| 23 | 9 | * ------------------------------------------------------------ |
|---|
| 24 | 10 | * Emulation of a SCSI host adapter for Virtual I/O devices |
|---|
| .. | .. |
|---|
| 88 | 74 | dma_addr_t iu_token; |
|---|
| 89 | 75 | }; |
|---|
| 90 | 76 | |
|---|
| 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 | + |
|---|
| 91 | 84 | /* all driver data associated with a host adapter */ |
|---|
| 92 | 85 | struct ibmvscsi_host_data { |
|---|
| 93 | 86 | struct list_head host_list; |
|---|
| 94 | 87 | atomic_t request_limit; |
|---|
| 95 | 88 | int client_migrated; |
|---|
| 96 | | - int reset_crq; |
|---|
| 97 | | - int reenable_crq; |
|---|
| 89 | + enum ibmvscsi_host_action action; |
|---|
| 98 | 90 | struct device *dev; |
|---|
| 99 | 91 | struct event_pool pool; |
|---|
| 100 | 92 | struct crq_queue queue; |
|---|