if_hatm.c (122113) | if_hatm.c (126396) |
---|---|
1/* 2 * Copyright (c) 2001-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: --- 19 unchanged lines hidden (view full) --- 28 * 29 * ForeHE driver. 30 * 31 * This file contains the module and driver infrastructure stuff as well 32 * as a couple of utility functions and the entire initialisation. 33 */ 34 35#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2001-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: --- 19 unchanged lines hidden (view full) --- 28 * 29 * ForeHE driver. 30 * 31 * This file contains the module and driver infrastructure stuff as well 32 * as a couple of utility functions and the entire initialisation. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm.c 122113 2003-11-05 11:47:31Z harti $"); | 36__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm.c 126396 2004-02-29 09:26:01Z scottl $"); |
37 38#include "opt_inet.h" 39#include "opt_natm.h" 40 41#include <sys/types.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/malloc.h> --- 2262 unchanged lines hidden (view full) --- 2307 * Card resets the SUNI when resetted, so re-initialize it 2308 */ 2309 utopia_reset(&sc->utopia); 2310 2311 /* 2312 * Give any waiters on closing a VCC a chance. They will stop 2313 * to wait if they see that IFF_RUNNING disappeared. 2314 */ | 37 38#include "opt_inet.h" 39#include "opt_natm.h" 40 41#include <sys/types.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/malloc.h> --- 2262 unchanged lines hidden (view full) --- 2307 * Card resets the SUNI when resetted, so re-initialize it 2308 */ 2309 utopia_reset(&sc->utopia); 2310 2311 /* 2312 * Give any waiters on closing a VCC a chance. They will stop 2313 * to wait if they see that IFF_RUNNING disappeared. 2314 */ |
2315 while (!(cv_waitq_empty(&sc->vcc_cv))) { 2316 cv_broadcast(&sc->vcc_cv); 2317 DELAY(100); 2318 } 2319 while (!(cv_waitq_empty(&sc->cv_rcclose))) { 2320 cv_broadcast(&sc->cv_rcclose); 2321 } | 2315 cv_broadcast(&sc->vcc_cv); 2316 cv_broadcast(&sc->cv_rcclose); |
2322 2323 /* 2324 * Now free all resources. 2325 */ 2326 2327 /* 2328 * Free the large mbufs that are given to the card. 2329 */ --- 85 unchanged lines hidden --- | 2317 2318 /* 2319 * Now free all resources. 2320 */ 2321 2322 /* 2323 * Free the large mbufs that are given to the card. 2324 */ --- 85 unchanged lines hidden --- |