~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/fw_table.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  *  fw_tables.h - Parsing support for ACPI and ACPI-like tables provided by
  4  *                platform or device firmware
  5  *
  6  *  Copyright (C) 2001 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
  7  *  Copyright (C) 2023 Intel Corp.
  8  */
  9 #ifndef _FW_TABLE_H_
 10 #define _FW_TABLE_H_
 11 
 12 union acpi_subtable_headers;
 13 
 14 typedef int (*acpi_tbl_entry_handler)(union acpi_subtable_headers *header,
 15                                       const unsigned long end);
 16 
 17 typedef int (*acpi_tbl_entry_handler_arg)(union acpi_subtable_headers *header,
 18                                           void *arg, const unsigned long end);
 19 
 20 struct acpi_subtable_proc {
 21         int id;
 22         acpi_tbl_entry_handler handler;
 23         acpi_tbl_entry_handler_arg handler_arg;
 24         void *arg;
 25         int count;
 26 };
 27 
 28 union fw_table_header {
 29         struct acpi_table_header acpi;
 30         struct acpi_table_cdat cdat;
 31 };
 32 
 33 union acpi_subtable_headers {
 34         struct acpi_subtable_header common;
 35         struct acpi_hmat_structure hmat;
 36         struct acpi_prmt_module_header prmt;
 37         struct acpi_cedt_header cedt;
 38         struct acpi_cdat_header cdat;
 39 };
 40 
 41 int acpi_parse_entries_array(char *id, unsigned long table_size,
 42                              union fw_table_header *table_header,
 43                              unsigned long max_length,
 44                              struct acpi_subtable_proc *proc,
 45                              int proc_num, unsigned int max_entries);
 46 
 47 int cdat_table_parse(enum acpi_cdat_type type,
 48                      acpi_tbl_entry_handler_arg handler_arg, void *arg,
 49                      struct acpi_table_cdat *table_header,
 50                      unsigned long length);
 51 
 52 /* CXL is the only non-ACPI consumer of the FIRMWARE_TABLE library */
 53 #if IS_ENABLED(CONFIG_ACPI) && !IS_ENABLED(CONFIG_CXL_BUS)
 54 #define EXPORT_SYMBOL_FWTBL_LIB(x) EXPORT_SYMBOL_ACPI_LIB(x)
 55 #define __init_or_fwtbl_lib __init_or_acpilib
 56 #else
 57 #define EXPORT_SYMBOL_FWTBL_LIB(x) EXPORT_SYMBOL_NS_GPL(x, CXL)
 58 #define __init_or_fwtbl_lib
 59 #endif
 60 
 61 #endif
 62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php