Reverted removal of 'const' from TagItem arrays/pointers in r50146
[AROS.git] / workbench / devs / networks / intelpro100 / mii.h
blob035c9b66da115043ff00124a3c9cb9ef96d0f78d
1 /*
3 Copyright (C) 2003 Neil Cafferkey
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 MA 02111-1307, USA.
22 #ifndef MII_H
23 #define MII_H
26 /* Registers */
27 /* ========= */
29 #define MII_CONTROL 0
30 #define MII_STATUS 1
31 #define MII_PHYID1 2
32 #define MII_PHYID2 3
33 #define MII_AUTONEGADVERT 4
34 #define MII_AUTONEGABILITY 5
35 #define MII_EXTSTATUS 15
38 /* Register Details */
39 /* ================ */
41 /* Control Register */
43 /* Status Register */
45 #define MII_STATUSB_100BASET4 15
46 #define MII_STATUSB_100BASEXFD 14
47 #define MII_STATUSB_100BASEXHD 13
48 #define MII_STATUSB_10BASEFD 12
49 #define MII_STATUSB_10BASEHD 11
50 #define MII_STATUSB_100BASET2FD 10
51 #define MII_STATUSB_100BASET2HD 9
53 #define MII_STATUSB_AUTONEGDONE 5
54 #define MII_STATUSB_AUTONEGABLE 3
55 #define MII_STATUSB_LINK 2
56 #define MII_STATUSB_EXTREGSET 0
58 #define MII_STATUSF_AUTONEGDONE (1 << MII_STATUSB_AUTONEGDONE)
59 #define MII_STATUSF_AUTONEGABLE (1 << MII_STATUSB_AUTONEGABLE)
60 #define MII_STATUSF_LINK (1 << MII_STATUSB_LINK)
61 #define MII_STATUSF_EXTREGSET (1 << MII_STATUSB_EXTREGSET)
63 /* */
65 #define MII_AUTONEGB_100BASETXFD 8
66 #define MII_AUTONEGB_100BASETX 7
67 #define MII_AUTONEGB_10BASETFD 6
68 #define MII_AUTONEGB_10BASET 5
70 #define MII_AUTONEGF_100BASETXFD (1 << MII_AUTONEGB_100BASETXFD)
71 #define MII_AUTONEGF_100BASETX (1 << MII_AUTONEGB_100BASETX)
72 #define MII_AUTONEGF_10BASETFD (1 << MII_AUTONEGB_10BASETFD)
73 #define MII_AUTONEGF_10BASET (1 << MII_AUTONEGB_10BASET)
75 #endif