Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151746556
D31110.id91994.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31110.id91994.diff
View Options
Index: sys/dev/acpica/acpi_resource.c
===================================================================
--- sys/dev/acpica/acpi_resource.c
+++ sys/dev/acpica/acpi_resource.c
@@ -421,6 +421,27 @@
(uintmax_t)min, (uintmax_t)length));
set->set_ioport(dev, arc->context, min, length);
}
+ } else if (res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED &&
+ res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED) {
+ /* Fixed size, variable location resource descriptor */
+ min = roundup(min, gran + 1);
+ if ((min + length - 1) > max) {
+ device_printf(dev,
+ "invalid memory range: start: %jx end: %jx max: %jx\n",
+ (uintmax_t)min, (uintmax_t)(min + length - 1),
+ (uintmax_t)max);
+ } else {
+ if (res->Data.Address.ResourceType == ACPI_MEMORY_RANGE) {
+ ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
+ "%s/Memory 0x%jx/%ju\n", name, (uintmax_t)min,
+ (uintmax_t)length));
+ set->set_memory(dev, arc->context, min, length);
+ } else {
+ ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, "%s/IO 0x%jx/%ju\n",
+ name, (uintmax_t)min, (uintmax_t)length));
+ set->set_ioport(dev, arc->context, min, length);
+ }
+ }
} else {
if (res->Data.Address32.ResourceType == ACPI_MEMORY_RANGE) {
ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 9:59 AM (33 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31283556
Default Alt Text
D31110.id91994.diff (1 KB)
Attached To
Mode
D31110: Support fixed size, varible location acpi resources
Attached
Detach File
Event Timeline
Log In to Comment