1. 25 Feb, 2011 3 commits
    • Mike Waychison's avatar
      firmware: Break out system_event_log in dmi-sysfs · 925a1da7
      Mike Waychison authored
      The optional type 15 entry of the DMI table describes a non-volatile
      storage-backed system event log.
      
      In preparation for the next commit which exposes the raw bits of the
      event log to userland, create a new sub-directory within the dmi entry
      called "system_event_log" and expose attribute files that describe the
      event log itself.
      
      Currently, only a single child object is permitted within a
      dmi_sysfs_entry.  We simply point at this child from the dmi_sysfs_entry
      if it exists.
      Signed-off-by: default avatarMike Waychison <mikew@google.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      925a1da7
    • Mike Waychison's avatar
      firmware: Basic dmi-sysfs support · 948af1f0
      Mike Waychison authored
      Introduce a new module "dmi-sysfs" that exports the broken out entries
      of the DMI table through sysfs.
      
      Entries are enumerated via dmi_walk() on module load, and are populated
      as kobjects rooted at /sys/firmware/dmi/entries.
      
      Entries are named "<type>-<instance>", where:
         <type>	: is the type of the entry, and
         <instance>	: is the ordinal count within the DMI table of that
      		  entry type.  This instance is used in lieu the DMI
      		  entry's handle as no assurances are made by the kernel
      		  that handles are unique.
      
      All entries export the following attributes:
         length	: The length of the formatted portion of the entry
         handle	: The handle given to this entry by the firmware
         raw		: The raw bytes of the entire entry, including the
      		  formatted portion, the unformatted (strings) portion,
      		  and the two terminating nul characters.
         type		: The DMI entry type
         instance	: The ordinal instance of this entry given its type.
         position	: The position ordinal of the entry within the table in
      		  its entirety.
      
      Entries in dmi-sysfs are kobject backed members called "struct
      dmi_sysfs_entry" and belong to dmi_kset.  They are threaded through
      entry_list (protected by entry_list_lock) so that we can find them at
      cleanup time.
      Signed-off-by: default avatarMike Waychison <mikew@google.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      948af1f0
    • Mike Waychison's avatar
      firmware: Add DMI entry types to the headers · 93c890db
      Mike Waychison authored
      In preparation for the upcoming commits, introduce the DMI entry types to
      the headers.  These type names are based on those specified in the DMTF
      SMBIOS specification version 2.7.1.
      Signed-off-by: default avatarMike Waychison <mikew@google.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      93c890db
  2. 18 Feb, 2011 5 commits
  3. 04 Feb, 2011 15 commits
  4. 03 Feb, 2011 12 commits
  5. 01 Feb, 2011 1 commit
  6. 31 Jan, 2011 4 commits