summaryrefslogtreecommitdiff
path: root/source/components/executer/exfield.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-09-11 21:38:09 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-09-11 21:38:09 +0000
commit754171ae60abbbd707ed8d449f07ef38f596bd22 (patch)
tree67d2b76905535d056ba6911186285d0325dc703f /source/components/executer/exfield.c
parente599b42ef5047e5546af949d87d2cfd2e17062b0 (diff)
Notes
Diffstat (limited to 'source/components/executer/exfield.c')
-rw-r--r--source/components/executer/exfield.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/source/components/executer/exfield.c b/source/components/executer/exfield.c
index a1de0ca237c7..49d3b667b78e 100644
--- a/source/components/executer/exfield.c
+++ b/source/components/executer/exfield.c
@@ -41,7 +41,6 @@
* POSSIBILITY OF SUCH DAMAGES.
*/
-
#define __EXFIELD_C__
#include "acpi.h"
@@ -203,14 +202,13 @@ AcpiExReadDataFromField (
Length = AcpiExGetSerialAccessLength (AccessorType,
ObjDesc->Field.AccessLength);
- /*
- * Add additional 2 bytes for modeled GenericSerialBus data buffer:
- * typedef struct {
- * BYTEStatus; // Byte 0 of the data buffer
- * BYTELength; // Byte 1 of the data buffer
- * BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer,
- * }
- */
+ /*
+ * Add additional 2 bytes for the GenericSerialBus data buffer:
+ *
+ * Status; (Byte 0 of the data buffer)
+ * Length; (Byte 1 of the data buffer)
+ * Data[x-1]; (Bytes 2-x of the arbitrary length data buffer)
+ */
Length += 2;
Function = ACPI_READ | (AccessorType << 16);
}
@@ -397,14 +395,13 @@ AcpiExWriteDataToField (
Length = AcpiExGetSerialAccessLength (AccessorType,
ObjDesc->Field.AccessLength);
- /*
- * Add additional 2 bytes for modeled GenericSerialBus data buffer:
- * typedef struct {
- * BYTEStatus; // Byte 0 of the data buffer
- * BYTELength; // Byte 1 of the data buffer
- * BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer,
- * }
- */
+ /*
+ * Add additional 2 bytes for the GenericSerialBus data buffer:
+ *
+ * Status; (Byte 0 of the data buffer)
+ * Length; (Byte 1 of the data buffer)
+ * Data[x-1]; (Bytes 2-x of the arbitrary length data buffer)
+ */
Length += 2;
Function = ACPI_WRITE | (AccessorType << 16);
}