#include <pexpert/pexpert.h>
#include <pexpert/ppc/powermac.h>
#include <pexpert/device_tree.h>
+#include <vm/pmap.h>
+
+extern void panic(const char *str, ...);
+
+/* Local declarations */
+void pe_identify_machine(void);
+vm_offset_t get_io_base_addr(void);
/* pe_identify_machine:
*
{
DTEntry cpu, root;
unsigned long *value;
- int size;
+ unsigned int size;
// Clear the gPEClockFrequencyInfo struct
bzero((void *)&gPEClockFrequencyInfo, sizeof(clock_frequency_info_t));
{
DTEntry entryP;
vm_offset_t *address;
- int size;
+ unsigned int size;
if ((DTFindEntry("device_type", "dbdma", &entryP) == kSuccess)
|| (DTFindEntry("device_type", "mac-io", &entryP) == kSuccess))
tappdata[1] = (tappdata[1] + 4095 ) & -4096; /* Make sure this is a whole page */
- *taddr = io_map_spec(tappdata[0], tappdata[1]); /* Map it in and return the address */
+ *taddr = io_map_spec(tappdata[0], tappdata[1], VM_WIMG_IO); /* Map it in and return the address */
tappdata[0] = *taddr; /* Also change property */
return tappdata[1]; /* And the size */
}