Root/
Source at commit 214 created 13 years 5 months ago. By ifabio, update to chameleon trunk 630, and now the pakage folder is the same as blackosx branch, also add Icon "building" into buildpkg script, and add mint theme info into the English localizable.strings. | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 1998-2006 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_LICENSE_HEADER_START@␊ |
5 | * ␊ |
6 | * The contents of this file constitute Original Code as defined in and␊ |
7 | * are subject to the Apple Public Source License Version 1.1 (the␊ |
8 | * "License"). You may not use this file except in compliance with the␊ |
9 | * License. Please obtain a copy of the License at␊ |
10 | * http://www.apple.com/publicsource and read it before using this file.␊ |
11 | * ␊ |
12 | * This Original Code and all software distributed under the License are␊ |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the␊ |
17 | * License for the specific language governing rights and limitations␊ |
18 | * under the License.␊ |
19 | * ␊ |
20 | * @APPLE_LICENSE_HEADER_END@␊ |
21 | */␊ |
22 | ␊ |
23 | /* This file is a stripped-down version of the one found in the AppleSMBIOS project.␊ |
24 | * Changes:␊ |
25 | * - Don't use pragma pack but instead use GCC's packed attribute␊ |
26 | */␊ |
27 | ␊ |
28 | #ifndef _LIBSAIO_SMBIOS_H␊ |
29 | #define _LIBSAIO_SMBIOS_H␊ |
30 | ␊ |
31 | /*␊ |
32 | * Based on System Management BIOS Reference Specification v2.5␊ |
33 | */␊ |
34 | ␊ |
35 | typedef uint8_t␉␉SMBString;␊ |
36 | typedef uint8_t␉␉SMBByte;␊ |
37 | typedef uint16_t␉SMBWord;␊ |
38 | typedef uint32_t␉SMBDWord;␊ |
39 | typedef uint64_t␉SMBQWord;␊ |
40 | ␊ |
41 | struct DMIHeader {␊ |
42 | ␉SMBByte␉␉␉type;␊ |
43 | ␉SMBByte␉␉␉length;␊ |
44 | ␉SMBWord␉␉␉handle;␊ |
45 | } __attribute__((packed));␊ |
46 | ␊ |
47 | struct DMIEntryPoint {␊ |
48 | ␉SMBByte␉␉␉anchor[5];␊ |
49 | ␉SMBByte␉␉␉checksum;␊ |
50 | ␉SMBWord␉␉␉tableLength;␊ |
51 | ␉SMBDWord␉␉tableAddress;␊ |
52 | ␉SMBWord␉␉␉structureCount;␊ |
53 | ␉SMBByte␉␉␉bcdRevision;␊ |
54 | } __attribute__((packed));␊ |
55 | ␊ |
56 | struct SMBEntryPoint {␊ |
57 | ␉SMBByte␉␉␉anchor[4];␊ |
58 | ␉SMBByte␉␉␉checksum;␊ |
59 | ␉SMBByte␉␉␉entryPointLength;␊ |
60 | ␉SMBByte␉␉␉majorVersion;␊ |
61 | ␉SMBByte␉␉␉minorVersion;␊ |
62 | ␉SMBWord␉␉␉maxStructureSize;␊ |
63 | ␉SMBByte␉␉␉entryPointRevision;␊ |
64 | ␉SMBByte␉␉␉formattedArea[5];␊ |
65 | ␉struct DMIEntryPoint␉dmi;␊ |
66 | } __attribute__((packed));␊ |
67 | ␊ |
68 | struct DMIMemoryControllerInfo {/* 3.3.6 Memory Controller Information (Type 5) */␊ |
69 | ␉struct DMIHeader␉dmiHeader;␊ |
70 | ␉SMBByte␉␉␉errorDetectingMethod;␊ |
71 | ␉SMBByte␉␉␉errorCorrectingCapability;␊ |
72 | ␉SMBByte␉␉␉supportedInterleave;␊ |
73 | ␉SMBByte␉␉␉currentInterleave;␊ |
74 | ␉SMBByte␉␉␉maxMemoryModuleSize;␊ |
75 | ␉SMBWord␉␉␉supportedSpeeds;␊ |
76 | ␉SMBWord␉␉␉supportedMemoryTypes;␊ |
77 | ␉SMBByte␉␉␉memoryModuleVoltage;␊ |
78 | ␉SMBByte␉␉␉numberOfMemorySlots;␊ |
79 | } __attribute__((packed));␊ |
80 | ␊ |
81 | struct DMIMemoryModuleInfo {␉/* 3.3.7 Memory Module Information (Type 6) */␊ |
82 | ␉struct DMIHeader␉dmiHeader;␊ |
83 | ␉SMBByte␉␉␉socketDesignation;␊ |
84 | ␉SMBByte␉␉␉bankConnections;␊ |
85 | ␉SMBByte␉␉␉currentSpeed;␊ |
86 | ␉SMBWord␉␉␉currentMemoryType;␊ |
87 | ␉SMBByte␉␉␉installedSize;␊ |
88 | ␉SMBByte␉␉␉enabledSize;␊ |
89 | ␉SMBByte␉␉␉errorStatus;␊ |
90 | } __attribute__((packed));␊ |
91 | ␊ |
92 | struct DMIPhysicalMemoryArray {␉/* 3.3.17 Physical Memory Array (Type 16) */␊ |
93 | ␉struct DMIHeader␉dmiHeader;␊ |
94 | ␉SMBByte␉␉␉location;␊ |
95 | ␉SMBByte␉␉␉use;␊ |
96 | ␉SMBByte␉␉␉memoryCorrectionError;␊ |
97 | ␉SMBDWord␉␉maximumCapacity;␊ |
98 | ␉SMBWord␉␉␉memoryErrorInformationHandle;␊ |
99 | ␉SMBWord␉␉␉numberOfMemoryDevices;␊ |
100 | } __attribute__((packed));␊ |
101 | ␊ |
102 | struct DMIMemoryDevice {␉/* 3.3.18 Memory Device (Type 17) */␊ |
103 | ␉struct DMIHeader␉dmiHeader;␊ |
104 | ␉SMBWord␉␉␉physicalMemoryArrayHandle;␊ |
105 | ␉SMBWord␉␉␉memoryErrorInformationHandle;␊ |
106 | ␉SMBWord␉␉␉totalWidth;␊ |
107 | ␉SMBWord␉␉␉dataWidth;␊ |
108 | ␉SMBWord␉␉␉size;␊ |
109 | ␉SMBByte␉␉␉formFactor;␊ |
110 | ␉SMBByte␉␉␉deviceSet;␊ |
111 | ␉SMBByte␉␉␉deviceLocator;␊ |
112 | ␉SMBByte␉␉␉bankLocator;␊ |
113 | ␉SMBByte␉␉␉memoryType;␊ |
114 | ␉SMBWord␉␉␉typeDetail;␊ |
115 | SMBWord speed;␊ |
116 | } __attribute__((packed));␊ |
117 | ␊ |
118 | #endif /* !_LIBSAIO_SMBIOS_H */␊ |
119 |