Build fixes for NetBSD.

This commit is contained in:
jmcneill 2009-08-18 17:13:09 +00:00
parent 6d58ca2204
commit d24e908507
1 changed files with 17 additions and 17 deletions

View File

@ -130,32 +130,32 @@
static void
AcpiRsOutString (
char *Title,
char *Value);
const char *Title,
const char *Value);
static void
AcpiRsOutInteger8 (
char *Title,
const char *Title,
UINT8 Value);
static void
AcpiRsOutInteger16 (
char *Title,
const char *Title,
UINT16 Value);
static void
AcpiRsOutInteger32 (
char *Title,
const char *Title,
UINT32 Value);
static void
AcpiRsOutInteger64 (
char *Title,
const char *Title,
UINT64 Value);
static void
AcpiRsOutTitle (
char *Title);
const char *Title);
static void
AcpiRsDumpByteList (
@ -376,7 +376,7 @@ static ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[5] =
static ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[5] =
{
{ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags), "Resource Type", (void *) "Memory Range"},
{ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags), "Resource Type", (const char * const *) "Memory Range"},
{ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.WriteProtect), "Write Protect", AcpiGbl_RwDecode},
{ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Caching), "Caching", AcpiGbl_MemDecode},
{ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.RangeType), "Range Type", AcpiGbl_MtpDecode},
@ -385,7 +385,7 @@ static ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[5] =
static ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[4] =
{
{ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags), "Resource Type", (void *) "I/O Range"},
{ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags), "Resource Type", (const char * const *) "I/O Range"},
{ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.RangeType), "Range Type", AcpiGbl_RngDecode},
{ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.Translation), "Translation", AcpiGbl_TtpDecode},
{ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.TranslationType), "Translation Type", AcpiGbl_TrsDecode}
@ -424,7 +424,7 @@ AcpiRsDumpDescriptor (
{
UINT8 *Target = NULL;
UINT8 *PreviousTarget;
char *Name;
const char *Name;
UINT8 Count;
@ -758,8 +758,8 @@ AcpiRsDumpIrqList (
static void
AcpiRsOutString (
char *Title,
char *Value)
const char *Title,
const char *Value)
{
AcpiOsPrintf ("%27s : %s", Title, Value);
if (!*Value)
@ -771,7 +771,7 @@ AcpiRsOutString (
static void
AcpiRsOutInteger8 (
char *Title,
const char *Title,
UINT8 Value)
{
AcpiOsPrintf ("%27s : %2.2X\n", Title, Value);
@ -779,7 +779,7 @@ AcpiRsOutInteger8 (
static void
AcpiRsOutInteger16 (
char *Title,
const char *Title,
UINT16 Value)
{
AcpiOsPrintf ("%27s : %4.4X\n", Title, Value);
@ -787,7 +787,7 @@ AcpiRsOutInteger16 (
static void
AcpiRsOutInteger32 (
char *Title,
const char *Title,
UINT32 Value)
{
AcpiOsPrintf ("%27s : %8.8X\n", Title, Value);
@ -795,7 +795,7 @@ AcpiRsOutInteger32 (
static void
AcpiRsOutInteger64 (
char *Title,
const char *Title,
UINT64 Value)
{
AcpiOsPrintf ("%27s : %8.8X%8.8X\n", Title,
@ -804,7 +804,7 @@ AcpiRsOutInteger64 (
static void
AcpiRsOutTitle (
char *Title)
const char *Title)
{
AcpiOsPrintf ("%27s : ", Title);
}