Author: marius
Date: Tue Oct 11 21:52:24 2011
New Revision: 226270
URL: http://svn.freebsd.org/changeset/base/226270

Log:
  - Remove unused remnants of MII bitbang'ing.
  - Sprinkle const.

Modified:
  head/sys/dev/lge/if_lge.c
  head/sys/dev/lge/if_lgereg.h

Modified: head/sys/dev/lge/if_lge.c
==============================================================================
--- head/sys/dev/lge/if_lge.c   Tue Oct 11 20:37:10 2011        (r226269)
+++ head/sys/dev/lge/if_lge.c   Tue Oct 11 21:52:24 2011        (r226270)
@@ -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;
 

Modified: head/sys/dev/lge/if_lgereg.h
==============================================================================
--- head/sys/dev/lge/if_lgereg.h        Tue Oct 11 20:37:10 2011        
(r226269)
+++ head/sys/dev/lge/if_lgereg.h        Tue Oct 11 21:52:24 2011        
(r226270)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to