Rev 2187 | Rev 9499 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2187 | Rev 2216 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | 66 | ||
Line 67... | Line 67... | ||
67 | #define acpi_remap( addr ) MapIoMem((void*)(addr),4096, 0x01) |
67 | #define acpi_remap( addr ) MapIoMem((void*)(addr),4096, 0x01) |
Line 68... | Line 68... | ||
68 | 68 | ||
- | 69 | char* strdup(const char *str); |
|
Line 69... | Line 70... | ||
69 | char* strdup(const char *str); |
70 | int sprintf(char *buf, const char *fmt, ...); |
Line 70... | Line 71... | ||
70 | 71 | ||
Line 332... | Line 333... | ||
332 | info.res = kmalloc(size, GFP_KERNEL); |
333 | info.res = kmalloc(size, GFP_KERNEL); |
333 | if (!info.res) |
334 | if (!info.res) |
334 | goto res_alloc_fail; |
335 | goto res_alloc_fail; |
335 | 336 | ||
Line 336... | Line 337... | ||
336 | vsprintf(buf,"PCI Bus %04x:%02x", domain, busnum); |
337 | sprintf(buf,"PCI Bus %04x:%02x", domain, busnum); |
- | 338 | ||
337 | info.name = strdup(buf); |
339 | info.name = strdup(buf); |
Line 338... | Line 340... | ||
338 | 340 | ||
339 | if (!info.name) |
341 | if (!info.name) |
Line 585... | Line 587... | ||
585 | printf("Can't open /rd/1/drivers/acpi.log\nExit\n"); |
587 | printf("Can't open /rd/1/drivers/acpi.log\nExit\n"); |
586 | return 0; |
588 | return 0; |
587 | } |
589 | } |
588 | 590 | ||
Line 589... | Line -... | ||
589 | status = AcpiReallocateRootTable(); |
- | |
590 | if (ACPI_FAILURE(status)) { |
- | |
591 | dbgprintf("Unable to reallocate ACPI tables\n"); |
- | |
592 | goto err; |
- | |
593 | } |
- | |
594 | - | ||
595 | status = AcpiInitializeSubsystem(); |
591 | status = AcpiInitializeSubsystem(); |
596 | if (status != AE_OK) { |
592 | if (status != AE_OK) { |
597 | dbgprintf("AcpiInitializeSubsystem failed (%s)\n", |
593 | dbgprintf("AcpiInitializeSubsystem failed (%s)\n", |
598 | AcpiFormatException(status)); |
594 | AcpiFormatException(status)); |
599 | goto err; |
595 | goto err; |
600 | } |
596 | } |
Line 601... | Line 597... | ||
601 | 597 | ||
602 | status = AcpiInitializeTables(NULL, 0, TRUE); |
598 | status = AcpiInitializeTables (NULL, 16, FALSE); |
603 | if (status != AE_OK) { |
599 | if (status != AE_OK) { |
604 | dbgprintf("AcpiInitializeTables failed (%s)\n", |
600 | dbgprintf("AcpiInitializeTables failed (%s)\n", |
605 | AcpiFormatException(status)); |
601 | AcpiFormatException(status)); |
606 | goto err; |
602 | goto err; |