parisc: Show machine product number during boot
Ask PDC firmware during boot for the original and current product number as well as the serial number and show it (if available). Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
@@ -568,6 +568,30 @@ int pdc_model_capabilities(unsigned long *capabilities)
|
||||
return retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* pdc_model_platform_info - Returns machine product and serial number.
|
||||
* @orig_prod_num: Return buffer for original product number.
|
||||
* @current_prod_num: Return buffer for current product number.
|
||||
* @serial_no: Return buffer for serial number.
|
||||
*
|
||||
* Returns strings containing the original and current product numbers and the
|
||||
* serial number of the system.
|
||||
*/
|
||||
int pdc_model_platform_info(char *orig_prod_num, char *current_prod_num,
|
||||
char *serial_no)
|
||||
{
|
||||
int retval;
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&pdc_lock, flags);
|
||||
retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_GET_PLATFORM_INFO,
|
||||
__pa(orig_prod_num), __pa(current_prod_num), __pa(serial_no));
|
||||
convert_to_wide(pdc_result);
|
||||
spin_unlock_irqrestore(&pdc_lock, flags);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* pdc_cache_info - Return cache and TLB information.
|
||||
* @cache_info: The return buffer.
|
||||
|
Reference in New Issue
Block a user