summaryrefslogtreecommitdiffstats
path: root/test/dmidecode.Laptop.IBM-Thinkpad-R40
blob: fd78ba09de8add7b02b5cf46db09997a89a9f3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151package resize_fat::directory; # $Id$

use diagnostics;
use strict;

use common;
use resize_fat::dir_entry;
use resize_fat::io;


my $format = "a8 a3 C C C S7 I";
my @fields = (
    'name',
    'extension',
    'attributes',
    'is_upper_case_name',
    'creation_time_low',	#- milliseconds
    'creation_time_high',
    'creation_date',
    'access_date',
    'first_cluster_high',	#- for FAT32
    'time',
    'date',
    'first_cluster',
    'length',
);
my $psizeof_format = psizeof($format);

1;

sub entry_size { $psizeof_format }

#- call `f' for each entry of the directory
#- if f return true, then modification in the entry are taken back
sub traverse($$$) {
    my ($directory, $curr_dir_name, $f) = @_;

    for (my $i = 0;; $i++) {
	my $raw = \substr($directory, $i * $psizeof_format, $psizeof_format);

	#- empty entry means end of directory
	$$raw =~ /^\0*$/ and return $directory;

	my $entry; @$entry{@fields} = unpack $format, $$raw;

	&$f($curr_dir_name, $entry)
	    and	$$raw = pack $format, @$entry{@fields};
    }
    $directory;
}

sub traverse_all($$) {
    my ($fs, $f) = @_;

    my $traverse_all; $traverse_all = sub {
	my ($curr_dir_name, $entry) = @_;

	&$f($curr_dir_name, $entry);

        resize_fat::dir_entry::is_directory($entry)
	    and traverse(resize_fat::io::read_file($fs, resize_fat::dir_entry::get_cluster($entry)), "$curr_dir_name/$entry->{name}", $traverse_all);

	undef; #- no need to write back (cf traverse)
    };

    my $directory = $resize_fat::isFAT32 ?
	resize_fat::io::read_file($fs, $fs->{fat32_root_dir_cluster}) :
	resize_fat::io::read($fs, $fs->{root_dir_offset}, $fs->{root_dir_size});
    traverse($directory, "", $traverse_all);
    undef $traverse_all; #- circular reference is no good for perl's poor GC :(
}


#- function used by construct_dir_tree to translate the `cluster' fields in each
#- directory entry
sub remap($$) {
    my ($_fs, $directory) = @_;
    traverse($directory, "", \&resize_fat::dir_entry::remap);
}
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470
# dmidecode 2.5 (=> Resolution: 1400x1050)
SMBIOS 2.31 present.
53 structures occupying 1832 bytes.
Table at 0x000E0010.
Handle 0x0000
	DMI type 0, 20 bytes.
	BIOS Information
		Vendor: IBM
		Version: 1PET49WW (1.17 )
		Release Date: 10/13/2003
		Address: 0xDC000
		Runtime Size: 144 kB
		ROM Size: 1024 kB
		Characteristics:
			PCI is supported
			PC Card (PCMCIA) is supported
			PNP is supported
			APM is supported
			BIOS is upgradeable
			BIOS shadowing is allowed
			ESCD support is available
			Boot from CD is supported
			Selectable boot is supported
			EDD is supported
			3.5"/720 KB floppy services are supported (int 13h)
			Print screen service is supported (int 5h)
			8042 keyboard services are supported (int 9h)
			Serial services are supported (int 14h)
			Printer services are supported (int 17h)
			CGA/mono video services are supported (int 10h)
			ACPI is supported
			USB legacy is supported
			AGP is supported
			LS-120 boot is supported
			BIOS boot specification is supported
Handle 0x0001
	DMI type 1, 25 bytes.
	System Information
		Manufacturer: IBM
		Product Name: 2722DG1
		Version: Not Available
		Serial Number: KBK8642
		UUID: 7933F501-464F-11CB-9242-9E2D9F5A2DDF
		Wake-up Type: Power Switch
Handle 0x0002
	DMI type 2, 8 bytes.
	Base Board Information
		Manufacturer: IBM
		Product Name: 2722DG1
		Version: Not Available
		Serial Number: 1Z7UH37C724
Handle 0x0003
	DMI type 3, 17 bytes.
	Chassis Information
		Manufacturer: IBM
		Type: Notebook
		Lock: Not Present
		Version: Not Available
		Serial Number: Not Available
		Asset Tag: No Asset Information
		Boot-up State: Unknown
		Power Supply State: Unknown
		Thermal State: Unknown
		Security Status: Unknown
		OEM Information: 0x00000000
Handle 0x0004
	DMI type 126, 17 bytes.
	Inactive
Handle 0x0005
	DMI type 126, 17 bytes.
	Inactive
