1150957Simp/*-
2150957Simp * Copyright (c) 2003, David Madole
3150957Simp * All rights reserved.
4150957Simp * Copyright (c) 2005, M. Warner Losh.
5150957Simp * All rights reserved.
6150957Simp *
7150957Simp * Redistribution and use in source and binary forms, with or without
8150957Simp * modification, are permitted provided that the following conditions
9150957Simp * are met:
10150957Simp * 1. Redistributions of source code must retain the above copyright
11150957Simp *    notice unmodified, this list of conditions, and the following
12150957Simp *    disclaimer.
13150957Simp * 2. Redistributions in binary form must reproduce the above copyright
14150957Simp *    notice, this list of conditions and the following disclaimer in the
15150957Simp *    documentation and/or other materials provided with the distribution.
16150957Simp *
17150957Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18150957Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19150957Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20150957Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21150957Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22150957Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23150957Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24150957Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25150957Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26150957Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27150957Simp * SUCH DAMAGE.
28150957Simp *
29150957Simp * Based on patches subitted by: David Madole, edited by M. Warner Losh.
30150957Simp *
31150957Simp * $FreeBSD$
32150957Simp */
33150957Simp
34150957Simp/*
35150957Simp * RTL8019/8029 Specific Registers
36150957Simp */
37150957Simp
38150957Simp#define ED_RTL80X9_CONFIG0	0x03
39150957Simp#define ED_RTL80X9_CONFIG2	0x05
40150957Simp#define ED_RTL80X9_CONFIG3	0x06
41150957Simp#define ED_RTL80X9_80X9ID0	0x0a
42150957Simp#define ED_RTL80X9_ID0			0x50
43150957Simp#define ED_RTL80X9_80X9ID1	0x0b
44150957Simp#define ED_RTL8019_ID1			0x70
45150957Simp#define ED_RTL8029_ID1			0x43
46150957Simp
47150957Simp#define	ED_RTL80X9_CF0_BNC	0x04
48150957Simp#define ED_RTL80X9_CF0_AUI	0x20
49150957Simp
50150957Simp#define ED_RTL80X9_CF2_MEDIA	0xc0
51150957Simp#define ED_RTL80X9_CF2_AUTO	0x00
52150957Simp#define ED_RTL80X9_CF2_10_T	0x40
53150957Simp#define ED_RTL80X9_CF2_10_5	0x80
54150957Simp#define ED_RTL80X9_CF2_10_2	0xc0
55150957Simp
56150957Simp#define ED_RTL80X9_CF3_FUDUP	0x40
57150957Simp
58150957Simp#define ED_RTL8029_PCI_ID	0x802910ec
59