diff options
author | jkim <jkim@FreeBSD.org> | 2011-01-17 22:58:28 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-01-17 22:58:28 +0000 |
commit | ea861abf2ae84b93075ddcb0b3abf37e8db5f9b1 (patch) | |
tree | f8f4914239ec2dcebc25a483fe770520ef994c63 /sys/powerpc/include | |
parent | 6fecc04fd699223a7b972bc85bbc80ab313ffdf7 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/powerpc/include/memdev.h | 5 |
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_ */ |