Wed Apr 19 12:34:14 2017 UTC ()
Initialize intr_setattr of arm32_pci_chipset


(jmcneill)
diff -r1.22 -r1.23 src/sys/arch/arm/s3c2xx0/s3c2800_pci.c

cvs diff -r1.22 -r1.23 src/sys/arch/arm/s3c2xx0/s3c2800_pci.c (expand / switch to unified diff)

--- src/sys/arch/arm/s3c2xx0/s3c2800_pci.c 2015/10/02 05:22:50 1.22
+++ src/sys/arch/arm/s3c2xx0/s3c2800_pci.c 2017/04/19 12:34:14 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: s3c2800_pci.c,v 1.22 2015/10/02 05:22:50 msaitoh Exp $ */ 1/* $NetBSD: s3c2800_pci.c,v 1.23 2017/04/19 12:34:14 jmcneill Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2002 Fujitsu Component Limited 4 * Copyright (c) 2002 Fujitsu Component Limited
5 * Copyright (c) 2002 Genetec Corporation 5 * Copyright (c) 2002 Genetec Corporation
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
@@ -90,27 +90,27 @@ @@ -90,27 +90,27 @@
90 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 90 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
91 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 91 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
92 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 92 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
93 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 93 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
94 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 94 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
95 * SUCH DAMAGE. 95 * SUCH DAMAGE.
96 */ 96 */
97 97
98/* 98/*
99 * PCI configuration support for Samsung s3c2800. 99 * PCI configuration support for Samsung s3c2800.
100 */ 100 */
101 101
102#include <sys/cdefs.h> 102#include <sys/cdefs.h>
103__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.22 2015/10/02 05:22:50 msaitoh Exp $"); 103__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.23 2017/04/19 12:34:14 jmcneill Exp $");
104 104
105#include "opt_pci.h" 105#include "opt_pci.h"
106#include "pci.h" 106#include "pci.h"
107 107
108#include <sys/param.h> 108#include <sys/param.h>
109#include <sys/systm.h> 109#include <sys/systm.h>
110#include <sys/kernel.h> 110#include <sys/kernel.h>
111#include <sys/device.h> 111#include <sys/device.h>
112#include <sys/extent.h> 112#include <sys/extent.h>
113#include <sys/malloc.h> 113#include <sys/malloc.h>
114 114
115#include <uvm/uvm_extern.h> 115#include <uvm/uvm_extern.h>
116 116
@@ -198,26 +198,27 @@ CFATTACH_DECL_NEW(sspci, sizeof(struct s @@ -198,26 +198,27 @@ CFATTACH_DECL_NEW(sspci, sizeof(struct s
198 198
199struct arm32_pci_chipset sspci_chipset = { 199struct arm32_pci_chipset sspci_chipset = {
200 NULL, /* conf_v */ 200 NULL, /* conf_v */
201 s3c2800_pci_attach_hook, 201 s3c2800_pci_attach_hook,
202 s3c2800_pci_bus_maxdevs, 202 s3c2800_pci_bus_maxdevs,
203 s3c2800_pci_make_tag, 203 s3c2800_pci_make_tag,
204 s3c2800_pci_decompose_tag, 204 s3c2800_pci_decompose_tag,
205 s3c2800_pci_conf_read, 205 s3c2800_pci_conf_read,
206 s3c2800_pci_conf_write, 206 s3c2800_pci_conf_write,
207 NULL, /* intr_v */ 207 NULL, /* intr_v */
208 s3c2800_pci_intr_map, 208 s3c2800_pci_intr_map,
209 s3c2800_pci_intr_string, 209 s3c2800_pci_intr_string,
210 s3c2800_pci_intr_evcnt, 210 s3c2800_pci_intr_evcnt,
 211 NULL, /* intr_setattr */
211 s3c2800_pci_intr_establish, 212 s3c2800_pci_intr_establish,
212 s3c2800_pci_intr_disestablish, 213 s3c2800_pci_intr_disestablish,
213#ifdef __HAVE_PCI_CONF_HOOK 214#ifdef __HAVE_PCI_CONF_HOOK
214 NULL, 215 NULL,
215#endif 216#endif
216 s3c2800_pci_conf_interrupt, 217 s3c2800_pci_conf_interrupt,
217}; 218};
218 219
219 220
220/* 221/*
221 * bus space tag for PCI IO/Memory access space. 222 * bus space tag for PCI IO/Memory access space.
222 * filled in by sspci_attach() 223 * filled in by sspci_attach()
223 */ 224 */