Deleted Added
full compact
ng_sscop_cust.h (137897) ng_sscop_cust.h (138268)
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/netgraph/atm/sscop/ng_sscop_cust.h 137897 2004-11-19 20:23:46Z glebius $
29 * $FreeBSD: head/sys/netgraph/atm/sscop/ng_sscop_cust.h 138268 2004-12-01 11:56:32Z glebius $
30 *
31 * Customisation of the SSCOP code to ng_sscop.
32 */
33
34#include <sys/param.h>
35#include <sys/types.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>

--- 65 unchanged lines hidden (view full) ---

103#endif
104
105/*
106 * Timer support.
107 */
108typedef struct callout sscop_timer_t;
109#define TIMER_INIT(S, T) ng_callout_init(&(S)->t_##T)
110#define TIMER_STOP(S,T) do { \
30 *
31 * Customisation of the SSCOP code to ng_sscop.
32 */
33
34#include <sys/param.h>
35#include <sys/types.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>

--- 65 unchanged lines hidden (view full) ---

103#endif
104
105/*
106 * Timer support.
107 */
108typedef struct callout sscop_timer_t;
109#define TIMER_INIT(S, T) ng_callout_init(&(S)->t_##T)
110#define TIMER_STOP(S,T) do { \
111 ng_untimeout(&(S)->t_##T, (S)->aarg); \
111 ng_uncallout(&(S)->t_##T, (S)->aarg); \
112 } while (0)
113#define TIMER_RESTART(S, T) do { \
114 TIMER_STOP(S, T); \
112 } while (0)
113#define TIMER_RESTART(S, T) do { \
114 TIMER_STOP(S, T); \
115 ng_timeout(&(S)->t_##T, (S)->aarg, NULL, \
115 ng_callout(&(S)->t_##T, (S)->aarg, NULL, \
116 hz * (S)->timer##T / 1000, T##_func, (S), 0); \
117 } while (0)
118#define TIMER_ISACT(S, T) ((S)->t_##T.c_flags & (CALLOUT_PENDING))
119
120/*
121 * This assumes, that the user argument is the node pointer.
122 */
123#define TIMER_FUNC(T,N) \

--- 221 unchanged lines hidden ---
116 hz * (S)->timer##T / 1000, T##_func, (S), 0); \
117 } while (0)
118#define TIMER_ISACT(S, T) ((S)->t_##T.c_flags & (CALLOUT_PENDING))
119
120/*
121 * This assumes, that the user argument is the node pointer.
122 */
123#define TIMER_FUNC(T,N) \

--- 221 unchanged lines hidden ---