kernel/acpi/acpi_osl.cpp
/*
 * Platform and hardware-independent I/O interfaces
 */
Platform and hardware-independent I/O interfaces
Platform and hardware - independent I / O interfaces
ACPI_STATUS AcpiOsReadPort(ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width)
{
  KL_TRC_ENTRY;
  KL_TRC_TRACE(TRC_LVL::EXTRA, "Address", Address, "\n");
  KL_TRC_TRACE(TRC_LVL::EXTRA, "Output address", Value, "\n");
  KL_TRC_TRACE(TRC_LVL::EXTRA, "Width", Width, "\n");
  ASSERT(Value != (UINT32 *)nullptr);
  ASSERT((Width == 8) || (Width == 16) || (Width == 32));
  *Value = proc_read_port(Address, Width);
  KL_TRC_TRACE(TRC_LVL::EXTRA, "Value returned", *Value, "\n");
  KL_TRC_EXIT;
  return AE_OK;
}
ACPI_STATUS AcpiOsReadPort ( ACPI_IO_ADDRESS Address , UINT32 * Value , UINT32 Width ) { KL_TRC_ENTRY ; KL_TRC_TRACE ( TRC_LVL :: EXTRA , " " , Address , " \n " ) ; KL_TRC_TRACE ( TRC_LVL :: EXTRA , " " , Value , " \n " ) ; KL_TRC_TRACE ( TRC_LVL :: EXTRA , " " , Width , " \n " ) ; ASSERT ( Value != ( UINT32 * ) nullptr ) ; ASSERT ( ( Width == 8 ) || ( Width == 16 ) || ( Width == 32 ) ) ; * Value = proc_read_port ( Address , Width ) ; KL_TRC_TRACE ( TRC_LVL :: EXTRA , " " , * Value , " \n " ) ; KL_TRC_EXIT ; return AE_OK ; }
Platform and hardware-independent I/O interfaces
Platform and hardware - independent I / O interfaces