Handle 0x0006
	DMI type 4, 35 bytes.
	Processor Information
		Socket Designation: None
		Type: Central Processor
		Family: Itanium 2
		Manufacturer: GenuineIntel
		ID: 95 06 00 00 BF F9 E9 A7
		Version: Intel(R) Pentium(R) M processor
		Voltage: 1.5 V
		External Clock: 400 MHz
		Max Speed: 1500 MHz
		Current Speed: 1500 MHz
		Status: Populated, Enabled
		Upgrade: None
		L1 Cache Handle: 0x000A
		L2 Cache Handle: 0x000B
		L3 Cache Handle: Not Provided
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x0007
	DMI type 5, 20 bytes.
	Memory Controller Information
		Error Detecting Method: None
		Error Correcting Capabilities:
			None
		Supported Interleave: One-way Interleave
		Current Interleave: One-way Interleave
		Maximum Memory Module Size: 1024 MB
		Maximum Total Memory Size: 2048 MB
		Supported Speeds:
			Other
		Supported Memory Types:
			DIMM
			SDRAM
		Memory Module Voltage: 2.9 V
		Associated Memory Slots: 2
			0x0008
			0x0009
		Enabled Error Correcting Capabilities:
			None
Handle 0x0008
	DMI type 6, 12 bytes.
	Memory Module Information
		Socket Designation: DIMM Slot 1
		Bank Connections: 0 1
		Current Speed: Unknown
		Type: DIMM SDRAM
		Installed Size: 512 MB (Double-bank Connection)
		Enabled Size: 512 MB (Double-bank Connection)
		Error Status: OK
Handle 0x0009
	DMI type 6, 12 bytes.
	Memory Module Information
		Socket Designation: DIMM Slot 2
		Bank Connections: 2 3
		Current Speed: Unknown
		Type: DIMM SDRAM
		Installed Size: 512 MB (Double-bank Connection)
		Enabled Size: 512 MB (Double-bank Connection)
		Error Status: OK
Handle 0x000A
	DMI type 7, 19 bytes.
	Cache Information
		Socket Designation: Internal L1 Cache
		Configuration: Enabled, Socketed, Level 1
		Operational Mode: Write Back
		Location: Internal
		Installed Size: 32 KB
		Maximum Size: 32 KB
		Supported SRAM Types:
			Synchronous
		Installed SRAM Type: Synchronous
		Speed: Unknown
		Error Correction Type: Unknown
		System Type: Other
		Associativity: 8-way Set-associative
Handle 0x000B
	DMI type 7, 19 bytes.
	Cache Information
		Socket Designation: Internal L2 Cache
		Configuration: Enabled, Socketed, Level 2
		Operational Mode: Write Back
		Location: Internal
		Installed Size: 1024 KB
		Maximum Size: 1024 KB
		Supported SRAM Types:
			Burst
		Installed SRAM Type: Burst
		Speed: Unknown
		Error Correction Type: Multi-bit ECC
		System Type: Unified
		Associativity: 8-way Set-associative
Handle 0x000C
	DMI type 126, 9 bytes.
	Inactive
Handle 0x000D
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Infrared
		External Connector Type: Infrared
		Port Type: Other
Handle 0x000E
	DMI type 126, 9 bytes.
	Inactive
Handle 0x000F
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0010
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0011
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0012
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Line-In Jack
		External Connector Type: Mini Jack (headphones)
		Port Type: Audio Port
Handle 0x0013
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0014
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Microphone Jack
		External Connector Type: Mini Jack (headphones)
		Port Type: Audio Port
Handle 0x0015
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Headphone Jack
		External Connector Type: Mini Jack (headphones)
		Port Type: Audio Port
Handle 0x0016
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: S-Video-Out
		External Connector Type: Other
		Port Type: Video Port
Handle 0x0017
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0018
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Modem
		External Connector Type: RJ-11
		Port Type: Modem Port
Handle 0x0019
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Ethernet
		External Connector Type: RJ-45
		Port Type: Network Port
Handle 0x001A
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: USB 1
		External Connector Type: Access Bus (USB)
		Port Type: USB
Handle 0x001B
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: USB 2
		External Connector Type: Access Bus (USB)
		Port Type: USB
Handle 0x001C
	DMI type 126, 9 bytes.
	Inactive
Handle 0x001D
	DMI type 126, 9 bytes.
	Inactive
Handle 0x001E
	DMI type 126, 9 bytes.
	Inactive
Handle 0x001F
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: IEEE1394
		External Connector Type: IEEE 1394
		Port Type: Firewire (IEEE P1394)
Handle 0x0020
	DMI type 9, 13 bytes.
	System Slot Information
		Designation: CardBus Slot 1
		Type: 32-bit PC Card (PCMCIA)
		Current Usage: Available
		Length: Other
		ID: Adapter 0, Socket 0
		Characteristics:
			5.0 V is provided
			3.3 V is provided
			PC Card-16 is supported
			Cardbus is supported
			Zoom Video is supported
			Modem ring resume is supported
			PME signal is supported
			Hot-plug devices are supported
