summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-05-13 12:21:41 +0000
committerBruce Evans <bde@FreeBSD.org>1999-05-13 12:21:41 +0000
commitc151de316aced0f13ea3282ece3f240b3c8096d7 (patch)
tree05291b3086a4b26fc6d79067741564312ff85613 /sys/dev/ic
parent4b9cb490c360466809c20cf68a6ccebbe3eff83c (diff)
Notes
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/i82586.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/dev/ic/i82586.h b/sys/dev/ic/i82586.h
index c1504fe963ad..704d624b77ae 100644
--- a/sys/dev/ic/i82586.h
+++ b/sys/dev/ic/i82586.h
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: i82586.h,v 1.6 1998/04/15 17:45:58 bde Exp $
+ * $Id: i82586.h,v 1.7 1998/08/10 17:21:48 bde Exp $
*/
/*
@@ -309,11 +309,18 @@ ie_setup_config(volatile struct ie_config_cmd *cmd,
cmd->ie_junk = 0xff;
}
-static __inline caddr_t
-Align(caddr_t ptr) {
+static __inline void *
+Align(void *ptr) {
uintptr_t l = (uintptr_t)ptr;
l = (l + 3) & ~3L;
- return (caddr_t)l;
+ return (void *)l;
+}
+
+static __inline volatile void *
+Alignvol(volatile void *ptr) {
+ uintptr_t l = (uintptr_t)ptr;
+ l = (l + 3) & ~3L;
+ return (volatile void *)l;
}
static __inline void