OsdMemory.c (92118) | OsdMemory.c (92666) |
---|---|
1/*- 2 * Copyright (c) 2000 Mitsaru Iwasaki 3 * Copyright (c) 2000 Michael Smith 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2000 Mitsaru Iwasaki 3 * Copyright (c) 2000 Michael Smith 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/acpica/Osd/OsdMemory.c 92118 2002-03-12 00:10:40Z peter $ | 28 * $FreeBSD: head/sys/dev/acpica/Osd/OsdMemory.c 92666 2002-03-19 11:02:06Z peter $ |
29 */ 30 31/* 32 * 6.2 : Memory Management 33 */ 34 35#include "acpi.h" 36 --- 76 unchanged lines hidden (view full) --- 113 case 32: 114 *(u_int32_t *)Value = (*(volatile u_int32_t *)LogicalAddress); 115 break; 116 case 64: 117 *(u_int64_t *)Value = (*(volatile u_int64_t *)LogicalAddress); 118 break; 119 default: 120 /* debug trap goes here */ | 29 */ 30 31/* 32 * 6.2 : Memory Management 33 */ 34 35#include "acpi.h" 36 --- 76 unchanged lines hidden (view full) --- 113 case 32: 114 *(u_int32_t *)Value = (*(volatile u_int32_t *)LogicalAddress); 115 break; 116 case 64: 117 *(u_int64_t *)Value = (*(volatile u_int64_t *)LogicalAddress); 118 break; 119 default: 120 /* debug trap goes here */ |
121 break; |
|
121 } 122 123 AcpiOsUnmapMemory(LogicalAddress, Width / 8); 124 125 return(AE_OK); 126} 127 128ACPI_STATUS --- 18 unchanged lines hidden (view full) --- 147 case 32: 148 (*(volatile u_int32_t *)LogicalAddress) = Value & 0xffffffff; 149 break; 150 case 64: 151 (*(volatile u_int64_t *)LogicalAddress) = Value; 152 break; 153 default: 154 /* debug trap goes here */ | 122 } 123 124 AcpiOsUnmapMemory(LogicalAddress, Width / 8); 125 126 return(AE_OK); 127} 128 129ACPI_STATUS --- 18 unchanged lines hidden (view full) --- 148 case 32: 149 (*(volatile u_int32_t *)LogicalAddress) = Value & 0xffffffff; 150 break; 151 case 64: 152 (*(volatile u_int64_t *)LogicalAddress) = Value; 153 break; 154 default: 155 /* debug trap goes here */ |
156 break; |
|
155 } 156 157 AcpiOsUnmapMemory(LogicalAddress, Width / 8); 158 159 return(AE_OK); 160} | 157 } 158 159 AcpiOsUnmapMemory(LogicalAddress, Width / 8); 160 161 return(AE_OK); 162} |