]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r209965, r209966, r210129, r210137, r210155, r210157
authorjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 20 Jul 2010 19:38:38 +0000 (19:38 +0000)
committerjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 20 Jul 2010 19:38:38 +0000 (19:38 +0000)
commit0237f4eda8b2fb6fa13cb1628f57e6eea6a13eed
tree942e72a8f9dc92d0b6827c96a29bc9d61a250e69
parent071e15892add6dad1373e144062daed3f90f272c
MFC: r209965, r209966, r210129, r210137, r210155, r210157

- According to ACPICA User Guide and Programmer Reference, the read data
must be zero extended to fill the 32-bit or 64-bit return value even if
the bit width of the port or location is less than 32 or 64.
- Use pmap_mapdev()/pmap_unmapdev() to map device memory instead of using
AcpiOsMapMemory()/AcpiOsUnmapMemory() (-> pmap_mapbios()/pmap_unmapbios())
for AcpiOsReadMemory() and AcpiOsWriteMemory().  Although they do not sound
too obvious, these functions are exclusively used to access memory mapped
IO in ACPICA.
- Remove 64-bit access from AcpiOsReadMemory() and AcpiOsWriteMemory().
These functions do not support 64-bit access.  Likewise, return error when
64-bit access is requested for PCI configuration space.
- Simplify AcpiOsReadPort() and AcpiOsWritePort() with iodev_read_*() and
iodev_write_*().  This removes unnecessary uses of temporary macros as well.
There is no functional change after this (verified with md5(1) on amd64).

git-svn-id: svn://svn.freebsd.org/base/stable/8@210313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/acpica/Osd/OsdHardware.c
sys/dev/acpica/Osd/OsdMemory.c