2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A /* search the processor based on the physical id */ 2N/A * This PRI/MD has no indentity info. of the FRU and no 2N/A * Find if there is already an existing processor entry 2N/A * Assign procid based on the order found during reading 2N/A "chip[%d] serial is %llx\n",
2N/A /* Count the number of processors and strands */ 2N/A /* check if the physical id exists */ 2N/A /* Alloc processors and strand entries */ 2N/A /* Visit each processor node */ 2N/A "Failed to get the serial number of" 2N/A "Failed to convert the serial " 2N/A "string to serial int of " 2N/A /* Assign physical proc id */ 2N/A /* Get all the strands below this proc */ 2N/A /* Consider only the strand nodes */ 2N/A * To get the fru of this proc, follow the back arc up to 2N/A * find the first node whose fru field is set 2N/A /* test the fru field which must be positive number */ 2N/A /* Found the FRU node, get the fru identity */ 2N/A * Extract from the PRI the processor, strand and their fru identity 2N/A * N1 MD contains cpu nodes while N2 MD contains component nodes.