Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 00:42:54 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r230697 - stable/9/sys/dev/lge
Message-ID:  <201201290042.q0T0gsbJ007636@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Jan 29 00:42:54 2012
New Revision: 230697
URL: http://svn.freebsd.org/changeset/base/230697

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

Modified:
  stable/9/sys/dev/lge/if_lge.c
  stable/9/sys/dev/lge/if_lgereg.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)

Modified: stable/9/sys/dev/lge/if_lge.c
==============================================================================
--- stable/9/sys/dev/lge/if_lge.c	Sun Jan 29 00:41:08 2012	(r230696)
+++ stable/9/sys/dev/lge/if_lge.c	Sun Jan 29 00:42:54 2012	(r230697)
@@ -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 }
 };
@@ -438,7 +438,7 @@ static int
 lge_probe(dev)
 	device_t		dev;
 {
-	struct lge_type		*t;
+	const struct lge_type	*t;
 
 	t = lge_devs;
 

Modified: stable/9/sys/dev/lge/if_lgereg.h
==============================================================================
--- stable/9/sys/dev/lge/if_lgereg.h	Sun Jan 29 00:41:08 2012	(r230696)
+++ stable/9/sys/dev/lge/if_lgereg.h	Sun Jan 29 00:42:54 2012	(r230697)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201290042.q0T0gsbJ007636>