summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/memdev.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-01-17 22:58:28 +0000
committerjkim <jkim@FreeBSD.org>2011-01-17 22:58:28 +0000
commitea861abf2ae84b93075ddcb0b3abf37e8db5f9b1 (patch)
treef8f4914239ec2dcebc25a483fe770520ef994c63 /sys/powerpc/include/memdev.h
parent6fecc04fd699223a7b972bc85bbc80ab313ffdf7 (diff)
downloadFreeBSD-src-ea861abf2ae84b93075ddcb0b3abf37e8db5f9b1.zip
FreeBSD-src-ea861abf2ae84b93075ddcb0b3abf37e8db5f9b1.tar.gz
Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set().
Compile sys/dev/mem/memutil.c for all supported platforms and remove now unnecessary dev_mem_md_init(). Consistently define mem_range_softc from mem.c for all platforms. Add missing #include guards for machine/memdev.h and sys/memrange.h. Clean up some nearby style(9) nits. MFC after: 1 month
Diffstat (limited to 'sys/powerpc/include/memdev.h')
-rw-r--r--sys/powerpc/include/memdev.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/powerpc/include/memdev.h b/sys/powerpc/include/memdev.h
index 97000c9..649b557 100644
--- a/sys/powerpc/include/memdev.h
+++ b/sys/powerpc/include/memdev.h
@@ -26,6 +26,9 @@
* $FreeBSD$
*/
+#ifndef _MACHINE_MEMDEV_H_
+#define _MACHINE_MEMDEV_H_
+
#define CDEV_MINOR_MEM 0
#define CDEV_MINOR_KMEM 1
@@ -34,4 +37,4 @@ d_read_t memrw;
d_ioctl_t memioctl;
d_mmap_t memmmap;
-void dev_mem_md_init(void);
+#endif /* _MACHINE_MEMDEV_H_ */
OpenPOWER on IntegriCloud