Deleted Added
full compact
if_gemvar.h (194886) if_gemvar.h (213893)
1/*-
2 * Copyright (C) 2001 Eduardo Horvath.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * from: NetBSD: gemvar.h,v 1.8 2002/05/15 02:36:12 matt Exp
27 *
1/*-
2 * Copyright (C) 2001 Eduardo Horvath.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * from: NetBSD: gemvar.h,v 1.8 2002/05/15 02:36:12 matt Exp
27 *
28 * $FreeBSD: head/sys/dev/gem/if_gemvar.h 194886 2009-06-24 19:04:08Z marius $
28 * $FreeBSD: head/sys/dev/gem/if_gemvar.h 213893 2010-10-15 14:52:11Z marius $
29 */
30
31#ifndef _IF_GEMVAR_H
32#define _IF_GEMVAR_H
33
34#include <sys/queue.h>
35#include <sys/callout.h>
36

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

121#define GEM_RES_BANK2 2
122
123 bus_dma_tag_t sc_pdmatag; /* parent bus DMA tag */
124 bus_dma_tag_t sc_rdmatag; /* RX bus DMA tag */
125 bus_dma_tag_t sc_tdmatag; /* TX bus DMA tag */
126 bus_dma_tag_t sc_cdmatag; /* control data bus DMA tag */
127 bus_dmamap_t sc_dmamap; /* bus DMA handle */
128
29 */
30
31#ifndef _IF_GEMVAR_H
32#define _IF_GEMVAR_H
33
34#include <sys/queue.h>
35#include <sys/callout.h>
36

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

121#define GEM_RES_BANK2 2
122
123 bus_dma_tag_t sc_pdmatag; /* parent bus DMA tag */
124 bus_dma_tag_t sc_rdmatag; /* RX bus DMA tag */
125 bus_dma_tag_t sc_tdmatag; /* TX bus DMA tag */
126 bus_dma_tag_t sc_cdmatag; /* control data bus DMA tag */
127 bus_dmamap_t sc_dmamap; /* bus DMA handle */
128
129 int sc_phyad; /* PHY to use or -1 for any */
130
131 u_int sc_variant;
132#define GEM_UNKNOWN 0 /* don't know */
133#define GEM_SUN_GEM 1 /* Sun GEM */
134#define GEM_SUN_ERI 2 /* Sun ERI */
135#define GEM_APPLE_GMAC 3 /* Apple GMAC */
136#define GEM_APPLE_K2_GMAC 4 /* Apple K2 GMAC */
137
138#define GEM_IS_APPLE(sc) \

--- 144 unchanged lines hidden ---
129 u_int sc_variant;
130#define GEM_UNKNOWN 0 /* don't know */
131#define GEM_SUN_GEM 1 /* Sun GEM */
132#define GEM_SUN_ERI 2 /* Sun ERI */
133#define GEM_APPLE_GMAC 3 /* Apple GMAC */
134#define GEM_APPLE_K2_GMAC 4 /* Apple K2 GMAC */
135
136#define GEM_IS_APPLE(sc) \

--- 144 unchanged lines hidden ---