PRIVATE unsigned pci_inb(u16_t port) {
- u32_t value;
+ unsigned long value;
int s;
if ((s=sys_inb(port, &value)) !=OK)
printf("ACPI: warning, sys_inb failed: %d\n", s);
}
PRIVATE unsigned pci_inw(u16_t port) {
- u32_t value;
+ unsigned long value;
int s;
if ((s=sys_inw(port, &value)) !=OK)
printf("ACPI: warning, sys_inw failed: %d\n", s);
}
PRIVATE unsigned pci_inl(u16_t port) {
- u32_t value;
+ unsigned long value;
int s;
if ((s=sys_inl(port, &value)) !=OK)
printf("ACPI: warning, sys_inl failed: %d\n", s);
const char *Fmt,
va_list Args)
{
- INT32 Count = 0;
- UINT8 Flags;
-
vprintf (Fmt, Args);
printf("\n");
((struct acpi_map_bridge_resp *)m)->err = err;
}
+#if 0
PRIVATE ACPI_STATUS device_get_int(ACPI_HANDLE handle,
char * name,
ACPI_INTEGER * val)
return status;
}
+#endif
PUBLIC void do_get_irq(message *m)
{
continue;
}
ires.bridge = bridge;
- ires,tbl = tbl;
+ ires.tbl = tbl;
status = AcpiWalkResources(src_handle, METHOD_NAME__CRS,
get_irq_resource, &ires);
if (ACPI_FAILURE(status)) {