Deleted Added
full compact
dpt_pci.c (41591) dpt_pci.c (41771)
1/*
2 * Copyright (c) 1997 by Simon Shapiro
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

27 * SUCH DAMAGE.
28 *
29 */
30
31/*
32 * dptpci.c: PCI Bus Attachment for DPT SCSI HBAs
33 */
34
1/*
2 * Copyright (c) 1997 by Simon Shapiro
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

27 * SUCH DAMAGE.
28 *
29 */
30
31/*
32 * dptpci.c: PCI Bus Attachment for DPT SCSI HBAs
33 */
34
35#ident "$Id: dpt_pci.c,v 1.9 1998/10/07 03:40:51 gibbs Exp $"
35#ident "$Id: dpt_pci.c,v 1.10 1998/12/07 21:58:46 archie Exp $"
36
37#include "opt_devfs.h"
38#include "opt_dpt.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/buf.h>

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

59#define PCI_BASEADR1 PCI_MAP_REG_START + 4 /* Mem I/O Address */
60
61#define ISA_PRIMARY_WD_ADDRESS 0x1f8
62
63/* Global variables */
64
65/* Function Prototypes */
66
36
37#include "opt_devfs.h"
38#include "opt_dpt.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/buf.h>

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

59#define PCI_BASEADR1 PCI_MAP_REG_START + 4 /* Mem I/O Address */
60
61#define ISA_PRIMARY_WD_ADDRESS 0x1f8
62
63/* Global variables */
64
65/* Function Prototypes */
66
67static char *dpt_pci_probe(pcici_t tag, pcidi_t type);
67static const char *dpt_pci_probe(pcici_t tag, pcidi_t type);
68static void dpt_pci_attach(pcici_t config_id, int unit);
69
70extern struct cdevsw dpt_cdevsw;
71
72static struct pci_device dpt_pci_driver =
73{
74 "dpt",
75 dpt_pci_probe,

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

81DATA_SET(pcidevice_set, dpt_pci_driver);
82
83/*
84 * Probe the PCI device.
85 * Some of this work will have to be duplicated in _attach
86 * because we do not know for sure how the two relate.
87 */
88
68static void dpt_pci_attach(pcici_t config_id, int unit);
69
70extern struct cdevsw dpt_cdevsw;
71
72static struct pci_device dpt_pci_driver =
73{
74 "dpt",
75 dpt_pci_probe,

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

81DATA_SET(pcidevice_set, dpt_pci_driver);
82
83/*
84 * Probe the PCI device.
85 * Some of this work will have to be duplicated in _attach
86 * because we do not know for sure how the two relate.
87 */
88
89static char *
89static const char *
90dpt_pci_probe(pcici_t tag, pcidi_t type)
91{
92 u_int32_t class;
93
94#ifndef PCI_COMMAND_MASTER_ENABLE
95#define PCI_COMMAND_MASTER_ENABLE 0x00000004
96#endif
97

--- 90 unchanged lines hidden ---
90dpt_pci_probe(pcici_t tag, pcidi_t type)
91{
92 u_int32_t class;
93
94#ifndef PCI_COMMAND_MASTER_ENABLE
95#define PCI_COMMAND_MASTER_ENABLE 0x00000004
96#endif
97

--- 90 unchanged lines hidden ---