-
Notifications
You must be signed in to change notification settings - Fork 2
/
mii.h
67 lines (61 loc) · 2.45 KB
/
mii.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* This driver based on R1000 Linux Driver for Realtek controllers.
* It's not supported by Realtek company, so use it for your own risk.
* 2006 (c) Dmitri Arekhta ([email protected])
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*****************************************************************
*
* MODIFIED by PSYSTAR, 2008 -- (Rudy Pedraza)
* -- all changes released under GPL as required
* -- changes made to code are copyright PSYSTAR Corporation, 2008
**** Enhancement Log
* - added sleep/wake DHCP fix for
* - changed tx/rx interrupt handling, 2x speedup
* - added support for multiple NIC's, driver didnt play nice before
* - fixed com.apple.kernel & com.apple.kpi dependencies, you cant use both (warning now, future error)
* - cleaned up Info.plist, fixed matching
*
*****************************************************************
*
* MODIFIED by Chuck Fry ([email protected]) 2009
* -- released under GPL
**** Enhancement log
* - 64 bit clean
* - Handle 64 bit pointers as appropriate
* - you can safely ignore compiler warning "Right shift count >= width of type" on 32 bit platforms
* - fix compiler errors in increaseActivationLevel()
* - better thread safety for outputPacket()
* - added liberal comments where I needed to figure out what was happening
*
*****************************************************************
*
* modified by Slice 2013
* -- updated according latest linux's sources r8168-8.035.00, 2012
* -- added speed check
* -- warning eliminatings
*
******************************************************************
*/
#ifndef _MII_H_
#define _MII_H_
#define AUTONEG_ENABLE 0x01
#define AUTONEG_DISABLE 0x02
#define DUPLEX_HALF 0x01
#define DUPLEX_FULL 0x02
#define SPEED_10 0x01
#define SPEED_100 0x02
#define SPEED_1000 0x03
#endif