diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-10-02 14:04:33 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-10-02 14:04:33 +0000 |
| commit | ee709c2f32da7c12e7fcece8a4f427c64b30ddb4 (patch) | |
| tree | 221aec60b59fa10f8085d889c373fc96b330f383 /sys | |
| parent | df31aac551a343b4d00a0ec5cee4b849fe31a915 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/de/if_de.c | 11 | ||||
| -rw-r--r-- | sys/pci/if_de.c | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 96833118f2c4..6c352b916a49 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_de.c,v 1.30 1995/06/28 05:46:19 davidg Exp $ + * $Id: if_de.c,v 1.31 1995/09/29 19:52:10 davidg Exp $ * */ @@ -2514,8 +2514,13 @@ tulip_pci_attach( sc->tulip_name, sc->tulip_unit); #endif #if defined(__FreeBSD__) - if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) - pci_map_int (config_id, tulip_intr, (void*) sc, &net_imask); + if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) { + if (!pci_map_int(config_id, tulip_intr, (void*) sc, &net_imask)) { + printf("%s%d: couldn't map interrupt\n", + sc->tulip_name, sc->tulip_unit); + return; + } + } #endif #if defined(__bsdi__) if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) { diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index 96833118f2c4..6c352b916a49 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_de.c,v 1.30 1995/06/28 05:46:19 davidg Exp $ + * $Id: if_de.c,v 1.31 1995/09/29 19:52:10 davidg Exp $ * */ @@ -2514,8 +2514,13 @@ tulip_pci_attach( sc->tulip_name, sc->tulip_unit); #endif #if defined(__FreeBSD__) - if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) - pci_map_int (config_id, tulip_intr, (void*) sc, &net_imask); + if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) { + if (!pci_map_int(config_id, tulip_intr, (void*) sc, &net_imask)) { + printf("%s%d: couldn't map interrupt\n", + sc->tulip_name, sc->tulip_unit); + return; + } + } #endif #if defined(__bsdi__) if (sc->tulip_boardsw->bd_type != TULIP_DC21040_ZX314_SLAVE) { |
