patch-2.4.26 linux-2.4.26/drivers/acpi/resources/rsaddr.c
Next file: linux-2.4.26/drivers/acpi/resources/rsxface.c
Previous file: linux-2.4.26/drivers/acpi/processor.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
2004-04-14 06:05:29.000000000 -0700
- Orig file:
linux-2.4.25/drivers/acpi/resources/rsaddr.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/drivers/acpi/resources/rsaddr.c linux-2.4.26/drivers/acpi/resources/rsaddr.c
@@ -88,6 +88,7 @@
ACPI_FUNCTION_TRACE ("rs_address16_resource");
+
/*
* Point past the Descriptor to get the number of bytes consumed
*/
@@ -149,7 +150,7 @@
output_struct->data.address16.attribute.memory.read_write_attribute =
(u16) (temp8 & 0x01);
output_struct->data.address16.attribute.memory.cache_attribute =
- (u16) ((temp8 >> 1) & 0x0F);
+ (u16) ((temp8 >> 1) & 0x03);
}
else {
if (ACPI_IO_RANGE == output_struct->data.address16.resource_type) {
@@ -347,7 +348,7 @@
temp8 |=
(linked_list->data.address16.attribute.memory.cache_attribute &
- 0x0F) << 1;
+ 0x03) << 1;
}
else if (ACPI_IO_RANGE == linked_list->data.address16.resource_type) {
temp8 = (u8)
@@ -539,7 +540,7 @@
(u16) (temp8 & 0x01);
output_struct->data.address32.attribute.memory.cache_attribute =
- (u16) ((temp8 >> 1) & 0x0F);
+ (u16) ((temp8 >> 1) & 0x03);
}
else {
if (ACPI_IO_RANGE == output_struct->data.address32.resource_type) {
@@ -735,7 +736,7 @@
temp8 |=
(linked_list->data.address32.attribute.memory.cache_attribute &
- 0x0F) << 1;
+ 0x03) << 1;
}
else if (ACPI_IO_RANGE == linked_list->data.address32.resource_type) {
temp8 = (u8)
@@ -926,7 +927,7 @@
(u16) (temp8 & 0x01);
output_struct->data.address64.attribute.memory.cache_attribute =
- (u16) ((temp8 >> 1) & 0x0F);
+ (u16) ((temp8 >> 1) & 0x03);
}
else {
if (ACPI_IO_RANGE == output_struct->data.address64.resource_type) {
@@ -1124,7 +1125,7 @@
temp8 |=
(linked_list->data.address64.attribute.memory.cache_attribute &
- 0x0F) << 1;
+ 0x03) << 1;
}
else if (ACPI_IO_RANGE == linked_list->data.address64.resource_type) {
temp8 = (u8)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)