diff options
author | Patrick Venture <venture@google.com> | 2021-04-12 12:45:20 -0700 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2021-04-15 07:10:06 -0500 |
commit | 513ca82d8982463aca98aa01dcf584e0b4fc0982 (patch) | |
tree | 6653797e4ea6b778f9a10f73926ebc2415a424b4 /qemu-keymap.c | |
parent | b98ec6896ee88f1dcdd7098af25bcb6ee0fc50f0 (diff) |
hw/i2c: add match method for device search
At the start of an i2c transaction, the i2c bus searches its list of
children to identify which devices correspond to the address (or
broadcast). Now the I2CSlave device has a method "match" that
encapsulates the lookup behavior. This allows the behavior to be changed
to support devices, such as i2c muxes.
Tested: A BMC firmware was booted to userspace and i2c devices were
detected.
Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-Id: <20210412194522.664594-3-venture@google.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions