/* sn_fixup_ionodes() - This routine initializes the HUB data structure for each node in the system. This function is only executed when running with a non-ACPI capable PROM.  */
static void __init sn_fixup_ionodes(void)
/* sn_fixup_ionodes() - This routine initializes the HUB data structure for each node in the system. This function is only executed when running with a non-ACPI capable PROM.  */
static void __init sn_fixup_ionodes(void)
{
	struct hubdev_info *hubdev;
	u64 status;
	u64 nasid;
	int i;
	extern void sn_common_hubdev_init(struct hubdev_info *);
	for (i = 0; i < num_cnodes; i++) {
		hubdev = (struct hubdev_info *)(NODEPDA(i)->pdinfo);
		nasid = cnodeid_to_nasid(i);
		hubdev->max_segment_number = 0xffffffff;
		hubdev->max_pcibus_number = 0xff;
		status = sal_get_hubdev_info(nasid, (u64) __pa(hubdev));
		if (status)
			continue;
		if (hubdev->max_segment_number) {
			max_segment_number = hubdev->max_segment_number;
			max_pcibus_number = hubdev->max_pcibus_number;
		}
		sn_common_hubdev_init(hubdev);
	}
}