Deleted Added
full compact
dp83932var.h (153165) dp83932var.h (179442)
1/* $FreeBSD: head/sys/dev/snc/dp83932var.h 153165 2005-12-06 11:19:37Z ru $ */
1/* $FreeBSD: head/sys/dev/snc/dp83932var.h 179442 2008-05-30 21:48:05Z jhb $ */
2/* $NecBSD: dp83932var.h,v 1.3 1999/01/24 01:39:51 kmatsuda Exp $ */
3/* $NetBSD: if_snvar.h,v 1.12 1998/05/01 03:42:47 scottr Exp $ */
4
5/*-
6 * [NetBSD for NEC PC-98 series]
7 * Copyright (c) 1997, 1998, 1999
8 * Kouichi Matsuda. All rights reserved.
9 *

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

18/*
19 * Modified for NetBSD/pc98 1.2.1 from NetBSD/mac68k 1.2D by Kouichi Matsuda.
20 * Make adapted for NEC PC-9801-83, 84, PC-9801-103, 104, PC-9801N-25 and
21 * PC-9801N-J02, J02R, which uses National Semiconductor DP83934AVQB as
22 * Ethernet Controller and National Semiconductor NS46C46 as
23 * (64 * 16 bits) Microwire Serial EEPROM.
24 */
25
2/* $NecBSD: dp83932var.h,v 1.3 1999/01/24 01:39:51 kmatsuda Exp $ */
3/* $NetBSD: if_snvar.h,v 1.12 1998/05/01 03:42:47 scottr Exp $ */
4
5/*-
6 * [NetBSD for NEC PC-98 series]
7 * Copyright (c) 1997, 1998, 1999
8 * Kouichi Matsuda. All rights reserved.
9 *

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

18/*
19 * Modified for NetBSD/pc98 1.2.1 from NetBSD/mac68k 1.2D by Kouichi Matsuda.
20 * Make adapted for NEC PC-9801-83, 84, PC-9801-103, 104, PC-9801N-25 and
21 * PC-9801N-J02, J02R, which uses National Semiconductor DP83934AVQB as
22 * Ethernet Controller and National Semiconductor NS46C46 as
23 * (64 * 16 bits) Microwire Serial EEPROM.
24 */
25
26/* borrow from arch/mac68k/dev/if_mcvar.h for debug. */
27#ifdef DDB
28#define integrate
29#define hide
30#else
31#define integrate static __inline
32#define hide static
33#endif
34
35/* NetBSD Emulation */
36#ifdef __NetBSD__
37#define splhardnet splnet
38#endif
39#ifdef __FreeBSD__
40#define splhardnet splimp
41#ifndef NBPG
42#define NBPG PAGE_SIZE
43#endif
44#ifndef PGOFSET
45#define PGOFSET PAGE_MASK
46#endif
47typedef unsigned long ulong;
48#define delay(x) DELAY(x)
49#endif
50
51/*
52 * Vendor types
53 */
54
55/*
56 * SONIC buffers need to be aligned 16 or 32 bit aligned.
57 * These macros calculate and verify alignment.
58 */

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

220
221 int sc_enabled; /* boolean; power enabled on interface */
222
223 int (*sc_enable)(struct snc_softc *);
224 void (*sc_disable)(struct snc_softc *);
225
226 void *sc_sh; /* shutdownhook cookie */
227 int gone;
26/*
27 * Vendor types
28 */
29
30/*
31 * SONIC buffers need to be aligned 16 or 32 bit aligned.
32 * These macros calculate and verify alignment.
33 */

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

195
196 int sc_enabled; /* boolean; power enabled on interface */
197
198 int (*sc_enable)(struct snc_softc *);
199 void (*sc_disable)(struct snc_softc *);
200
201 void *sc_sh; /* shutdownhook cookie */
202 int gone;
228
229#if defined(NRND) && NRND > 0
230 rndsource_element_t rnd_source;
231#endif
232} snc_softc_t;
233
234/*
235 * Accessing SONIC data structures and registers as 32 bit values
236 * makes code endianess independent. The SONIC is however always in
237 * bigendian mode so it is necessary to ensure that data structures shared
238 * between the CPU and the SONIC are always in bigendian order.
239 */

--- 69 unchanged lines hidden ---
203} snc_softc_t;
204
205/*
206 * Accessing SONIC data structures and registers as 32 bit values
207 * makes code endianess independent. The SONIC is however always in
208 * bigendian mode so it is necessary to ensure that data structures shared
209 * between the CPU and the SONIC are always in bigendian order.
210 */

--- 69 unchanged lines hidden ---