.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | ** Device driver for the PCI-SCSI NCR538XX controller family. |
---|
3 | 4 | ** |
---|
4 | 5 | ** Copyright (C) 1994 Wolfgang Stanglmeier |
---|
5 | 6 | ** |
---|
6 | | -** This program is free software; you can redistribute it and/or modify |
---|
7 | | -** it under the terms of the GNU General Public License as published by |
---|
8 | | -** the Free Software Foundation; either version 2 of the License, or |
---|
9 | | -** (at your option) any later version. |
---|
10 | | -** |
---|
11 | | -** This program is distributed in the hope that it will be useful, |
---|
12 | | -** but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | -** GNU General Public License for more details. |
---|
15 | | -** |
---|
16 | | -** You should have received a copy of the GNU General Public License |
---|
17 | | -** along with this program; if not, write to the Free Software |
---|
18 | | -** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
19 | 7 | ** |
---|
20 | 8 | **----------------------------------------------------------------------------- |
---|
21 | 9 | ** |
---|
.. | .. |
---|
1734 | 1722 | ** Miscellaneous configuration and status parameters. |
---|
1735 | 1723 | **---------------------------------------------------------------- |
---|
1736 | 1724 | */ |
---|
1737 | | - u_char disc; /* Diconnection allowed */ |
---|
| 1725 | + u_char disc; /* Disconnection allowed */ |
---|
1738 | 1726 | u_char scsi_mode; /* Current SCSI BUS mode */ |
---|
1739 | 1727 | u_char order; /* Tag order to use */ |
---|
1740 | 1728 | u_char verbose; /* Verbosity for this controller*/ |
---|
.. | .. |
---|
2215 | 2203 | ** Possible data corruption during Memory Write and Invalidate. |
---|
2216 | 2204 | ** This work-around resets the addressing logic prior to the |
---|
2217 | 2205 | ** start of the first MOVE of a DATA IN phase. |
---|
2218 | | - ** (See Documentation/scsi/ncr53c8xx.txt for more information) |
---|
| 2206 | + ** (See Documentation/scsi/ncr53c8xx.rst for more information) |
---|
2219 | 2207 | */ |
---|
2220 | 2208 | SCR_JUMPR ^ IFFALSE (IF (SCR_DATA_IN)), |
---|
2221 | 2209 | 20, |
---|
.. | .. |
---|
3652 | 3640 | new = old; |
---|
3653 | 3641 | break; |
---|
3654 | 3642 | } |
---|
3655 | | - /* fall through */ |
---|
| 3643 | + fallthrough; |
---|
3656 | 3644 | default: |
---|
3657 | 3645 | panic("ncr_script_copy_and_bind: weird relocation %x\n", old); |
---|
3658 | 3646 | break; |
---|
.. | .. |
---|
3922 | 3910 | np->scsi_mode = SMODE_HVD; |
---|
3923 | 3911 | break; |
---|
3924 | 3912 | } |
---|
| 3913 | + fallthrough; |
---|
3925 | 3914 | case 3: /* SYMBIOS controllers report HVD through GPIO3 */ |
---|
3926 | 3915 | if (INB(nc_gpreg) & 0x08) |
---|
3927 | 3916 | break; |
---|
| 3917 | + fallthrough; |
---|
3928 | 3918 | case 2: /* Set HVD unconditionally */ |
---|
3929 | 3919 | np->scsi_mode = SMODE_HVD; |
---|
| 3920 | + fallthrough; |
---|
3930 | 3921 | case 1: /* Trust previous settings for HVD */ |
---|
3931 | 3922 | if (np->sv_stest2 & 0x20) |
---|
3932 | 3923 | np->scsi_mode = SMODE_HVD; |
---|
.. | .. |
---|
4305 | 4296 | break; |
---|
4306 | 4297 | cp->phys.header.wgoalp = cpu_to_scr(goalp); |
---|
4307 | 4298 | cp->phys.header.wlastp = cpu_to_scr(lastp); |
---|
4308 | | - /* fall through */ |
---|
| 4299 | + fallthrough; |
---|
4309 | 4300 | case DMA_FROM_DEVICE: |
---|
4310 | 4301 | goalp = NCB_SCRIPT_PHYS (np, data_in2) + 8; |
---|
4311 | 4302 | if (segments <= MAX_SCATTERL) |
---|
.. | .. |
---|
6726 | 6717 | OUTL_DSP (scr_to_cpu(tp->lp[0]->jump_ccb[0])); |
---|
6727 | 6718 | return; |
---|
6728 | 6719 | } |
---|
| 6720 | + fallthrough; |
---|
6729 | 6721 | case SIR_RESEL_BAD_TARGET: /* Will send a TARGET RESET message */ |
---|
6730 | 6722 | case SIR_RESEL_BAD_LUN: /* Will send a TARGET RESET message */ |
---|
6731 | 6723 | case SIR_RESEL_BAD_I_T_L_Q: /* Will send an ABORT TAG message */ |
---|
.. | .. |
---|
6833 | 6825 | */ |
---|
6834 | 6826 | OUTB (HS_PRT, HS_BUSY); |
---|
6835 | 6827 | |
---|
6836 | | - /* fall through */ |
---|
| 6828 | + fallthrough; |
---|
6837 | 6829 | |
---|
6838 | 6830 | case SIR_NEGO_PROTO: |
---|
6839 | 6831 | /*------------------------------------------------------- |
---|
.. | .. |
---|
8313 | 8305 | tpnt->this_id = 7; |
---|
8314 | 8306 | tpnt->sg_tablesize = SCSI_NCR_SG_TABLESIZE; |
---|
8315 | 8307 | tpnt->cmd_per_lun = SCSI_NCR_CMD_PER_LUN; |
---|
8316 | | - tpnt->use_clustering = ENABLE_CLUSTERING; |
---|
8317 | 8308 | |
---|
8318 | 8309 | if (device->differential) |
---|
8319 | 8310 | driver_setup.diff_support = device->differential; |
---|