Deleted Added
full compact
if_patm_tx.c (117872) if_patm_tx.c (118158)
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:

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

32 * Copyright (c) 1996, 1997, 1998, 1999 Mark Tinguely
33 * All rights reserved.
34 *
35 * Author: Hartmut Brandt <harti@freebsd.org>
36 *
37 * Driver for IDT77252 based cards like ProSum's.
38 */
39#include <sys/cdefs.h>
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:

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

32 * Copyright (c) 1996, 1997, 1998, 1999 Mark Tinguely
33 * All rights reserved.
34 *
35 * Author: Hartmut Brandt <harti@freebsd.org>
36 *
37 * Driver for IDT77252 based cards like ProSum's.
38 */
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_tx.c 117872 2003-07-22 08:20:09Z harti $");
40__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_tx.c 118158 2003-07-29 13:21:57Z harti $");
41
42#include "opt_inet.h"
43#include "opt_natm.h"
44
45#include <sys/types.h>
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/malloc.h>

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

739 u_int acri, cps;
740
741 acri = (patm_sram_read(sc, 8 * cid + 2) >> IDT_TCT_ACRI_SHIFT)
742 & 0x3fff;
743 cps = sc->ifatm.mib.pcr * 32 /
744 ((1 << (acri >> 10)) * (acri & 0x3ff));
745
746 if (cps != vcc->cps) {
41
42#include "opt_inet.h"
43#include "opt_natm.h"
44
45#include <sys/types.h>
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/malloc.h>

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

739 u_int acri, cps;
740
741 acri = (patm_sram_read(sc, 8 * cid + 2) >> IDT_TCT_ACRI_SHIFT)
742 & 0x3fff;
743 cps = sc->ifatm.mib.pcr * 32 /
744 ((1 << (acri >> 10)) * (acri & 0x3ff));
745
746 if (cps != vcc->cps) {
747 /* send message */
748 patm_debug(sc, VCC, "ACRI=%04x CPS=%u", acri, cps);
747 patm_debug(sc, VCC, "ACRI=%04x CPS=%u", acri, cps);
748 ATMEV_SEND_ACR_CHANGED(&sc->ifatm, vcc->vcc.vpi,
749 vcc->vcc.vci, cps);
749 vcc->cps = cps;
750 }
751 }
752
753 patm_launch(sc, scd);
754}
755
756/*

--- 518 unchanged lines hidden ---
750 vcc->cps = cps;
751 }
752 }
753
754 patm_launch(sc, scd);
755}
756
757/*

--- 518 unchanged lines hidden ---