diff options
Diffstat (limited to 'arch/linux/ppc')
53 files changed, 406 insertions, 0 deletions
| diff --git a/arch/linux/ppc/.svn/README.txt b/arch/linux/ppc/.svn/README.txt new file mode 100644 index 00000000..271a8ce9 --- /dev/null +++ b/arch/linux/ppc/.svn/README.txt @@ -0,0 +1,2 @@ +This is a Subversion working copy administrative directory. +Visit http://subversion.tigris.org/ for more information. diff --git a/arch/linux/ppc/.svn/empty-file b/arch/linux/ppc/.svn/empty-file new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/arch/linux/ppc/.svn/empty-file diff --git a/arch/linux/ppc/.svn/entries b/arch/linux/ppc/.svn/entries new file mode 100644 index 00000000..15f4d581 --- /dev/null +++ b/arch/linux/ppc/.svn/entries @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="utf-8"?> +<wc-entries +   xmlns="svn:"> +<entry +   committed-rev="4" +   name="" +   committed-date="2006-01-31T23:35:06.244169Z" +   url="svn+ssh://lafp@svn.berlios.de/svnroot/repos/hardinfo/trunk/hardinfo2/arch/linux/ppc" +   last-author="lafp" +   kind="dir" +   uuid="03931a0e-0c0b-0410-87e6-c9e79dddb921" +   repos="svn+ssh://lafp@svn.berlios.de/svnroot/repos/hardinfo" +   revision="9"/> +<entry +   committed-rev="4" +   name="usb.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="0ed17ec7082ecf81bc512f4d2add7bec" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:19.000000Z"/> +<entry +   committed-rev="4" +   name="sensors.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="ba83966be8f142e8f9fbed44bfc77b7a" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:19.000000Z"/> +<entry +   committed-rev="4" +   name="inputdevices.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="1307b7aff245fa7fba84aa91f08d27fc" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="uptime.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="760f1adef4fbcec7d74200abc3a4f6eb" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="storage.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="602ef4aa9053cd983170660f53334cef" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="modules.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="45dfbaaabb31981ac06e021773429228" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="memory.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="765f1eed8d98b9bbb06c4c034ce9fa32" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="pci.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="cab1a2936974aed489c107f3643b3484" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:19.000000Z"/> +<entry +   committed-rev="4" +   name="loadavg.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="1c83a008e883018ff1092781358ec2da" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="processor.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="dbc927e55d8803ea8a133a2b837dac06" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="alsa.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="dc249687377b2de88793ee09bf54f1f1" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="os.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="048c3f4b338d765be4f10b5067d8b50e" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="samba.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="b541109072721d735717a33724ce9127" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="filesystem.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="7f23b37be4cf5009414843bfe5c4e450" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="4" +   name="net.h" +   text-time="2006-05-20T14:29:20.000000Z" +   committed-date="2006-01-31T23:35:06.244169Z" +   checksum="22e5b201692010dee02e9562ce6cba1b" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-20T14:29:20.000000Z"/> +<entry +   committed-rev="13" +   name="nfs.h" +   text-time="2006-05-22T12:07:23.000000Z" +   committed-date="2006-05-22T12:11:05.185078Z" +   checksum="382976a6eab28131079a346dd16edcd7" +   last-author="lafp" +   kind="file" +   prop-time="2006-05-22T12:07:36.000000Z" +   revision="13"/> +</wc-entries> diff --git a/arch/linux/ppc/.svn/format b/arch/linux/ppc/.svn/format new file mode 100644 index 00000000..b8626c4c --- /dev/null +++ b/arch/linux/ppc/.svn/format @@ -0,0 +1 @@ +4 diff --git a/arch/linux/ppc/.svn/prop-base/alsa.h.svn-base b/arch/linux/ppc/.svn/prop-base/alsa.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/alsa.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/filesystem.h.svn-base b/arch/linux/ppc/.svn/prop-base/filesystem.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/filesystem.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/inputdevices.h.svn-base b/arch/linux/ppc/.svn/prop-base/inputdevices.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/inputdevices.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/loadavg.h.svn-base b/arch/linux/ppc/.svn/prop-base/loadavg.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/loadavg.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/memory.h.svn-base b/arch/linux/ppc/.svn/prop-base/memory.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/memory.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/modules.h.svn-base b/arch/linux/ppc/.svn/prop-base/modules.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/modules.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/net.h.svn-base b/arch/linux/ppc/.svn/prop-base/net.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/net.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/nfs.h.svn-base b/arch/linux/ppc/.svn/prop-base/nfs.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/nfs.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/os.h.svn-base b/arch/linux/ppc/.svn/prop-base/os.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/os.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/pci.h.svn-base b/arch/linux/ppc/.svn/prop-base/pci.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/pci.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/processor.h.svn-base b/arch/linux/ppc/.svn/prop-base/processor.h.svn-base new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/processor.h.svn-base diff --git a/arch/linux/ppc/.svn/prop-base/samba.h.svn-base b/arch/linux/ppc/.svn/prop-base/samba.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/samba.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/sensors.h.svn-base b/arch/linux/ppc/.svn/prop-base/sensors.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/sensors.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/storage.h.svn-base b/arch/linux/ppc/.svn/prop-base/storage.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/storage.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/uptime.h.svn-base b/arch/linux/ppc/.svn/prop-base/uptime.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/uptime.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/prop-base/usb.h.svn-base b/arch/linux/ppc/.svn/prop-base/usb.h.svn-base new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/prop-base/usb.h.svn-base @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/alsa.h.svn-work b/arch/linux/ppc/.svn/props/alsa.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/alsa.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/filesystem.h.svn-work b/arch/linux/ppc/.svn/props/filesystem.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/filesystem.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/inputdevices.h.svn-work b/arch/linux/ppc/.svn/props/inputdevices.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/inputdevices.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/loadavg.h.svn-work b/arch/linux/ppc/.svn/props/loadavg.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/loadavg.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/memory.h.svn-work b/arch/linux/ppc/.svn/props/memory.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/memory.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/modules.h.svn-work b/arch/linux/ppc/.svn/props/modules.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/modules.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/net.h.svn-work b/arch/linux/ppc/.svn/props/net.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/net.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/nfs.h.svn-work b/arch/linux/ppc/.svn/props/nfs.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/nfs.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/os.h.svn-work b/arch/linux/ppc/.svn/props/os.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/os.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/pci.h.svn-work b/arch/linux/ppc/.svn/props/pci.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/pci.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/processor.h.svn-work b/arch/linux/ppc/.svn/props/processor.h.svn-work new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/arch/linux/ppc/.svn/props/processor.h.svn-work diff --git a/arch/linux/ppc/.svn/props/samba.h.svn-work b/arch/linux/ppc/.svn/props/samba.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/samba.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/sensors.h.svn-work b/arch/linux/ppc/.svn/props/sensors.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/sensors.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/storage.h.svn-work b/arch/linux/ppc/.svn/props/storage.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/storage.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/uptime.h.svn-work b/arch/linux/ppc/.svn/props/uptime.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/uptime.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/props/usb.h.svn-work b/arch/linux/ppc/.svn/props/usb.h.svn-work new file mode 100644 index 00000000..d2224698 --- /dev/null +++ b/arch/linux/ppc/.svn/props/usb.h.svn-work @@ -0,0 +1,5 @@ +K 11 +svn:special +V 1 +* +END diff --git a/arch/linux/ppc/.svn/text-base/alsa.h.svn-base b/arch/linux/ppc/.svn/text-base/alsa.h.svn-base new file mode 100644 index 00000000..e17b92c3 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/alsa.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/alsa.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/filesystem.h.svn-base b/arch/linux/ppc/.svn/text-base/filesystem.h.svn-base new file mode 100644 index 00000000..0d23c803 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/filesystem.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/filesystem.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/inputdevices.h.svn-base b/arch/linux/ppc/.svn/text-base/inputdevices.h.svn-base new file mode 100644 index 00000000..58695156 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/inputdevices.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/inputdevices.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/loadavg.h.svn-base b/arch/linux/ppc/.svn/text-base/loadavg.h.svn-base new file mode 100644 index 00000000..354f872f --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/loadavg.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/loadavg.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/memory.h.svn-base b/arch/linux/ppc/.svn/text-base/memory.h.svn-base new file mode 100644 index 00000000..2b2ad528 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/memory.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/memory.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/modules.h.svn-base b/arch/linux/ppc/.svn/text-base/modules.h.svn-base new file mode 100644 index 00000000..d80f7d7a --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/modules.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/modules.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/net.h.svn-base b/arch/linux/ppc/.svn/text-base/net.h.svn-base new file mode 100644 index 00000000..2b4ac97a --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/net.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/net.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/nfs.h.svn-base b/arch/linux/ppc/.svn/text-base/nfs.h.svn-base new file mode 100644 index 00000000..c10bd829 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/nfs.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/nfs.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/os.h.svn-base b/arch/linux/ppc/.svn/text-base/os.h.svn-base new file mode 100644 index 00000000..49613b1f --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/os.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/os.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/pci.h.svn-base b/arch/linux/ppc/.svn/text-base/pci.h.svn-base new file mode 100644 index 00000000..2386d2ad --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/pci.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/pci.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/processor.h.svn-base b/arch/linux/ppc/.svn/text-base/processor.h.svn-base new file mode 100644 index 00000000..f4ff5b0e --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/processor.h.svn-base @@ -0,0 +1,78 @@ +/* + *    HardInfo - Displays System Information + *    Copyright (C) 2003-2006 Leandro A. F. Pereira <leandro@linuxmag.com.br> + * + *    This program is free software; you can redistribute it and/or modify + *    it under the terms of the GNU General Public License as published by + *    the Free Software Foundation, version 2. + * + *    This program is distributed in the hope that it will be useful, + *    but WITHOUT ANY WARRANTY; without even the implied warranty of + *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the + *    GNU General Public License for more details. + * + *    You should have received a copy of the GNU General Public License + *    along with this program; if not, write to the Free Software + *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA + */ + +static Processor * +computer_get_processor(void) +{ +    Processor *processor; +    FILE *cpuinfo; +    gchar buffer[128]; + +    cpuinfo = fopen("/proc/cpuinfo", "r"); +    if (!cpuinfo) +	return NULL; + +    processor = g_new0(Processor, 1); +    while (fgets(buffer, 128, cpuinfo)) { +	gchar **tmp = g_strsplit(buffer, ":", 2); + +	if (tmp[0] && tmp[1]) { +	    tmp[0] = g_strstrip(tmp[0]); +	    tmp[1] = g_strstrip(tmp[1]); + +	    get_str("cpu", processor->model_name); +	    get_str("machine", processor->vendor_id); +	    get_int("L2 cache", processor->cache_size); +	    get_float("clock", processor->cpu_mhz); +	    get_float("bogomips", processor->bogomips); + +	} +	g_strfreev(tmp); +    } +     +    gchar *tmp = g_strconcat("PowerPC ", processor->model_name, NULL); +    g_free(processor->model_name); +    processor->model_name = tmp; + +    fclose(cpuinfo); + +    return processor; +} + +static gchar * +processor_get_info(Processor *processor) +{ +	return g_strdup_printf("[Processor]\n" +	                       "Machine=%s\n" +	                       "CPU=%s\n" +	                       "L2 Cache=%.2f\n" +	                       "Frequency=%.2fMHz\n" +	                       "BogoMips=%.2f" +	                       "Byte Order=%s\n", +			       processor->vendor_id, +			       processor->model_name, +			       processor->cache_size, +			       processor->cpu_mhz, +			       processor->bogomips, +#if G_BYTE_ORDER == G_LITTLE_ENDIAN +                               "Little Endian" +#else +                               "Big Endian" +#endif +                              ); +} diff --git a/arch/linux/ppc/.svn/text-base/samba.h.svn-base b/arch/linux/ppc/.svn/text-base/samba.h.svn-base new file mode 100644 index 00000000..246e9ed0 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/samba.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/samba.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/sensors.h.svn-base b/arch/linux/ppc/.svn/text-base/sensors.h.svn-base new file mode 100644 index 00000000..822de7b7 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/sensors.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/sensors.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/storage.h.svn-base b/arch/linux/ppc/.svn/text-base/storage.h.svn-base new file mode 100644 index 00000000..24568f89 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/storage.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/storage.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/uptime.h.svn-base b/arch/linux/ppc/.svn/text-base/uptime.h.svn-base new file mode 100644 index 00000000..25cc41e9 --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/uptime.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/uptime.h
\ No newline at end of file diff --git a/arch/linux/ppc/.svn/text-base/usb.h.svn-base b/arch/linux/ppc/.svn/text-base/usb.h.svn-base new file mode 100644 index 00000000..8aece87f --- /dev/null +++ b/arch/linux/ppc/.svn/text-base/usb.h.svn-base @@ -0,0 +1 @@ +link ../../linux/common/usb.h
\ No newline at end of file diff --git a/arch/linux/ppc/nfs.h b/arch/linux/ppc/nfs.h new file mode 120000 index 00000000..3d1048da --- /dev/null +++ b/arch/linux/ppc/nfs.h @@ -0,0 +1 @@ +../../linux/common/nfs.h
\ No newline at end of file | 
