本文整理汇总了C++中AcpiDmDescriptorName函数的典型用法代码示例。如果您正苦于以下问题:C++ AcpiDmDescriptorName函数的具体用法?C++ AcpiDmDescriptorName怎么用?C++ AcpiDmDescriptorName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AcpiDmDescriptorName函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AcpiDmFixedMemory32Descriptor
void
AcpiDmFixedMemory32Descriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
/* Dump name and read/write flag */
AcpiDmIndent (Level);
AcpiOsPrintf ("Memory32Fixed (%s,\n",
AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]);
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger32 (Resource->FixedMemory32.Address, "Address Base");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength, "Address Length");
/* Insert a descriptor name */
AcpiDmIndent (Level + 1);
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}
示例2: AcpiDmExtendedDescriptor
void
AcpiDmExtendedDescriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
/* Dump resource name and flags */
AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level);
/* Dump the 5 contiguous QWORD values */
AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level);
/* Extra field for this descriptor only */
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific,
"Type-Specific Attributes");
/* Insert a descriptor name */
AcpiDmIndent (Level + 1);
AcpiDmDescriptorName ();
/* Type-specific flags */
AcpiDmAddressFlags (Resource);
AcpiOsPrintf (")\n");
}
示例3: AcpiDmVendorCommon
void
AcpiDmVendorCommon (
char *Name,
UINT8 *ByteData,
UINT32 Length,
UINT32 Level)
{
/* Dump macro name */
AcpiDmIndent (Level);
AcpiOsPrintf ("Vendor%s (", Name);
/* Insert a descriptor name */
AcpiDmDescriptorName ();
AcpiOsPrintf (") // Length = 0x%.2X\n", Length);
/* Dump the vendor bytes */
AcpiDmIndent (Level);
AcpiOsPrintf ("{\n");
AcpiDmDisasmByteList (Level + 1, ByteData, Length);
AcpiDmIndent (Level);
AcpiOsPrintf ("}\n");
}
示例4: AcpiDmQwordDescriptor
void
AcpiDmQwordDescriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
/* Dump resource name and flags */
AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level);
/* Dump the 5 contiguous QWORD values */
AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level);
/* The ResourceSource fields are optional */
AcpiDmIndent (Level + 1);
AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length);
/* Insert a descriptor name */
AcpiDmDescriptorName ();
/* Type-specific flags */
AcpiDmAddressFlags (Resource);
AcpiOsPrintf (")\n");
}
示例5: AcpiDmFixedDmaDescriptor
void
AcpiDmFixedDmaDescriptor (
ACPI_OP_WALK_INFO *Info,
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("FixedDMA (0x%4.4X, 0x%4.4X, ",
Resource->FixedDma.RequestLines,
Resource->FixedDma.Channels);
if (Resource->FixedDma.Width <= 5)
{
AcpiOsPrintf ("%s, ",
AcpiGbl_DtsDecode [Resource->FixedDma.Width]);
}
else
{
AcpiOsPrintf ("%X /* INVALID DMA WIDTH */, ",
Resource->FixedDma.Width);
}
/* Insert a descriptor name */
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}
示例6: AcpiDmIoDescriptor
void
AcpiDmIoDescriptor (
ACPI_OP_WALK_INFO *Info,
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("IO (%s,\n",
AcpiGbl_IoDecode [ACPI_GET_1BIT_FLAG (Resource->Io.Flags)]);
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger16 (Resource->Io.Minimum, "Range Minimum");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger16 (Resource->Io.Maximum, "Range Maximum");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger8 (Resource->Io.Alignment, "Alignment");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger8 (Resource->Io.AddressLength, "Length");
/* Insert a descriptor name */
AcpiDmIndent (Level + 1);
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}
示例7: AcpiDmIrqDescriptor
void
AcpiDmIrqDescriptor (
ACPI_OP_WALK_INFO *Info,
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("%s (",
AcpiGbl_IrqDecode [ACPI_GET_1BIT_FLAG (Length)]);
/* Decode flags byte if present */
if (Length & 1)
{
AcpiOsPrintf ("%s, %s, %s, ",
AcpiGbl_HeDecode [ACPI_GET_1BIT_FLAG (Resource->Irq.Flags)],
AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Irq.Flags, 3)],
AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Irq.Flags, 4)]);
}
/* Insert a descriptor name */
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
AcpiDmIndent (Level + 1);
AcpiDmBitList (Resource->Irq.IrqMask);
}
示例8: AcpiDmInterruptDescriptor
void
AcpiDmInterruptDescriptor (
ACPI_OP_WALK_INFO *Info,
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
UINT32 i;
AcpiDmIndent (Level);
AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ",
AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)],
AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)],
AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)],
AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]);
/*
* The ResourceSource fields are optional and appear after the interrupt
* list. Must compute length based on length of the list. First xrupt
* is included in the struct (reason for -1 below)
*/
AcpiDmResourceSource (Resource,
sizeof (AML_RESOURCE_EXTENDED_IRQ) +
((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32),
Resource->ExtendedIrq.ResourceLength);
/* Insert a descriptor name */
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
/* Dump the interrupt list */
AcpiDmIndent (Level);
AcpiOsPrintf ("{\n");
for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++)
{
AcpiDmIndent (Level + 1);
AcpiOsPrintf ("0x%8.8X,\n",
(UINT32) Resource->ExtendedIrq.Interrupts[i]);
}
AcpiDmIndent (Level);
AcpiOsPrintf ("}\n");
}
示例9: AcpiDmGenericRegisterDescriptor
void
AcpiDmGenericRegisterDescriptor (
ACPI_OP_WALK_INFO *Info,
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("Register (");
AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId);
AcpiOsPrintf ("\n");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address");
/* Optional field for ACPI 3.0 */
AcpiDmIndent (Level + 1);
if (Resource->GenericReg.AccessSize)
{
AcpiOsPrintf ("0x%2.2X, // %s\n",
Resource->GenericReg.AccessSize, "Access Size");
AcpiDmIndent (Level + 1);
}
else
{
AcpiOsPrintf (",");
}
/* DescriptorName was added for ACPI 3.0+ */
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}
示例10: AcpiDmDmaDescriptor
void
AcpiDmDmaDescriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("DMA (%s, %s, %s, ",
AcpiGbl_TypDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Dma.Flags, 5)],
AcpiGbl_BmDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Dma.Flags, 2)],
AcpiGbl_SizDecode [ACPI_GET_2BIT_FLAG (Resource->Dma.Flags)]);
/* Insert a descriptor name */
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
AcpiDmIndent (Level + 1);
AcpiDmBitList (Resource->Dma.DmaChannelMask);
}
示例11: AcpiDmFixedIoDescriptor
void
AcpiDmFixedIoDescriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
AcpiDmIndent (Level);
AcpiOsPrintf ("FixedIO (\n");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger16 (Resource->FixedIo.Address, "Address");
AcpiDmIndent (Level + 1);
AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length");
/* Insert a descriptor name */
AcpiDmIndent (Level + 1);
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}
示例12: AcpiDmMemory32Descriptor
void
AcpiDmMemory32Descriptor (
AML_RESOURCE *Resource,
UINT32 Length,
UINT32 Level)
{
/* Dump name and read/write flag */
AcpiDmIndent (Level);
AcpiOsPrintf ("Memory32 (%s,\n",
AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]);
/* Dump the 4 contiguous DWORD values */
AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level);
/* Insert a descriptor name */
AcpiDmIndent (Level + 1);
AcpiDmDescriptorName ();
AcpiOsPrintf (")\n");
}