Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 13:00:40 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230808 - in head/sys: dev/ie sys
Message-ID:  <201201311300.q0VD0eWM036780@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Tue Jan 31 13:00:40 2012
New Revision: 230808
URL: http://svn.freebsd.org/changeset/base/230808

Log:
  Isolate v_caddr_t in the ie driver.
  
  Submitted by:	Bruce Evans on net@

Modified:
  head/sys/dev/ie/if_ie.c
  head/sys/sys/types.h

Modified: head/sys/dev/ie/if_ie.c
==============================================================================
--- head/sys/dev/ie/if_ie.c	Tue Jan 31 12:57:21 2012	(r230807)
+++ head/sys/dev/ie/if_ie.c	Tue Jan 31 13:00:40 2012	(r230808)
@@ -157,6 +157,9 @@ static int	ie_debug = IED_RNR;
 
 #define IE_BUF_LEN	ETHER_MAX_LEN	/* length of transmit buffer */
 
+/* XXX this driver uses `volatile' and `caddr_t' to a fault. */
+typedef	volatile char *v_caddr_t;	/* core address, pointer to volatile */
+
 /* Forward declaration */
 struct ie_softc;
 

Modified: head/sys/sys/types.h
==============================================================================
--- head/sys/sys/types.h	Tue Jan 31 12:57:21 2012	(r230807)
+++ head/sys/sys/types.h	Tue Jan 31 13:00:40 2012	(r230808)
@@ -73,7 +73,6 @@ typedef	quad_t *	qaddr_t;
 
 typedef	char *		caddr_t;	/* core address */
 typedef	const char *	c_caddr_t;	/* core address, pointer to const */
-typedef	__volatile char *v_caddr_t;	/* core address, pointer to volatile */
 
 #ifndef _BLKSIZE_T_DECLARED
 typedef	__blksize_t	blksize_t;



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