Deleted Added
full compact
bt_pci.c (41049) bt_pci.c (41771)
1/*
2 * Product specific probe and attach routines for:
3 * Buslogic BT946, BT948, BT956, BT958 SCSI controllers
4 *
5 * Copyright (c) 1995, 1997, 1998 Justin T. Gibbs
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*
2 * Product specific probe and attach routines for:
3 * Buslogic BT946, BT948, BT956, BT958 SCSI controllers
4 *
5 * Copyright (c) 1995, 1997, 1998 Justin T. Gibbs
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id: bt_pci.c,v 1.2 1998/10/30 02:06:42 gibbs Exp $
29 * $Id: bt_pci.c,v 1.3 1998/11/10 06:45:14 gibbs Exp $
30 */
31
32#include "pci.h"
33#if NPCI > 0
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37

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

48#define BT_PCI_MEMADDR PCIR_MAPS + 4
49
50#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER 0x1040104Bul
51#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC 0x0140104Bul
52#define PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT 0x8130104Bul
53
54static int btpcideterminebusspace(pcici_t config_id, bus_space_tag_t* tagp,
55 bus_space_handle_t* bshp);
30 */
31
32#include "pci.h"
33#if NPCI > 0
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37

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

48#define BT_PCI_MEMADDR PCIR_MAPS + 4
49
50#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER 0x1040104Bul
51#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC 0x0140104Bul
52#define PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT 0x8130104Bul
53
54static int btpcideterminebusspace(pcici_t config_id, bus_space_tag_t* tagp,
55 bus_space_handle_t* bshp);
56static char* bt_pci_probe(pcici_t tag, pcidi_t type);
56static const char* bt_pci_probe(pcici_t tag, pcidi_t type);
57static void bt_pci_attach(pcici_t config_id, int unit);
58
59static struct pci_device bt_pci_driver = {
60 "bt",
61 bt_pci_probe,
62 bt_pci_attach,
63 &bt_unit,
64 NULL

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

93 } else {
94 *tagp = I386_BUS_SPACE_IO;
95 *bshp = io_port;
96 }
97
98 return (0);
99}
100
57static void bt_pci_attach(pcici_t config_id, int unit);
58
59static struct pci_device bt_pci_driver = {
60 "bt",
61 bt_pci_probe,
62 bt_pci_attach,
63 &bt_unit,
64 NULL

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

93 } else {
94 *tagp = I386_BUS_SPACE_IO;
95 *bshp = io_port;
96 }
97
98 return (0);
99}
100
101static char*
101static const char*
102bt_pci_probe (pcici_t config_id, pcidi_t type)
103{
104 switch(type) {
105 case PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER:
106 case PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC:
107 {
108 struct bt_softc *bt;
109 bus_space_tag_t tag;

--- 101 unchanged lines hidden ---
102bt_pci_probe (pcici_t config_id, pcidi_t type)
103{
104 switch(type) {
105 case PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER:
106 case PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC:
107 {
108 struct bt_softc *bt;
109 bus_space_tag_t tag;

--- 101 unchanged lines hidden ---