Handle 0x0021
	DMI type 9, 13 bytes.
	System Slot Information
		Designation: Mini-PCI Slot 1
		Type: 32-bit PCI
		Current Usage: Available
		Length: Other
		ID: 1
		Characteristics:
			5.0 V is provided
			3.3 V is provided
			PME signal is supported
			SMBus signal is supported
Handle 0x0022
	DMI type 126, 13 bytes.
	Inactive
Handle 0x0023
	DMI type 10, 6 bytes.
	On Board Device Information
		Type: Other
		Status: Disabled
		Description: IBM Embedded Security hardware
Handle 0x0024
	DMI type 13, 22 bytes.
	BIOS Language Information
		Installable Languages: 1
			enUS
		Currently Installed Language: enUS
Handle 0x0025
	DMI type 15, 25 bytes.
	System Event Log
		Area Length: 16 bytes
		Header Start Offset: 0x0000
		Header Length: 16 bytes
		Data Start Offset: 0x0010
		Access Method: General-purpose non-volatile data functions
		Access Address: 0x0000
		Status: Valid, Not Full
		Change Token: 0x00000008
		Header Format: Type 1
		Supported Log Type Descriptors: 1
		Descriptor 1: POST error
		Data Format 1: POST results bitmap
Handle 0x0026
	DMI type 16, 15 bytes.
	Physical Memory Array
		Location: System Board Or Motherboard
		Use: System Memory
		Error Correction Type: None
		Maximum Capacity: 1 GB
		Error Information Handle: Not Provided
		Number Of Devices: 2
Handle 0x0027
	DMI type 17, 27 bytes.
	Memory Device
		Array Handle: 0x0026
		Error Information Handle: No Error
		Total Width: 64 bits
		Data Width: 64 bits
		Size: 512 MB
		Form Factor: SODIMM
		Set: None
		Locator: DIMM 1
		Bank Locator: Bank 0/1
		Type: DDR
		Type Detail: Synchronous
		Speed: Unknown
		Manufacturer: Not Specified
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x0028
	DMI type 17, 27 bytes.
	Memory Device
		Array Handle: 0x0026
		Error Information Handle: No Error
		Total Width: 64 bits
		Data Width: 64 bits
		Size: 512 MB
		Form Factor: SODIMM
		Set: None
		Locator: DIMM 2
		Bank Locator: Bank 2/3
		Type: DDR
		Type Detail: Synchronous
		Speed: Unknown
		Manufacturer: Not Specified
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x0029
	DMI type 18, 23 bytes.
	32-bit Memory Error Information
		Type: OK
		Granularity: Unknown
		Operation: Unknown
		Vendor Syndrome: Unknown
		Memory Array Address: Unknown
		Device Address: Unknown
		Resolution: Unknown
Handle 0x002A
	DMI type 19, 15 bytes.
	Memory Array Mapped Address
		Starting Address: 0x00000000000
		Ending Address: 0x0003FFFFFFF
		Range Size: 1 GB
		Physical Array Handle: 0x0026
		Partition Width: 0
Handle 0x002B
	DMI type 20, 19 bytes.
	Memory Device Mapped Address
		Starting Address: 0x00000000000
		Ending Address: 0x0001FFFFFFF
		Range Size: 512 MB
		Physical Device Handle: 0x0027
		Memory Array Mapped Address Handle: 0x002A
		Partition Row Position: 1
Handle 0x002C
	DMI type 20, 19 bytes.
	Memory Device Mapped Address
		Starting Address: 0x00020000000
		Ending Address: 0x0003FFFFFFF
		Range Size: 512 MB
		Physical Device Handle: 0x0028
		Memory Array Mapped Address Handle: 0x002A
		Partition Row Position: 1
Handle 0x002D
	DMI type 21, 7 bytes.
	Built-in Pointing Device
		Type: Track Point
		Interface: PS/2
		Buttons: 3
Handle 0x002E
	DMI type 21, 7 bytes.
	Built-in Pointing Device
		Type: Touch Pad
		Interface: PS/2
		Buttons: 0
Handle 0x002F
	DMI type 24, 5 bytes.
	Hardware Security
		Power-On Password Status: Disabled
		Keyboard Password Status: Disabled
		Administrator Password Status: Enabled
		Front Panel Reset Status: Unknown
Handle 0x0030
	DMI type 32, 11 bytes.
	System Boot Information
		Status: No errors detected
Handle 0x0031
	DMI type 131, 102 bytes.
	OEM-specific Type
		Header and Data:
			83 66 31 00 01 00 00 00 00 01 72 03 40 00 AE 80
			00 02 00 00 00 00 00 2A 00 40 2A 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 16 00 80 16 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00
		Strings:
			IBMCFGDATA
Handle 0x0032
	DMI type 132, 7 bytes.
	OEM-specific Type
		Header and Data:
			84 07 32 00 01 D8 36
Handle 0x0033
	DMI type 133, 5 bytes.
	OEM-specific Type
		Header and Data:
			85 05 33 00 01
		Strings:
			KHOIHGIUCCHHII
Handle 0x0034
	DMI type 127, 4 bytes.
	End Of Table