1. 05 Mar, 2014 1 commit
  2. 14 Sep, 2013 1 commit
  3. 13 Sep, 2013 1 commit
  4. 11 Sep, 2013 1 commit
    • Sean Nelson's avatar
      Add an internal DMI decoder · 4c6d3a4b
      Sean Nelson authored
      
      Previously we had to rely on dmidecode to decode the DMI/SMBIOS table.
      This patch integrates a DMI decoder into flashrom. The old behavior of calling
      dmidecode can be brought back by using CONFIG_INTERNAL_DMI=no.
      
      Significant portions of this patch were taken from dmidecode, hence add its
      authors to the copyright notice (dmidecode is also GPL2+). We do a few things
      differently though. First of all we do more bounds checking to prevent accessing
      unmapped memory. We do not support disovery via EFI (yet), but memory
      scanning only. We handle the chassis-type lock bit correctly which dmidecode
      did not for a long while.
      
      The API to the rest of flashrom remains stable, but the output changes slightly.
      To share as much code as possible (which actually is not much), i have added
      dmi_fill methods that get called in dmi_init. They are reponsible to fill the
      dmi_strings array and setting the is_laptop variable. After it is called, dmi_init
      prints all dmi_strings. Previously the strings were printed in the order they were
      discovered, followed by the chassis-type, which is now output earlier (in dmi_fill).
      
      Because DJGPP does not support strnlen a simple implementation was added
      for it.
      
      This is still only available on x86; actually it is not even compiled in for other
      architectures at all anymore.
      
      Corresponding to flashrom svn r1735.
      Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Tested-by: default avatarMaciej Pijanka <maciej.pijanka@gmail.com>
      Tested-by: default avatarIdwer Vollering <vidwer@gmail.com>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      4c6d3a4b
  5. 14 Aug, 2013 2 commits
  6. 25 Jul, 2013 1 commit
  7. 17 Jul, 2013 1 commit
    • Stefan Tauner's avatar
      Uintptr_t-ify map_flash_region functions · 305e0b99
      Stefan Tauner authored
      
      Unsigned long is not the right type for manipulating pointer values.
      Since C99 there are suitable unsigned and signed types available, namely
      uintptr_t and intptr_t respectively.
      
      Use them in functions assigned to programmers' map_flash_region fields and
      their callers where applicable.
      
      This patch also changes the display width of all associated address values in
      physmap.c to 16/8 hex characters depending on the actual size by
      introducing a macro PRIxPTR_WIDTH and exploiting printf's * field width
      specifier.
      
      Corresponding to flashrom svn r1701.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      305e0b99
  8. 13 Jul, 2013 2 commits
  9. 07 Apr, 2013 1 commit
  10. 09 Aug, 2012 1 commit
    • Carl-Daniel Hailfinger's avatar
      Portability fixes and cleanups · 60d9bd26
      Carl-Daniel Hailfinger authored
      
      Move Mac OS X IOKit/DirectHW availability checks in the Makefile from
      compiler check to pciutils check.
      
      Print the compiler error messages for feature detection.
      
      Add DOS libpci in the Makefile includes only if a PCI-based programmer
      was requested.
      
      Restrict mmap usage in ich_descriptors_tool to Unix style systems.
      
      Build ich_descriptors_tool with the correct .exe extension on
      DOS/Windows.
      
      Build ich_descriptors_tool by default on x86. (Patch by Stefan Tauner)
      
      Print the Windows version instead of "unknown machine" on Windows.
      
      Don't #define our own __DARWIN__, use the standard OS X detection
      method.
      
      Update the README.
      
      Add more generated files to svn:ignore
      
      Corresponding to flashrom svn r1567.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      60d9bd26
  11. 20 Jul, 2012 1 commit
  12. 25 Feb, 2012 1 commit
  13. 15 Aug, 2011 1 commit
  14. 28 Jul, 2011 1 commit
  15. 18 Mar, 2011 1 commit
  16. 08 Mar, 2011 1 commit
  17. 24 Jan, 2011 1 commit
  18. 06 Oct, 2010 1 commit
  19. 05 Oct, 2010 1 commit
  20. 30 Sep, 2010 1 commit
  21. 25 Sep, 2010 1 commit
  22. 03 Jul, 2010 1 commit
  23. 02 Jul, 2010 1 commit
  24. 21 Jun, 2010 1 commit
  25. 30 May, 2010 1 commit
  26. 26 May, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Handle the following architectures in generic flashrom code · cceafa2a
      Carl-Daniel Hailfinger authored
      
      - x86/x86_64 (little endian)
      - PowerPC (big endian)
      - MIPS (big+little endian)
      
      No changes to programmer specific code. This means any drivers with MMIO
      access will _not_ suddenly start working on big endian systems, but with
      this patch everything is in place to fix them.
      
      Compilation should work on all architectures listed above for all
      drivers except nic3com and nicrealtek which require PCI Port IO which is
      x86-only for now.
      
      To compile without nic3com and nicrealtek, run
      make distclean
      make CONFIG_NIC3COM=no CONFIG_NICREALTEK=no
      
      Thanks to Misha Manulis for testing early versions of this patch on
      PowerPC (big endian) with the satasii programmer.
      Thanks to Segher Boessenkool for design review and for helping out with
      compiler tricks and pointing out that we need eieio on PowerPC.
      Thanks to Vladimir Serbinenko for compile testing on MIPS (little
      endian) and PowerPC (big endian) and for runtime testing on MIPS (little
      endian).
      Thanks to David Daney for compile testing on MIPS (big endian).
      Thanks to Uwe Hermann for compile and runtime testing on x86_64.
      
      DO NOT RUN flashrom ON NON-X86 AFTER APPLYING THIS PATCH!
      This patch only provides the infrastructure, but does not convert any
      drivers, so flashrom will compile, but it won't do the right thing on
      non-x86 platforms.
      
      Corresponding to flashrom svn r1013.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMisha Manulis <misha@manulis.com>
      Acked-by: default avatarVladimir 'phcoder/φ-coder' Serbinenko <phcoder@gmail.com>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
      cceafa2a
  27. 17 May, 2010 1 commit
  28. 07 May, 2010 1 commit
  29. 25 Apr, 2010 1 commit
    • Rudolf Marek's avatar
      Fix the DOS port · 837d8107
      Rudolf Marek authored
      
      Now the DS selector limit is set to 4GB and all mmio accesses goes
      through DS, the 1:1 mapping is fixed so the _DS base is taken onto
      account. Plus is that the hwaccess.c needs no change and memcpy etc can
      be used on mmaped space.
      
      Corresponding to flashrom svn r995.
      
      Signed-off-by: Rudolf Marek <r.marek@assembler.cz> 
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      837d8107
  30. 16 Mar, 2010 1 commit
  31. 02 Feb, 2010 1 commit
  32. 04 Sep, 2009 1 commit
  33. 19 Aug, 2009 1 commit
  34. 12 Aug, 2009 1 commit
  35. 23 Jun, 2009 1 commit
  36. 17 May, 2009 1 commit
    • Uwe Hermann's avatar
      Various smaller flashrom improvements · eaefb48e
      Uwe Hermann authored
      
       - Document new 'satasii' programmer in -L output and manpage.
      
       - Drop PCI_IO_BASE_ADDRESS, pci.h has such #defines already.
      
       - Beautify flashrom output and make it more consistent.
       
       - Same for the 'make' output (reordered some $CC parameters).
         Build-tested on i386, shouldn't break any builds, I think.
      
       - Some variable renaming and other cosmetic fixes.
      
      Corresponding to flashrom svn r529.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      eaefb48e
  37. 11 May, 2009 1 commit
  38. 15 Apr, 2009 1 commit