aboutsummaryrefslogtreecommitdiff
path: root/include/linux/intel_pidv_acpi.h
blob: fd5e7c9dcf8c7330dbdad6f358ce692e3f5d33fe (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
/*
 * include/linux/intel_pidv_acpi.h
 *
 * Copyright (C) 2013 Intel Corp
 * Author: Vincent Tinelli (vincent.tinelli@intel.com)
 *
 * 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 of the License.
 *
 * 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.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 */

#ifndef _INTEL_PIDV_ACPI_H
#define _INTEL_PIDV_ACPI_H

#include <linux/acpi.h>
#ifdef CONFIG_ACPI
#define ACPI_SIG_PIDV           "PIDV"
#define revmajor		0
#define revminor		1

#define pidv_attr(_name) \
static struct kobj_attribute _name##_attr = {	\
	.attr   = {				\
		.name = __stringify(_name),	\
		.mode = 0440,			\
	},					\
	.show   = _name##_show,			\
}

struct platform_id {
	u8 part_number[32];
	u8 ext_id_1[32];
	u8 ext_id_2[32];
	u8 uuid[16];
	u8 iafwBuildid[32];
	u32 iasvn;
	u32 secsvn;
	u32 pdrsvn;
	u16 iafwrevvalues[4];
	u16 secrevvalues[4];
	u16 pdrrevvalues[4];
};

struct acpi_table_pidv {
	struct acpi_table_header header;
	struct platform_id pidv;
};

#endif
#endif