patch-2.4.10 linux/drivers/acpi/resources/rslist.c
Next file: linux/drivers/acpi/resources/rsmemory.c
Previous file: linux/drivers/acpi/resources/rsirq.c
Back to the patch index
Back to the overall index
- Lines: 114
- Date:
Sun Sep 23 09:42:32 2001
- Orig file:
v2.4.9/linux/drivers/acpi/resources/rslist.c
- Orig date:
Tue Jul 3 17:08:19 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/acpi/resources/rslist.c linux/drivers/acpi/resources/rslist.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: rslist - Linked list utilities
- * $Revision: 17 $
+ * $Revision: 19 $
*
******************************************************************************/
@@ -49,6 +49,9 @@
u8 resource_start_byte)
{
+ FUNCTION_ENTRY ();
+
+
/*
* Determine if this is a small or large resource
*/
@@ -91,13 +94,13 @@
*
******************************************************************************/
-ACPI_STATUS
+acpi_status
acpi_rs_byte_stream_to_list (
u8 *byte_stream_buffer,
u32 byte_stream_buffer_length,
u8 **output_buffer)
{
- ACPI_STATUS status;
+ acpi_status status;
u32 bytes_parsed = 0;
u8 resource_type = 0;
u32 bytes_consumed = 0;
@@ -106,6 +109,9 @@
u8 end_tag_processed = FALSE;
+ FUNCTION_TRACE ("Rs_byte_stream_to_list");
+
+
while (bytes_parsed < byte_stream_buffer_length &&
FALSE == end_tag_processed) {
/*
@@ -269,7 +275,7 @@
if (!ACPI_SUCCESS(status)) {
- return (status);
+ return_ACPI_STATUS (status);
}
/*
@@ -293,10 +299,10 @@
* Check the reason for exiting the while loop
*/
if (TRUE != end_tag_processed) {
- return (AE_AML_ERROR);
+ return_ACPI_STATUS (AE_AML_ERROR);
}
- return (AE_OK);
+ return_ACPI_STATUS (AE_OK);
}
@@ -321,18 +327,21 @@
*
******************************************************************************/
-ACPI_STATUS
+acpi_status
acpi_rs_list_to_byte_stream (
- ACPI_RESOURCE *linked_list,
+ acpi_resource *linked_list,
u32 byte_stream_size_needed,
u8 **output_buffer)
{
- ACPI_STATUS status;
+ acpi_status status;
u8 *buffer = *output_buffer;
u32 bytes_consumed = 0;
u8 done = FALSE;
+ FUNCTION_TRACE ("Rs_list_to_byte_stream");
+
+
while (!done) {
switch (linked_list->id) {
case ACPI_RSTYPE_IRQ:
@@ -465,7 +474,7 @@
if (!ACPI_SUCCESS(status)) {
- return (status);
+ return_ACPI_STATUS (status);
}
/*
@@ -476,10 +485,10 @@
/*
* Point to the next object
*/
- linked_list = POINTER_ADD (ACPI_RESOURCE,
+ linked_list = POINTER_ADD (acpi_resource,
linked_list, linked_list->length);
}
- 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)