| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /****************************************************************************** |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * (C)Copyright 1998,1999 SysKonnect, |
|---|
| 4 | 5 | * a business unit of Schneider & Koch & Co. Datensysteme GmbH. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * See the file "skfddi.c" for further information. |
|---|
| 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 | 8 | * |
|---|
| 13 | 9 | * The information in this file is provided "AS IS" without warranty. |
|---|
| 14 | 10 | * |
|---|
| .. | .. |
|---|
| 24 | 20 | #include "h/supern_2.h" |
|---|
| 25 | 21 | #include "h/skfbiinc.h" |
|---|
| 26 | 22 | #include <linux/bitrev.h> |
|---|
| 23 | +#include <linux/pci.h> |
|---|
| 27 | 24 | |
|---|
| 28 | 25 | #ifndef lint |
|---|
| 29 | 26 | static const char ID_sccs[] = "@(#)drvfbi.c 1.63 99/02/11 (C) SK " ; |
|---|
| .. | .. |
|---|
| 115 | 112 | */ |
|---|
| 116 | 113 | outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_ON) ; /* enable for writes */ |
|---|
| 117 | 114 | word = inpw(PCI_C(PCI_STATUS)) ; |
|---|
| 118 | | - outpw(PCI_C(PCI_STATUS), word | PCI_ERRBITS) ; |
|---|
| 115 | + outpw(PCI_C(PCI_STATUS), word | PCI_STATUS_ERROR_BITS); |
|---|
| 119 | 116 | outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_OFF) ; /* disable writes */ |
|---|
| 120 | 117 | |
|---|
| 121 | 118 | /* |
|---|
| .. | .. |
|---|
| 131 | 128 | * at very first before any other initialization functions is |
|---|
| 132 | 129 | * executed. |
|---|
| 133 | 130 | */ |
|---|
| 134 | | - rev_id = inp(PCI_C(PCI_REV_ID)) ; |
|---|
| 131 | + rev_id = inp(PCI_C(PCI_REVISION_ID)) ; |
|---|
| 135 | 132 | if ((rev_id & 0xf0) == SK_ML_ID_1 || (rev_id & 0xf0) == SK_ML_ID_2) { |
|---|
| 136 | 133 | smc->hw.hw_is_64bit = TRUE ; |
|---|
| 137 | 134 | } else { |
|---|