if_de.c (50055) | if_de.c (50107) |
---|---|
1/* $NetBSD: if_de.c,v 1.86 1999/06/01 19:17:59 thorpej Exp $ */ 2 | 1/* $NetBSD: if_de.c,v 1.86 1999/06/01 19:17:59 thorpej Exp $ */ 2 |
3/* $FreeBSD: head/sys/dev/de/if_de.c 50055 1999-08-19 15:07:20Z peter $ */ | 3/* $FreeBSD: head/sys/dev/de/if_de.c 50107 1999-08-21 06:24:40Z msmith $ */ |
4 5/*- 6 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: --- 5109 unchanged lines hidden (view full) --- 5121 tulip_pci_probe, 5122 tulip_pci_attach, 5123 &tulip_pci_count, 5124}; 5125 5126COMPAT_PCI_DRIVER(de, dedevice); 5127 5128static void | 4 5/*- 6 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: --- 5109 unchanged lines hidden (view full) --- 5121 tulip_pci_probe, 5122 tulip_pci_attach, 5123 &tulip_pci_count, 5124}; 5125 5126COMPAT_PCI_DRIVER(de, dedevice); 5127 5128static void |
5129tulip_shutdown(int howto, void *arg) | 5129tulip_shutdown(void *arg, int howto) |
5130{ 5131 tulip_softc_t * const sc = arg; 5132 TULIP_CSR_WRITE(sc, csr_busmode, TULIP_BUSMODE_SWRESET); 5133 DELAY(10); /* Wait 10 microseconds (actually 50 PCI cycles but at 5134 33MHz that comes to two microseconds but wait a 5135 bit longer anyways) */ 5136} 5137 --- 170 unchanged lines hidden (view full) --- 5308 printf("%s%d: couldn't map interrupt\n", 5309 sc->tulip_name, sc->tulip_unit); 5310 free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); 5311 free((caddr_t) sc->tulip_txdescs, M_DEVBUF); 5312 free((caddr_t) sc, M_DEVBUF); 5313 return; 5314 } 5315 } | 5130{ 5131 tulip_softc_t * const sc = arg; 5132 TULIP_CSR_WRITE(sc, csr_busmode, TULIP_BUSMODE_SWRESET); 5133 DELAY(10); /* Wait 10 microseconds (actually 50 PCI cycles but at 5134 33MHz that comes to two microseconds but wait a 5135 bit longer anyways) */ 5136} 5137 --- 170 unchanged lines hidden (view full) --- 5308 printf("%s%d: couldn't map interrupt\n", 5309 sc->tulip_name, sc->tulip_unit); 5310 free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); 5311 free((caddr_t) sc->tulip_txdescs, M_DEVBUF); 5312 free((caddr_t) sc, M_DEVBUF); 5313 return; 5314 } 5315 } |
5316 at_shutdown(tulip_shutdown, sc, SHUTDOWN_POST_SYNC); | 5316 EVENTHANDLER_REGISTER(shutdown_post_sync, tulip_shutdown, sc, 5317 SHUTDOWN_PRI_DEFAULT); |
5317#if defined(TULIP_USE_SOFTINTR) 5318 if (sc->tulip_unit > tulip_softintr_max_unit) 5319 tulip_softintr_max_unit = sc->tulip_unit; 5320#endif 5321 5322 s = splimp(); 5323#if defined(__alpha__) 5324 sc->tulip_media = media; 5325#endif 5326 tulip_attach(sc); 5327#if defined(__alpha__) 5328 if (sc->tulip_media != TULIP_MEDIA_UNKNOWN) 5329 tulip_linkup(sc, media); 5330#endif 5331 splx(s); 5332 } 5333} | 5318#if defined(TULIP_USE_SOFTINTR) 5319 if (sc->tulip_unit > tulip_softintr_max_unit) 5320 tulip_softintr_max_unit = sc->tulip_unit; 5321#endif 5322 5323 s = splimp(); 5324#if defined(__alpha__) 5325 sc->tulip_media = media; 5326#endif 5327 tulip_attach(sc); 5328#if defined(__alpha__) 5329 if (sc->tulip_media != TULIP_MEDIA_UNKNOWN) 5330 tulip_linkup(sc, media); 5331#endif 5332 splx(s); 5333 } 5334} |