hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/net/fddi/skfp/drvfbi.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /******************************************************************************
23 *
34 * (C)Copyright 1998,1999 SysKonnect,
45 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
56 *
67 * 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.
128 *
139 * The information in this file is provided "AS IS" without warranty.
1410 *
....@@ -24,6 +20,7 @@
2420 #include "h/supern_2.h"
2521 #include "h/skfbiinc.h"
2622 #include <linux/bitrev.h>
23
+#include <linux/pci.h>
2724
2825 #ifndef lint
2926 static const char ID_sccs[] = "@(#)drvfbi.c 1.63 99/02/11 (C) SK " ;
....@@ -115,7 +112,7 @@
115112 */
116113 outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_ON) ; /* enable for writes */
117114 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);
119116 outp(ADDR(B0_TST_CTRL), TST_CFG_WRITE_OFF) ; /* disable writes */
120117
121118 /*
....@@ -131,7 +128,7 @@
131128 * at very first before any other initialization functions is
132129 * executed.
133130 */
134
- rev_id = inp(PCI_C(PCI_REV_ID)) ;
131
+ rev_id = inp(PCI_C(PCI_REVISION_ID)) ;
135132 if ((rev_id & 0xf0) == SK_ML_ID_1 || (rev_id & 0xf0) == SK_ML_ID_2) {
136133 smc->hw.hw_is_64bit = TRUE ;
137134 } else {