diff options
author | marius <marius@FreeBSD.org> | 2011-10-11 21:52:24 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-10-11 21:52:24 +0000 |
commit | 2a4bf1ea8bf0f83e7562db32f157e58bef2cf214 (patch) | |
tree | 41fb3ee74af5767213ee898ac4321e98b3a8c4b0 | |
parent | 9b8d9b3ed18d6b0c6f881baf309e3935335bc7b1 (diff) | |
download | FreeBSD-src-2a4bf1ea8bf0f83e7562db32f157e58bef2cf214.zip FreeBSD-src-2a4bf1ea8bf0f83e7562db32f157e58bef2cf214.tar.gz |
- Remove unused remnants of MII bitbang'ing.
- Sprinkle const.
-rw-r--r-- | sys/dev/lge/if_lge.c | 4 | ||||
-rw-r--r-- | sys/dev/lge/if_lgereg.h | 19 |
2 files changed, 3 insertions, 20 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index b57d347..1679cf3 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -110,7 +110,7 @@ __FBSDID("$FreeBSD$"); /* * Various supported device vendors/types and their names. */ -static struct lge_type lge_devs[] = { +static const struct lge_type const lge_devs[] = { { LGE_VENDORID, LGE_DEVICEID, "Level 1 Gigabit Ethernet" }, { 0, 0, NULL } }; @@ -442,7 +442,7 @@ static int lge_probe(dev) device_t dev; { - struct lge_type *t; + const struct lge_type *t; t = lge_devs; diff --git a/sys/dev/lge/if_lgereg.h b/sys/dev/lge/if_lgereg.h index b963d57..bb794c2 100644 --- a/sys/dev/lge/if_lgereg.h +++ b/sys/dev/lge/if_lgereg.h @@ -475,26 +475,9 @@ struct lge_list_data { struct lge_type { u_int16_t lge_vid; u_int16_t lge_did; - char *lge_name; + const char *lge_name; }; -struct lge_mii_frame { - u_int8_t mii_stdelim; - u_int8_t mii_opcode; - u_int8_t mii_phyaddr; - u_int8_t mii_regaddr; - u_int8_t mii_turnaround; - u_int16_t mii_data; -}; - -/* - * MII constants - */ -#define LGE_MII_STARTDELIM 0x01 -#define LGE_MII_READOP 0x02 -#define LGE_MII_WRITEOP 0x01 -#define LGE_MII_TURNAROUND 0x02 - #define LGE_JUMBO_FRAMELEN 9018 #define LGE_JUMBO_MTU (LGE_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN) #define LGE_JSLOTS 384 |