adw_pci.c (41591) | adw_pci.c (41771) |
---|---|
1/* 2 * Device probe and attach routines for the following 3 * Advanced Systems Inc. SCSI controllers: 4 * 5 * ABP940UW - Bus-Master PCI Ultra-Wide (240 CDB) 6 * 7 * Copyright (c) 1998 Justin Gibbs. 8 * All rights reserved. --- 14 unchanged lines hidden (view full) --- 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 1/* 2 * Device probe and attach routines for the following 3 * Advanced Systems Inc. SCSI controllers: 4 * 5 * ABP940UW - Bus-Master PCI Ultra-Wide (240 CDB) 6 * 7 * Copyright (c) 1998 Justin Gibbs. 8 * All rights reserved. --- 14 unchanged lines hidden (view full) --- 23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $Id: adw_pci.c,v 1.1 1998/10/07 03:20:49 gibbs Exp $ | 31 * $Id: adw_pci.c,v 1.2 1998/12/07 21:58:45 archie Exp $ |
32 */ 33 34#include <pci.h> 35#if NPCI > 0 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39 --- 13 unchanged lines hidden (view full) --- 53#define PCI_BASEADR0 PCI_MAP_REG_START /* I/O Address */ 54#define PCI_BASEADR1 PCI_MAP_REG_START + 4 /* Mem I/O Address */ 55 56#define PCI_DEVICE_ID_ADVANSYS_3550 0x230010CD 57 58#define ADW_PCI_MAX_DMA_ADDR (0xFFFFFFFFUL) 59#define ADW_PCI_MAX_DMA_COUNT (0xFFFFFFFFUL) 60 | 32 */ 33 34#include <pci.h> 35#if NPCI > 0 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39 --- 13 unchanged lines hidden (view full) --- 53#define PCI_BASEADR0 PCI_MAP_REG_START /* I/O Address */ 54#define PCI_BASEADR1 PCI_MAP_REG_START + 4 /* Mem I/O Address */ 55 56#define PCI_DEVICE_ID_ADVANSYS_3550 0x230010CD 57 58#define ADW_PCI_MAX_DMA_ADDR (0xFFFFFFFFUL) 59#define ADW_PCI_MAX_DMA_COUNT (0xFFFFFFFFUL) 60 |
61static char* adwpciprobe(pcici_t tag, pcidi_t type); | 61static const char* adwpciprobe(pcici_t tag, pcidi_t type); |
62static void adwpciattach(pcici_t config_id, int unit); 63 64static struct pci_device adw_pci_driver = { 65 "adw", 66 adwpciprobe, 67 adwpciattach, 68 &adw_unit, 69 NULL 70}; 71 72DATA_SET (pcidevice_set, adw_pci_driver); 73 | 62static void adwpciattach(pcici_t config_id, int unit); 63 64static struct pci_device adw_pci_driver = { 65 "adw", 66 adwpciprobe, 67 adwpciattach, 68 &adw_unit, 69 NULL 70}; 71 72DATA_SET (pcidevice_set, adw_pci_driver); 73 |
74static char* | 74static const char* |
75adwpciprobe(pcici_t tag, pcidi_t type) 76{ 77 switch (type) { 78 case PCI_DEVICE_ID_ADVANSYS_3550: 79 return ("AdvanSys ASC3550 SCSI controller"); 80 default: 81 break; 82 } --- 105 unchanged lines hidden --- | 75adwpciprobe(pcici_t tag, pcidi_t type) 76{ 77 switch (type) { 78 case PCI_DEVICE_ID_ADVANSYS_3550: 79 return ("AdvanSys ASC3550 SCSI controller"); 80 default: 81 break; 82 } --- 105 unchanged lines hidden --- |