1. 20 2月, 2011 2 次提交
  2. 12 12月, 2010 1 次提交
  3. 11 12月, 2010 2 次提交
    • A
      e1000: Make little endian · 32600a30
      Alexander Graf 提交于
      The e1000 has compatibility code to handle big endianness which makes it
      mandatory to be recompiled on different targets.
      
      With the generic mmio endianness solution, there's no need for that anymore.
      We just declare all mmio to be little endian and call it a day.
      
      Because we don't depend on the target endianness anymore, we can also
      move the driver over to Makefile.objs.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      32600a30
    • A
      Add endianness as io mem parameter · 2507c12a
      Alexander Graf 提交于
      As stated before, devices can be little, big or native endian. The
      target endianness is not of their concern, so we need to push things
      down a level.
      
      This patch adds a parameter to cpu_register_io_memory that allows a
      device to choose its endianness. For now, all devices simply choose
      native endian, because that's the same behavior as before.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2507c12a
  4. 22 11月, 2010 1 次提交
  5. 17 11月, 2010 1 次提交
  6. 16 11月, 2010 1 次提交
  7. 14 11月, 2010 1 次提交
  8. 21 9月, 2010 1 次提交
  9. 06 9月, 2010 1 次提交
  10. 22 7月, 2010 1 次提交
    • I
      e1000: Fix wrong microwire EEPROM state initialization · 9651ac55
      Izumi Tsutsui 提交于
      This change fixes initialization of e1000's microwire EEPROM internal
      state values so that qemu's e1000 emulation works on NetBSD,
      which doesn't use Intel's em driver but has its own wm driver
      for the Intel i8254x Gigabit Ethernet.
      
      Previously set_eecd() function in e1000.c clears EEPROM internal state
      values on SK rising edge during CS==L, but according to FM93C06 EEPROM
      (which is MicroWire compatible) data sheet, EEPROM internal status
      should be cleared on CS rise edge regardless of SK input:
       "... a rising edge on this (CS) signal is required to reset the internal
        state-machine to accept a new cycle .."
      and nothing should be changed during CS (chip select) is inactive.
      
      Intel's em driver seems to explicitly raise SK output after CS is negated
      in em_standby_eeprom() so many other OSes that use Intel's driver
      don't have this problem even on the previous e1000.c implementation,
      but I can't find any articles that say the MICROWIRE or EEPROM spec
      requires such sequence, and actually hardware works fine without it
      (i.e. real i82540EM has been working on NetBSD).
      
      This fix also changes initialization to clear each state value in
      struct eecd_state individually rather than using memset() against
      the whole structre. The old_eecd member stores the last SK and CS
      signal levels and it should be preserved even after reset of internal
      EEPROM state to detect next signal edges for proper EEPROM emulation.
      Signed-off-by: NIzumi Tsutsui <tsutsui@ceres.dti.ne.jp>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      9651ac55
  11. 19 7月, 2010 2 次提交
  12. 14 6月, 2010 1 次提交
  13. 15 5月, 2010 1 次提交
  14. 09 4月, 2010 1 次提交
  15. 23 12月, 2009 2 次提交
  16. 19 12月, 2009 3 次提交
  17. 04 12月, 2009 2 次提交
  18. 03 12月, 2009 1 次提交
  19. 13 11月, 2009 1 次提交
  20. 09 11月, 2009 3 次提交
  21. 07 11月, 2009 1 次提交
    • G
      v3: don't call reset functions on cpu initialization · c1699988
      Glauber Costa 提交于
      There is absolutely no need to call reset functions when initializing
      devices. Since we are already registering them, calling qemu_system_reset()
      should suffice. Actually, it is what happens when we reboot the machine,
      and using the same process instead of a special case semantics will even
      allow us to find bugs easier.
      
      Furthermore, the fact that we initialize things like the cpu quite early,
      leads to the need to introduce synchronization stuff like qemu_system_cond.
      This patch removes it entirely. All we need to do is call qemu_system_reset()
      only when we're already sure the system is up and running
      
      I tested it with qemu (with and without io-thread) and qemu-kvm, and it
      seems to be doing okay - although qemu-kvm uses a slightly different patch.
      
      [ v2: user mode still needs cpu_reset, so put it in ifdef. ]
      [ v3: leave qemu_system_cond for now. ]
      Signed-off-by: NGlauber Costa <glommer@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      c1699988
  22. 30 10月, 2009 2 次提交
  23. 28 10月, 2009 4 次提交
  24. 05 10月, 2009 1 次提交
  25. 02 10月, 2009 2 次提交
  26. 28 8月, 2009 1 次提交