diff options
Diffstat (limited to 'os_specific/service_layers/oswinxf.c')
-rw-r--r-- | os_specific/service_layers/oswinxf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/os_specific/service_layers/oswinxf.c b/os_specific/service_layers/oswinxf.c index a931c7f22069..8e65e6211d1d 100644 --- a/os_specific/service_layers/oswinxf.c +++ b/os_specific/service_layers/oswinxf.c @@ -1162,6 +1162,8 @@ AcpiOsReadPort ( UINT32 *Value, UINT32 Width) { + ACPI_FUNCTION_NAME (OsReadPort); + switch (Width) { @@ -1178,6 +1180,7 @@ AcpiOsReadPort ( break; default: + ACPI_ERROR ((AE_INFO, "Bad width parameter: %X", Width)); return (AE_BAD_PARAMETER); } @@ -1205,8 +1208,16 @@ AcpiOsWritePort ( UINT32 Value, UINT32 Width) { + ACPI_FUNCTION_NAME (OsWritePort); - return (AE_OK); + + if ((Width == 8) || (Width == 16) || (Width == 32)) + { + return (AE_OK); + } + + ACPI_ERROR ((AE_INFO, "Bad width parameter: %X", Width)); + return (AE_BAD_PARAMETER); } |