summaryrefslogtreecommitdiff
path: root/drivers/sfi/sfi_core.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 17:47:41 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 17:47:41 (GMT)
commit4e455c6782bd6bf6a0135c1e1c9f018ec191979e (patch)
treeb26d342b454b4829344985c968adf16d092dc534 /drivers/sfi/sfi_core.h
parent105a048a4f35f7a74c7cc20b36dd83658b6ec232 (diff)
parentdce80a56268fffd6b5ea57b3f6ba3d027a68f05e (diff)
downloadlinux-fsl-qoriq-4e455c6782bd6bf6a0135c1e1c9f018ec191979e.tar.xz
Merge branch 'sfi-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6
* 'sfi-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6: SFI: add sysfs interface for SFI tables. SFI: add support for v0.81 spec
Diffstat (limited to 'drivers/sfi/sfi_core.h')
-rw-r--r--drivers/sfi/sfi_core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/sfi/sfi_core.h b/drivers/sfi/sfi_core.h
index da82d39..b7cf220 100644
--- a/drivers/sfi/sfi_core.h
+++ b/drivers/sfi/sfi_core.h
@@ -61,6 +61,12 @@ struct sfi_table_key{
char *oem_table_id;
};
+/* sysfs interface */
+struct sfi_table_attr {
+ struct bin_attribute attr;
+ char name[8];
+};
+
#define SFI_ANY_KEY { .sig = NULL, .oem_id = NULL, .oem_table_id = NULL }
extern int __init sfi_acpi_init(void);
@@ -68,3 +74,5 @@ extern struct sfi_table_header *sfi_check_table(u64 paddr,
struct sfi_table_key *key);
struct sfi_table_header *sfi_get_table(struct sfi_table_key *key);
extern void sfi_put_table(struct sfi_table_header *table);
+extern struct sfi_table_attr __init *sfi_sysfs_install_table(u64 pa);
+extern void __init sfi_acpi_sysfs_init(void);