[POWERPC] ps3: get firmware version
Add a new routine ps3_get_firmware_version() and use it to output the firmware version to dmesg. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
73d976b339
commit
66b44954f8
@@ -27,6 +27,18 @@
|
||||
#include <linux/device.h>
|
||||
#include <scsi/scsi.h>
|
||||
|
||||
union ps3_firmware_version {
|
||||
u64 raw;
|
||||
struct {
|
||||
u16 pad;
|
||||
u16 major;
|
||||
u16 minor;
|
||||
u16 rev;
|
||||
};
|
||||
};
|
||||
|
||||
int ps3_get_firmware_version(union ps3_firmware_version *v);
|
||||
|
||||
/**
|
||||
* struct ps3_device_id - HV bus device identifier from the system repository
|
||||
* @bus_id: HV bus id, {1..} (zero invalid)
|
||||
|
Reference in New Issue
Block a user