si_pci.c (302408) | si_pci.c (335087) |
---|---|
1/*- 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 5 unchanged lines hidden (view full) --- 14 * 15 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 18 * NO EVENT SHALL THE AUTHORS BE LIABLE. 19 */ 20 21#include <sys/cdefs.h> | 1/*- 2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors. 3 * 4 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 5 unchanged lines hidden (view full) --- 14 * 15 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED 16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 18 * NO EVENT SHALL THE AUTHORS BE LIABLE. 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: stable/11/sys/dev/si/si_pci.c 174136 2007-12-01 20:39:47Z peter $"); | 22__FBSDID("$FreeBSD: stable/11/sys/dev/si/si_pci.c 335087 2018-06-13 20:33:52Z dim $"); |
23 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/kernel.h> 27#include <sys/module.h> 28#include <sys/bus.h> 29#include <machine/bus.h> 30#include <sys/rman.h> --- 50 unchanged lines hidden (view full) --- 81 82 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 83 &sc->sc_mem_rid, 84 RF_ACTIVE); 85 if (!sc->sc_mem_res) { 86 device_printf(dev, "couldn't map memory\n"); 87 goto fail; 88 } | 23 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/kernel.h> 27#include <sys/module.h> 28#include <sys/bus.h> 29#include <machine/bus.h> 30#include <sys/rman.h> --- 50 unchanged lines hidden (view full) --- 81 82 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 83 &sc->sc_mem_rid, 84 RF_ACTIVE); 85 if (!sc->sc_mem_res) { 86 device_printf(dev, "couldn't map memory\n"); 87 goto fail; 88 } |
89 sc->sc_paddr = (caddr_t)rman_get_start(sc->sc_mem_res); | 89 sc->sc_paddr = (caddr_t)(uintptr_t)rman_get_start(sc->sc_mem_res); |
90 sc->sc_maddr = rman_get_virtual(sc->sc_mem_res); 91 92 sc->sc_irq_rid = 0; 93 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, 94 &sc->sc_irq_rid, 95 RF_ACTIVE | RF_SHAREABLE); 96 if (!sc->sc_irq_res) { 97 device_printf(dev, "couldn't map interrupt\n"); --- 71 unchanged lines hidden --- | 90 sc->sc_maddr = rman_get_virtual(sc->sc_mem_res); 91 92 sc->sc_irq_rid = 0; 93 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, 94 &sc->sc_irq_rid, 95 RF_ACTIVE | RF_SHAREABLE); 96 if (!sc->sc_irq_res) { 97 device_printf(dev, "couldn't map interrupt\n"); --- 71 unchanged lines hidden --- |