1. 26 May, 2009 3 commits
  2. 25 May, 2009 2 commits
  3. 23 May, 2009 1 commit
  4. 22 May, 2009 2 commits
  5. 21 May, 2009 4 commits
  6. 20 May, 2009 2 commits
  7. 19 May, 2009 2 commits
  8. 18 May, 2009 3 commits
  9. 17 May, 2009 8 commits
  10. 16 May, 2009 7 commits
  11. 15 May, 2009 3 commits
  12. 14 May, 2009 3 commits
    • Uwe Hermann's avatar
      Make the nic3com code check how many supported NICs are found · 530cb2d4
      Uwe Hermann authored
      
      If we find multiple ones, abort with a message to the user, suggesting
      to use the
      
        flashrom -p nic3com=bb:dd.f
      
      syntax. If exactly one supported NIC is found, use it. If none is found,
      abort with an error.
      
      Print the bb:dd.f numbers for all supported NICs we find, so the user
      doesn't have to poke around in lspci output to find the desired bb:dd.f.
      
      Also, drop one pci_read_long() in favor of using the already existing
      base_addr[0] struct field.
      
      Drop the BAR in user messages, it's not really useful for us. Instead,
      explain the BDF syntax a bit more verbosely.
      
      While I'm at it, update the manpage some more to mention and fully
      document the external programmer support we have (or will have soon).
      
      The patch is tested on hardware:
      
      $ flashrom -p nic3com flashrom v0.9.0-r512 Found NIC "3COM 3C905C:
      EtherLink 10/100 PCI (TX)" (10b7:9200, BDF 05:04.0) Found NIC "3COM
      3C905C: EtherLink 10/100 PCI (TX)" (10b7:9200, BDF 05:03.0) Error:
      Multiple supported NICs found. Please use 'flashrom -p nic3com=bb:dd.f'
      to explicitly select the card with the given BDF (PCI bus, device,
      function).
      
      $ flashrom -p nic3com=05:04.0 flashrom v0.9.0-r512 Found NIC "3COM
      3C905C: EtherLink 10/100 PCI (TX)" (10b7:9200, BDF 05:04.0) Calibrating
      delay loop... OK. Found chip "Atmel AT49BV512" (64 KB) at physical
      address 0xffff0000. No operations were specified.
      
      Corresponding to flashrom svn r513.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      530cb2d4
    • Carl-Daniel Hailfinger's avatar
      Fix compilation of nic3com on 64bit · 3b7e75a2
      Carl-Daniel Hailfinger authored
      
      Corresponding to flashrom svn r512.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      3b7e75a2
    • Uwe Hermann's avatar
      Unify usage of iopl-like code by introducing get_io_perms() · a086932c
      Uwe Hermann authored
      
      Factor out portable iopl()-style code into a global function which all
      programmers can use, add missing close() call.
      
      Corresponding to flashrom svn r511.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      a086932c