Deleted Added
full compact
tmc18c30_pci.c (119420) tmc18c30_pci.c (119690)
1/*-
2 * Copyright (c) 2003 Bob Bishop
3 * All rights reserved.
4 * [Ported for FreeBSD]
5 * Copyright (c) 2000
6 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe.
7 * All rights reserved.
8 * [NetBSD for NEC PC-98 series]

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

33 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Bob Bishop
3 * All rights reserved.
4 * [Ported for FreeBSD]
5 * Copyright (c) 2000
6 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe.
7 * All rights reserved.
8 * [NetBSD for NEC PC-98 series]

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

33 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/dev/stg/tmc18c30_pci.c 119420 2003-08-24 18:17:24Z obrien $");
41__FBSDID("$FreeBSD: head/sys/dev/stg/tmc18c30_pci.c 119690 2003-09-02 17:30:40Z jhb $");
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/module.h>
47#include <sys/bus.h>
48#include <sys/malloc.h>
49#include <sys/errno.h>

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

88}
89
90static int
91stg_pci_attach(device_t dev)
92{
93 struct stg_softc *sc = device_get_softc(dev);
94 int error;
95
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/module.h>
47#include <sys/bus.h>
48#include <sys/malloc.h>
49#include <sys/errno.h>

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

88}
89
90static int
91stg_pci_attach(device_t dev)
92{
93 struct stg_softc *sc = device_get_softc(dev);
94 int error;
95
96 sc->port_rid = PCIR_MAPS;
96 sc->port_rid = PCIR_BAR(0);
97 sc->irq_rid = 0;
98 error = stg_alloc_resource(dev);
99 if (error) {
100 return(error);
101 }
102
103 /* XXXX remove INTR_ENTROPY below for MFC */
104 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CAM | INTR_ENTROPY,

--- 32 unchanged lines hidden ---
97 sc->irq_rid = 0;
98 error = stg_alloc_resource(dev);
99 if (error) {
100 return(error);
101 }
102
103 /* XXXX remove INTR_ENTROPY below for MFC */
104 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CAM | INTR_ENTROPY,

--- 32 unchanged lines hidden ---