bt_pci.c (302408) | bt_pci.c (315221) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> | 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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: stable/11/sys/dev/buslogic/bt_pci.c 254263 2013-08-12 23:30:01Z scottl $"); | 31__FBSDID("$FreeBSD: stable/11/sys/dev/buslogic/bt_pci.c 315221 2017-03-14 02:06:03Z pfg $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/lock.h> 38#include <sys/mutex.h> 39#include <sys/bus.h> --- 13 unchanged lines hidden (view full) --- 53#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER 0x1040104Bul 54#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC 0x0140104Bul 55#define PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT 0x8130104Bul 56 57static int 58bt_pci_alloc_resources(device_t dev) 59{ 60 int type = 0, rid, zero; | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/lock.h> 38#include <sys/mutex.h> 39#include <sys/bus.h> --- 13 unchanged lines hidden (view full) --- 53#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER 0x1040104Bul 54#define PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC 0x0140104Bul 55#define PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT 0x8130104Bul 56 57static int 58bt_pci_alloc_resources(device_t dev) 59{ 60 int type = 0, rid, zero; |
61 struct resource *regs = 0; 62 struct resource *irq = 0; | 61 struct resource *regs = NULL; 62 struct resource *irq = NULL; |
63 64#if 0 65 /* XXX Memory Mapped I/O seems to cause problems */ 66 type = SYS_RES_MEMORY; 67 rid = BT_PCI_MEMADDR; 68 regs = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); 69#else 70 type = SYS_RES_IOPORT; --- 149 unchanged lines hidden --- | 63 64#if 0 65 /* XXX Memory Mapped I/O seems to cause problems */ 66 type = SYS_RES_MEMORY; 67 rid = BT_PCI_MEMADDR; 68 regs = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); 69#else 70 type = SYS_RES_IOPORT; --- 149 unchanged lines hidden --- |