1. 04 Jul, 2013 2 commits
  2. 19 Dec, 2012 1 commit
  3. 05 Mar, 2012 1 commit
    • Avi Kivity's avatar
      ioport: add destructor method to IORange · c5b703ac
      Avi Kivity authored
      Previously all callers had a containing object with a destructor that
      could be used to trigger cleanup of the IORange objects (typically
      just freeing the containing object), but a forthcoming memory API
      change doesn't fit this pattern.  Rather than setting up a new global
      table, extend the ioport system to support destructors.
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
  4. 29 Feb, 2012 1 commit
  5. 11 Oct, 2011 1 commit
  6. 23 Jul, 2011 1 commit
    • Paolo Bonzini's avatar
      report serial devices created with -device in the PIIX4 config space · 6141dbfe
      Paolo Bonzini authored
      Serial and parallel devices created with -device are not reported in
      the PIIX4 configuration space, and are hence not picked up by the DSDT.
      This upsets Windows, which hides them altogether from the guest.
      To avoid this, check at the end of machine initialization whether the
      corresponding I/O ports have been registered.  The new function in
      ioport.c does this; this also requires a tweak to isa_unassign_ioport.
      I left the comment in piix4_pm_initfn since the registers I moved do
      seem to match the 82371AB datasheet.  There are some quirks though.
      We are setting this bit:
          "Device 8 EIO Enable (EIO_EN_DEV8)—R/W. 1=Enable PCI access to the
          device 8 enabled I/O ranges to be claimed by PIIX4 and forwarded
          to the ISA/EIO bus. 0=Disable. The LPT_MON_EN must be set to enable
          the decode."
      but not LPT_MON_EN (bit 18 at 50h):
          LPT Port Enable (LPT_MON_EN)—R/W. 1=Enable accesses to parallel
          port address range (LPT_DEC_SEL) to generate a device 8 (parallel
          port) decode event. 0=Disable.
      We're also setting the LPT_DEC_SEL field (that's the 0x60 written to
      63h) to 11, which means reserved, rather than to 01 (378h-37Fh).
      Likewise we're not setting SA_MON_EN, SB_MON_EN (respectively bit 14
      and bit 16 at address 50h) for the serial ports.  However, we're setting
      COMA_DEC_SEL and COMB_DEC_SEL correctly, unlike the corresponding register
      for the parallel port.
      All these fields are left as they are, since they are probably only
      meant to be used in the DSDT.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
  7. 21 Nov, 2010 1 commit
    • Avi Kivity's avatar
      Type-safe ioport callbacks · acd1c812
      Avi Kivity authored
      The current ioport callbacks are not type-safe, in that they accept an "opaque"
      pointer as an argument whose type must match the argument to the registration
      function; this is not checked by the compiler.
      This patch adds an alternative that is type-safe.  Instead of an opaque
      argument, both registation and the callback use a new IOPort type.  The
      callback then uses container_of() to access its main structures.
      Currently the old and new methods exist side by side; once the old way is gone,
      we can also save a bunch of memory since the new method requires one pointer
      per ioport instead of 6.
      Acked-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
  8. 01 Oct, 2009 2 commits
  9. 20 Sep, 2009 1 commit
  10. 16 Jul, 2009 2 commits
  11. 09 Jul, 2009 2 commits