1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 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: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 * 27 * Author: Hartmut Brandt <harti@freebsd.org> 28 * 29 * Driver for IDT77252 based cards like ProSum's. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_attach.c 150220 2005-09-16 12:49:06Z ru $"); |
34 35#include "opt_inet.h" 36#include "opt_natm.h" 37 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> --- 430 unchanged lines hidden (view full) --- 472 if (sc->utopia.state & UTP_ST_ATTACHED) { 473 patm_debug(sc, ATTACH, "detaching utopia"); 474 utopia_stop(&sc->utopia); 475 utopia_detach(&sc->utopia); 476 } 477 mtx_unlock(&sc->mtx); 478 479 atm_ifdetach(sc->ifp); |
480 481 patm_destroy(sc); 482 483 return (0); 484} 485 486/* 487 * Destroy everything. Assume we are stopped. --- 68 unchanged lines hidden (view full) --- 556 bus_release_resource(sc->dev, SYS_RES_MEMORY, 557 IDT_PCI_REG_MEMBASE, sc->memres); 558 559 /* this was initialize unconditionally */ 560 sysctl_ctx_free(&sc->sysctl_ctx); 561 cv_destroy(&sc->vcc_cv); 562 mtx_destroy(&sc->tst_lock); 563 mtx_destroy(&sc->mtx); |
564 565 if (sc->ifp != NULL) 566 if_free(sc->ifp); |
567} 568 569/* 570 * Try to find a variable in the environment and parse it as an unsigned 571 * integer. 572 */ 573static void 574patm_env_getuint(struct patm_softc *sc, u_int *var, const char *name) --- 502 unchanged lines hidden --- |