Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2002 12:37:49 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22350 for review
Message-ID:  <200212152037.gBFKbnEu058709@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22350

Change 22350 by marcel@marcel_nfs on 2002/12/15 12:37:18

	Change the type of the address parameter for the bus space
	memory access functions from u_int to u_int64_t.

Affected files ...

.. //depot/projects/ia64/sys/ia64/include/cpufunc.h#8 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/include/cpufunc.h#8 (text+ko) ====

@@ -163,7 +163,7 @@
 }
 
 static __inline u_int8_t
-readb(u_int addr)
+readb(u_int64_t addr)
 {
 	volatile u_int8_t *p = ia64_memory_address(addr);
 	u_int8_t v = *p;
@@ -172,7 +172,7 @@
 }
 
 static __inline u_int16_t
-readw(u_int addr)
+readw(u_int64_t addr)
 {
 	volatile u_int16_t *p = ia64_memory_address(addr);
 	u_int16_t v = *p;
@@ -181,7 +181,7 @@
 }
 
 static __inline u_int32_t
-readl(u_int addr)
+readl(u_int64_t addr)
 {
 	volatile u_int32_t *p = ia64_memory_address(addr);
 	u_int32_t v = *p;
@@ -190,7 +190,7 @@
 }
 
 static __inline void
-writeb(u_int addr, u_int8_t data)
+writeb(u_int64_t addr, u_int8_t data)
 {
 	volatile u_int8_t *p = ia64_memory_address(addr);
 	*p = data;
@@ -198,7 +198,7 @@
 }
 
 static __inline void
-writew(u_int addr, u_int16_t data)
+writew(u_int64_t addr, u_int16_t data)
 {
 	volatile u_int16_t *p = ia64_memory_address(addr);
 	*p = data;
@@ -206,7 +206,7 @@
 }
 
 static __inline void
-writel(u_int addr, u_int32_t data)
+writel(u_int64_t addr, u_int32_t data)
 {
 	volatile u_int32_t *p = ia64_memory_address(addr);
 	*p = data;
@@ -214,7 +214,7 @@
 }
 
 static __inline void
-memcpy_fromio(u_int8_t *addr, size_t ofs, size_t count)
+memcpy_fromio(u_int8_t *addr, u_int64_t ofs, size_t count)
 {
 	volatile u_int8_t *p = ia64_memory_address(ofs);
 	while (count--)
@@ -222,7 +222,7 @@
 }
 
 static __inline void
-memcpy_io(size_t dst, size_t src, size_t count)
+memcpy_io(u_int64_t dst, u_int64_t src, size_t count)
 {
 	volatile u_int8_t *dp = ia64_memory_address(dst);
 	volatile u_int8_t *sp = ia64_memory_address(src);
@@ -231,7 +231,7 @@
 }
 
 static __inline void
-memcpy_toio(size_t ofs, u_int8_t *addr, size_t count)
+memcpy_toio(u_int64_t ofs, u_int8_t *addr, size_t count)
 {
 	volatile u_int8_t *p = ia64_memory_address(ofs);
 	while (count--)
@@ -239,7 +239,7 @@
 }
 
 static __inline void
-memset_io(size_t ofs, u_int8_t value, size_t count)
+memset_io(u_int64_t ofs, u_int8_t value, size_t count)
 {
 	volatile u_int8_t *p = ia64_memory_address(ofs);
 	while (count--)
@@ -254,7 +254,7 @@
 }
 
 static __inline void
-memsetw_io(size_t ofs, u_int16_t value, size_t count)
+memsetw_io(u_int64_t ofs, u_int16_t value, size_t count)
 {
 	volatile u_int16_t *p = ia64_memory_address(ofs);
 	while (count--)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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