ahc_pci.c (6405ed07d709cbf884d3045b208ce9fe5197d8ff) ahc_pci.c (f1d19042b082d95f07a0027e596ba2405aa8a9a5)
1/*
2 * Product specific probe and attach routines for:
3 * 3940, 2940, aic7895, aic7890, aic7880,
4 * aic7870, aic7860 and aic7850 SCSI controllers
5 *
6 * Copyright (c) 1995, 1996, 1997, 1998 Justin T. Gibbs
7 * All rights reserved.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
1/*
2 * Product specific probe and attach routines for:
3 * 3940, 2940, aic7895, aic7890, aic7880,
4 * aic7870, aic7860 and aic7850 SCSI controllers
5 *
6 * Copyright (c) 1995, 1996, 1997, 1998 Justin T. Gibbs
7 * All rights reserved.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * $Id: ahc_pci.c,v 1.1 1998/09/15 07:25:33 gibbs Exp $
37 * $Id: ahc_pci.c,v 1.2 1998/10/07 03:40:51 gibbs Exp $
38 */
39
40#include <pci.h>
41#if NPCI > 0
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/queue.h>

--- 1121 unchanged lines hidden (view full) ---

1167#define RTA 0x10
1168#define STA 0x08
1169#define DPR 0x01
1170
1171void
1172ahc_pci_intr(struct ahc_softc *ahc)
1173{
1174 u_int8_t status1;
38 */
39
40#include <pci.h>
41#if NPCI > 0
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/queue.h>

--- 1121 unchanged lines hidden (view full) ---

1167#define RTA 0x10
1168#define STA 0x08
1169#define DPR 0x01
1170
1171void
1172ahc_pci_intr(struct ahc_softc *ahc)
1173{
1174 u_int8_t status1;
1175 pcici_t config_id;
1176
1177 status1 = pci_cfgread(ahc->pci_config_id, PCIR_STATUS + 1, /*bytes*/1);
1178
1179 if (status1 & DPE) {
1180 printf("%s: Data Parity Error Detected during address "
1181 "or write data phase\n", ahc_name(ahc));
1182 }
1183 if (status1 & SSE) {

--- 27 unchanged lines hidden ---
1175
1176 status1 = pci_cfgread(ahc->pci_config_id, PCIR_STATUS + 1, /*bytes*/1);
1177
1178 if (status1 & DPE) {
1179 printf("%s: Data Parity Error Detected during address "
1180 "or write data phase\n", ahc_name(ahc));
1181 }
1182 if (status1 & SSE) {

--- 27 unchanged lines hidden ---