cy_pci.c (29041) | cy_pci.c (41771) |
---|---|
1/* 2 * Copyright (c) 1996, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1996, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $Id: cy_pci.c,v 1.5 1997/02/22 09:44:00 peter Exp $ | 27 * $Id: cy_pci.c,v 1.6 1997/09/02 20:06:24 bde Exp $ |
28 */ 29 30/* 31 * Cyclades Y PCI serial interface driver 32 */ 33 34#include "pci.h" 35#if NPCI > 0 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <vm/vm.h> 41#include <vm/pmap.h> 42 43#include <pci/pcivar.h> 44 45#include <pci/cy_pcireg.h> 46 | 28 */ 29 30/* 31 * Cyclades Y PCI serial interface driver 32 */ 33 34#include "pci.h" 35#if NPCI > 0 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <vm/vm.h> 41#include <vm/pmap.h> 42 43#include <pci/pcivar.h> 44 45#include <pci/cy_pcireg.h> 46 |
47static char *cy_probe __P((pcici_t, pcidi_t)); | 47static const char *cy_probe __P((pcici_t, pcidi_t)); |
48static void cy_attach __P((pcici_t, int)); 49 50extern int cyattach_common(void *, int); /* Not exactly correct */ 51extern void cyintr(int); 52 53static u_long cy_count; 54 55static struct pci_device cy_device = { 56 "cy", 57 cy_probe, 58 cy_attach, 59 &cy_count, 60 NULL 61}; 62DATA_SET(pcidevice_set, cy_device); 63 | 48static void cy_attach __P((pcici_t, int)); 49 50extern int cyattach_common(void *, int); /* Not exactly correct */ 51extern void cyintr(int); 52 53static u_long cy_count; 54 55static struct pci_device cy_device = { 56 "cy", 57 cy_probe, 58 cy_attach, 59 &cy_count, 60 NULL 61}; 62DATA_SET(pcidevice_set, cy_device); 63 |
64static char * | 64static const char * |
65cy_probe(config_id, device_id) 66 pcici_t config_id; 67 pcidi_t device_id; 68{ 69 if ((device_id & 0xffff) == CY_VENDORID_CYCLADES && 70 ((device_id >> 16) == CY_DEVICEID_CYCLOM_Y_1 || 71 (device_id >> 16) == CY_DEVICEID_CYCLOM_Y_2)) 72 return ("Cyclades Cyclom-Y Serial Adapter"); --- 60 unchanged lines hidden --- | 65cy_probe(config_id, device_id) 66 pcici_t config_id; 67 pcidi_t device_id; 68{ 69 if ((device_id & 0xffff) == CY_VENDORID_CYCLADES && 70 ((device_id >> 16) == CY_DEVICEID_CYCLOM_Y_1 || 71 (device_id >> 16) == CY_DEVICEID_CYCLOM_Y_2)) 72 return ("Cyclades Cyclom-Y Serial Adapter"); --- 60 unchanged lines hidden --- |