summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2007-01-26 19:08:21 -0800
committerPaul Mackerras <paulus@samba.org>2007-02-07 14:03:18 +1100
commit66b44954f8f2129a39d145991c8e635046a71be6 (patch)
tree609b4fde791008196ba8b2e2701ecabe04193b75 /include
parent73d976b33998bca9aa7300e59f5d6c756be38b87 (diff)
downloadlinux-66b44954f8f2129a39d145991c8e635046a71be6.tar.gz
linux-66b44954f8f2129a39d145991c8e635046a71be6.tar.bz2
linux-66b44954f8f2129a39d145991c8e635046a71be6.zip
[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>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/ps3.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-powerpc/ps3.h b/include/asm-powerpc/ps3.h
index 00a4c7d3c6d1..d1ae87df7776 100644
--- a/include/asm-powerpc/ps3.h
+++ b/include/asm-powerpc/ps3.h
@@ -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)