1. 12 1月, 2020 1 次提交
  2. 03 6月, 2019 6 次提交
    • P
      libqos: i2c: move address into QI2CDevice · 06599472
      Paolo Bonzini 提交于
      This removes the hardcoded I2C address from the tests.  The address
      is passed via QOSGraphEdgeOptions to i2c_device_create and stored
      in the QI2CDevice.
      
      The i2c_send and i2c_recv functions, along with their wrappers,
      therefore, can be changed to take a QI2CDevice rather than an
      adapter/address pair.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      06599472
    • P
      tests: convert ds1338-test to qtest · 8130dbcb
      Paolo Bonzini 提交于
      This way, ds1338-test will run for every machine that exposes
      an i2c-bus.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      8130dbcb
    • P
      tests: convert OMAP i2c tests to qgraph · 93c3fe2a
      Paolo Bonzini 提交于
      This way, pca9952-test and tmp105-test will run for every machine
      that exposes an i2c-bus.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      93c3fe2a
    • P
      libqos: convert I2C to qgraph · c0825c63
      Paolo Bonzini 提交于
      Create an i2c-bus interface, corresponding to the I2CAdapter struct.
      Wrap IMXI2C and OMAPI2C with a QOSGraphObject, and add the get_driver
      function to retrieve the I2CAdapter.
      
      The conversion is still not complete; for simplicity, i2c_recv and
      i2c_send (along with their wrappers) still take an adapter/address
      pair.  Fixing that would be complicated until the tests are converted
      to qgraph, so it is left for after the conversion.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c0825c63
    • P
      libqos: split I2CAdapter initialization and allocation · 732c919c
      Paolo Bonzini 提交于
      Provide *_init functions that populate an I2CAdapter struct without
      allocating one, and make the existing *_create functions wrap them.
      
      Because in the new setup *_create might return a pointer inside the
      IMXI2C or OMAPI2C struct, create companion *_free functions to go
      back to the outer pointer.
      
      All this is temporary until allocation will be handled entirely by
      qgraph.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      732c919c
    • P
      libqos: move common i2c code to libqos · e8ecb706
      Paolo Bonzini 提交于
      The functions to read/write 8-bit or 16-bit registers are the same
      in tmp105 and pca9552 tests, and in fact they are a special case of
      "read block"/"write block" functionality; read block in turn is used
      in ds1338-test.
      
      Move everything inside libqos-test, removing the duplication.  Account
      for the small differences by adding to tmp105-test.c the "read register
      after writing" behavior that is specific to it.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e8ecb706
  3. 08 6月, 2018 1 次提交
  4. 14 2月, 2018 1 次提交
  5. 23 2月, 2016 1 次提交
  6. 07 9月, 2015 1 次提交
  7. 04 5月, 2013 1 次提交
  8. 17 1月, 2013 1 次提交