patch-2.4.10 linux/drivers/acpi/resources/rsmemory.c

Next file: linux/drivers/acpi/resources/rsmisc.c
Previous file: linux/drivers/acpi/resources/rslist.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/drivers/acpi/resources/rsmemory.c linux/drivers/acpi/resources/rsmemory.c
@@ -53,7 +53,7 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_memory24_resource (
 	u8                      *byte_stream_buffer,
 	u32                     *bytes_consumed,
@@ -61,10 +61,13 @@
 	u32                     *structure_size)
 {
 	u8                      *buffer = byte_stream_buffer;
-	ACPI_RESOURCE           *output_struct = (ACPI_RESOURCE *) *output_buffer;
+	acpi_resource           *output_struct = (acpi_resource *) *output_buffer;
 	u16                     temp16 = 0;
 	u8                      temp8 = 0;
-	u32                     struct_size = SIZEOF_RESOURCE (ACPI_RESOURCE_MEM24);
+	u32                     struct_size = SIZEOF_RESOURCE (acpi_resource_mem24);
+
+
+	FUNCTION_TRACE ("Rs_memory24_resource");
 
 
 	/*
@@ -120,7 +123,7 @@
 	 * Return the final size of the structure
 	 */
 	*structure_size = struct_size;
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 
 
@@ -141,9 +144,9 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_memory24_stream (
-	ACPI_RESOURCE           *linked_list,
+	acpi_resource           *linked_list,
 	u8                      **output_buffer,
 	u32                     *bytes_consumed)
 {
@@ -152,6 +155,9 @@
 	u8                      temp8 = 0;
 
 
+	FUNCTION_TRACE ("Rs_memory24_stream");
+
+
 	/*
 	 * The descriptor field is static
 	 */
@@ -200,7 +206,7 @@
 	 * Return the number of bytes consumed in this operation
 	 */
 	*bytes_consumed = POINTER_DIFF (buffer, *output_buffer);
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 
 
@@ -226,7 +232,7 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_memory32_range_resource (
 	u8                      *byte_stream_buffer,
 	u32                     *bytes_consumed,
@@ -234,10 +240,13 @@
 	u32                     *structure_size)
 {
 	u8                      *buffer = byte_stream_buffer;
-	ACPI_RESOURCE           *output_struct = (ACPI_RESOURCE *) *output_buffer;
+	acpi_resource           *output_struct = (acpi_resource *) *output_buffer;
 	u16                     temp16 = 0;
 	u8                      temp8 = 0;
-	u32                     struct_size = SIZEOF_RESOURCE (ACPI_RESOURCE_MEM32);
+	u32                     struct_size = SIZEOF_RESOURCE (acpi_resource_mem32);
+
+
+	FUNCTION_TRACE ("Rs_memory32_range_resource");
 
 
 	/*
@@ -303,7 +312,7 @@
 	 * Return the final size of the structure
 	 */
 	*structure_size = struct_size;
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 
 
@@ -329,7 +338,7 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_fixed_memory32_resource (
 	u8                      *byte_stream_buffer,
 	u32                     *bytes_consumed,
@@ -337,10 +346,13 @@
 	u32                     *structure_size)
 {
 	u8                      *buffer = byte_stream_buffer;
-	ACPI_RESOURCE           *output_struct = (ACPI_RESOURCE *) *output_buffer;
+	acpi_resource           *output_struct = (acpi_resource *) *output_buffer;
 	u16                     temp16 = 0;
 	u8                      temp8 = 0;
-	u32                     struct_size = SIZEOF_RESOURCE (ACPI_RESOURCE_FIXED_MEM32);
+	u32                     struct_size = SIZEOF_RESOURCE (acpi_resource_fixed_mem32);
+
+
+	FUNCTION_TRACE ("Rs_fixed_memory32_resource");
 
 
 	/*
@@ -383,7 +395,7 @@
 	 * Return the final size of the structure
 	 */
 	*structure_size = struct_size;
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 
 
@@ -404,9 +416,9 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_memory32_range_stream (
-	ACPI_RESOURCE           *linked_list,
+	acpi_resource           *linked_list,
 	u8                      **output_buffer,
 	u32                     *bytes_consumed)
 {
@@ -415,6 +427,9 @@
 	u8                      temp8 = 0;
 
 
+	FUNCTION_TRACE ("Rs_memory32_range_stream");
+
+
 	/*
 	 * The descriptor field is static
 	 */
@@ -464,7 +479,7 @@
 	 * Return the number of bytes consumed in this operation
 	 */
 	*bytes_consumed = POINTER_DIFF (buffer, *output_buffer);
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 
 
@@ -485,9 +500,9 @@
  *
  ******************************************************************************/
 
-ACPI_STATUS
+acpi_status
 acpi_rs_fixed_memory32_stream (
-	ACPI_RESOURCE           *linked_list,
+	acpi_resource           *linked_list,
 	u8                      **output_buffer,
 	u32                     *bytes_consumed)
 {
@@ -496,6 +511,9 @@
 	u8                      temp8 = 0;
 
 
+	FUNCTION_TRACE ("Rs_fixed_memory32_stream");
+
+
 	/*
 	 * The descriptor field is static
 	 */
@@ -535,6 +553,6 @@
 	 * Return the number of bytes consumed in this operation
 	 */
 	*bytes_consumed = POINTER_DIFF (buffer, *output_buffer);
-	return (AE_OK);
+	return_ACPI_STATUS (AE_OK);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)