1. 01 Jun, 2014 1 commit
  2. 23 Aug, 2013 1 commit
  3. 05 Jan, 2013 1 commit
  4. 04 Jan, 2013 1 commit
    • Stefan Tauner's avatar
      Unify PCI init and let pcidev clean itself up · 5561955b
      Stefan Tauner authored
      
      Previously the internal programmer used its own code to initialize pcilib.
      This patch extracts the common code from the internal programmer and
      pcidev_init() into pcidev_init_common().
      This fixes the non-existent PCI cleanup of the internal programmer and adds
      an additional safety by checking for an already existing PCI context.
      
      We got a nice shutdown function registration infrastructure, but did not use it
      very wisely. Instead we added shutdown functions to a myriad of programmers
      unnecessarily. In this patch we get rid of those that do only call pci_cleanup(pacc)
      by adding a shutdown function the pcidev.c itself that gets registered by
      pcidev_init().
      
      Corresponding to flashrom svn r1642.
      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>
      5561955b
  5. 27 Dec, 2012 2 commits
  6. 20 Jul, 2012 1 commit
  7. 16 Jul, 2012 1 commit
  8. 28 Jul, 2011 1 commit
  9. 12 Jul, 2011 1 commit
  10. 14 Jun, 2011 1 commit
    • David Hendricks's avatar
      Use shutdown callback mechanism to shutdown programmers · 8bb2021d
      David Hendricks authored
      
      This patch attempts to resolve some programmer shutdown ordering issues
      by having the programmer init functions register shutdown callbacks explicitly
      wherever it makes most sense. Before, assumptions were made that could lead to
      the internal programmer's state changing before the external programmer could be
      shut down properly. Now, each programmer cleans up after itself and (hopefully)
      performs each operation in the correct order.
      
      As a side-effect, this patch gives us a better usage model for reverse
      operations such as rpci_* and rmmio_*. In the long-run, this should make
      reversing the initialization process easier to understand, less tedious, and
      less error-prone.
      
      In short, this patch does the following:
      - Registers a shutdown callback during initialization for each programmer.
      - Kills the .shutdown function pointer from programmer_entry struct. Also,
        make most shutdown functions static.
      - Adds a few minor clean-ups and corrections (e.g. missing physunmap() calls).
      
      TODO: Remove forward declaration of serprog_shutdown() (added to simplify diff)
      
      Corresponding to flashrom svn r1338.
      Signed-off-by: default avatarDavid Hendricks <dhendrix@google.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      8bb2021d
  11. 07 Mar, 2011 1 commit
  12. 15 Feb, 2011 1 commit
  13. 10 Nov, 2010 1 commit
  14. 08 Oct, 2010 1 commit
  15. 07 Oct, 2010 1 commit
  16. 06 Oct, 2010 3 commits
  17. 27 Jul, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Split off programmer.h from flash.h · 5b997c3e
      Carl-Daniel Hailfinger authored
      
      Programmer specific functions are of absolutely no interest to any file
      except those dealing with programmer specific actions (special SPI
      commands and the generic core).
      
      The new header structure is as follows (and yes, improvements are
      possible):
      flashchips.h  flash chip IDs
      chipdrivers.h  chip-specific read/write/... functions
      flash.h  common header for all stuff that doesn't fit elsewhere
      hwaccess.h hardware access functions
      programmer.h  programmer specific functions
      coreboot_tables.h  header from coreboot, internal programmer only
      spi.h SPI command definitions
      
      Corresponding to flashrom svn r1112.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      5b997c3e
  18. 08 Jul, 2010 1 commit
  19. 06 Jul, 2010 1 commit
  20. 03 Jul, 2010 1 commit
  21. 07 May, 2010 1 commit
  22. 17 Mar, 2010 1 commit
  23. 24 Feb, 2010 1 commit
  24. 30 Oct, 2009 1 commit
  25. 30 Sep, 2009 1 commit
    • Uwe Hermann's avatar
      Add initial support for flashing some NVIDIA graphics cards · 2bc98f6c
      Uwe Hermann authored
      
      The new option is '-p gfxnvidia', rest of the interface is as usual.
      
      I tested a successful identify and read on a "RIVA TNT2 Model 64/Model 64 Pro"
      card for now, erase and write did NOT work properly so far!
      
      Please do not attempt to write/erase cards yet, unless you can recover!
      
      In addition to the NVIDIA handling code it was required to call
      programmer_shutdown() in a lot more places, otherwise the graphics card
      will be disabled in the init function, but never enabled again as the
      shutdown function is not called.
      The shutdown handling may be changed to use atexit() later.
      
      Corresponding to flashrom svn r737.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarLuc Verhaegen <libv@skynet.be>
      2bc98f6c
  26. 02 Sep, 2009 1 commit
  27. 12 Aug, 2009 1 commit
  28. 09 Aug, 2009 1 commit
  29. 30 Jul, 2009 1 commit
  30. 17 May, 2009 2 commits
  31. 16 May, 2009 2 commits
  32. 15 May, 2009 1 commit