Deleted Added
full compact
if_pcnreg.h (183714) if_pcnreg.h (199560)
1/*-
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@ee.columbia.edu>. 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 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
1/*-
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@ee.columbia.edu>. 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 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/pcn/if_pcnreg.h 183714 2008-10-09 02:25:18Z peter $
33 * $FreeBSD: head/sys/dev/pcn/if_pcnreg.h 199560 2009-11-19 22:14:23Z jhb $
34 */
35
36/*
37 * I/O map in 16-bit mode. To switch to 32-bit mode,
38 * you need to perform a 32-bit write to the RDP register
39 * (writing a 0 is recommended).
40 */
41#define PCN_IO16_APROM00 0x00

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

460 int8_t pcn_extphyaddr;
461 int8_t pcn_inst_10bt;
462 int pcn_if_flags;
463 int pcn_type;
464 struct pcn_list_data *pcn_ldata;
465 struct pcn_ring_data pcn_cdata;
466 struct callout pcn_stat_callout;
467 struct mtx pcn_mtx;
34 */
35
36/*
37 * I/O map in 16-bit mode. To switch to 32-bit mode,
38 * you need to perform a 32-bit write to the RDP register
39 * (writing a 0 is recommended).
40 */
41#define PCN_IO16_APROM00 0x00

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

460 int8_t pcn_extphyaddr;
461 int8_t pcn_inst_10bt;
462 int pcn_if_flags;
463 int pcn_type;
464 struct pcn_list_data *pcn_ldata;
465 struct pcn_ring_data pcn_cdata;
466 struct callout pcn_stat_callout;
467 struct mtx pcn_mtx;
468 int pcn_timer;
468};
469
470#define PCN_LOCK(_sc) mtx_lock(&(_sc)->pcn_mtx)
471#define PCN_UNLOCK(_sc) mtx_unlock(&(_sc)->pcn_mtx)
472#define PCN_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->pcn_mtx, MA_OWNED)
473
474/*
475 * register space access macros

--- 55 unchanged lines hidden ---
469};
470
471#define PCN_LOCK(_sc) mtx_lock(&(_sc)->pcn_mtx)
472#define PCN_UNLOCK(_sc) mtx_unlock(&(_sc)->pcn_mtx)
473#define PCN_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->pcn_mtx, MA_OWNED)
474
475/*
476 * register space access macros

--- 55 unchanged lines hidden ---