xref: /openbmc/qemu/hw/i2c/trace-events (revision 63dc36944383f70f1c7a20f6104966d8560300fa)
1d0fb9657SStefano Garzarella# See docs/devel/tracing.rst for syntax documentation.
208bb9b34SPhilippe Mathieu-Daudé
31e5b1899SPhilippe Mathieu-Daudé# bitbang_i2c.c
41e5b1899SPhilippe Mathieu-Daudébitbang_i2c_state(const char *old_state, const char *new_state) "state %s -> %s"
5c166e592SPhilippe Mathieu-Daudébitbang_i2c_addr(uint8_t addr) "Address 0x%02x"
6c166e592SPhilippe Mathieu-Daudébitbang_i2c_send(uint8_t byte) "TX byte 0x%02x"
7c166e592SPhilippe Mathieu-Daudébitbang_i2c_recv(uint8_t byte) "RX byte 0x%02x"
88ada214aSBALATON Zoltanbitbang_i2c_data(unsigned clk, unsigned dat, unsigned old_out, unsigned new_out) "clk %u dat %u out %u -> %u"
91e5b1899SPhilippe Mathieu-Daudé
10500016e5SMarkus Armbruster# core.c
1108bb9b34SPhilippe Mathieu-Daudé
1208bb9b34SPhilippe Mathieu-Daudéi2c_event(const char *event, uint8_t address) "%s(addr:0x%02x)"
1308bb9b34SPhilippe Mathieu-Daudéi2c_send(uint8_t address, uint8_t data) "send(addr:0x%02x) data:0x%02x"
14a78e9839SKlaus Jenseni2c_send_async(uint8_t address, uint8_t data) "send_async(addr:0x%02x) data:0x%02x"
1508bb9b34SPhilippe Mathieu-Daudéi2c_recv(uint8_t address, uint8_t data) "recv(addr:0x%02x) data:0x%02x"
16a78e9839SKlaus Jenseni2c_ack(void) ""
1766cc84a1SCédric Le Goater
18c6e1b31bSBernhard Beschow# pm_smbus.c
19c6e1b31bSBernhard Beschow
20c6e1b31bSBernhard Beschowsmbus_ioport_readb(uint16_t addr, uint8_t data) "[0x%04" PRIx16 "] -> val=0x%02x"
21c6e1b31bSBernhard Beschowsmbus_ioport_writeb(uint16_t addr, uint8_t data) "[0x%04" PRIx16 "] <- val=0x%02x"
22c6e1b31bSBernhard Beschowsmbus_transaction(uint8_t addr, uint8_t prot) "addr=0x%02x prot=0x%02x"
23c6e1b31bSBernhard Beschow
249be8a82cSStrahinja Jankovic# allwinner_i2c.c
259be8a82cSStrahinja Jankovic
269be8a82cSStrahinja Jankovicallwinner_i2c_read(const char* reg_name, uint64_t offset, uint64_t value) "read %s [0x%" PRIx64 "]: -> 0x%" PRIx64
279be8a82cSStrahinja Jankovicallwinner_i2c_write(const char* reg_name, uint64_t offset, uint64_t value) "write %s [0x%" PRIx64 "]: <- 0x%" PRIx64
289be8a82cSStrahinja Jankovic
2966cc84a1SCédric Le Goater# aspeed_i2c.c
3066cc84a1SCédric Le Goater
3166cc84a1SCédric Le Goateraspeed_i2c_bus_cmd(uint32_t cmd, const char *cmd_flags, uint32_t count, uint32_t intr_status) "handling cmd=0x%x %s count=%d intr=0x%x"
32b03ec4ffSKlaus Jensenaspeed_i2c_bus_raise_interrupt(uint32_t intr_status, const char *s) "handled intr=0x%x %s"
3366cc84a1SCédric Le Goateraspeed_i2c_bus_read(uint32_t busid, uint64_t offset, unsigned size, uint64_t value) "bus[%d]: To 0x%" PRIx64 " of size %u: 0x%" PRIx64
3466cc84a1SCédric Le Goateraspeed_i2c_bus_write(uint32_t busid, uint64_t offset, unsigned size, uint64_t value) "bus[%d]: To 0x%" PRIx64 " of size %u: 0x%" PRIx64
3566cc84a1SCédric Le Goateraspeed_i2c_bus_send(const char *mode, int i, int count, uint8_t byte) "%s send %d/%d 0x%02x"
3666cc84a1SCédric Le Goateraspeed_i2c_bus_recv(const char *mode, int i, int count, uint8_t byte) "%s recv %d/%d 0x%02x"
3794e77879SHao Wu
38*1d97f16eSBernhard Beschow# mpc_i2c.c
39*1d97f16eSBernhard Beschow
40*1d97f16eSBernhard Beschowmpc_i2c_read(uint64_t addr, uint32_t value) "[0x%" PRIx64 "] -> 0x%02" PRIx32
41*1d97f16eSBernhard Beschowmpc_i2c_write(uint64_t addr, uint32_t value) "[0x%" PRIx64 "] <- 0x%02" PRIx32
42*1d97f16eSBernhard Beschow
4394e77879SHao Wu# npcm7xx_smbus.c
4494e77879SHao Wu
4594e77879SHao Wunpcm7xx_smbus_read(const char *id, uint64_t offset, uint64_t value, unsigned size) "%s offset: 0x%04" PRIx64 " value: 0x%02" PRIx64 " size: %u"
4694e77879SHao Wunpcm7xx_smbus_write(const char *id, uint64_t offset, uint64_t value, unsigned size) "%s offset: 0x%04" PRIx64 " value: 0x%02" PRIx64 " size: %u"
4794e77879SHao Wunpcm7xx_smbus_start(const char *id, int success) "%s starting, success: %d"
4894e77879SHao Wunpcm7xx_smbus_send_address(const char *id, uint8_t addr, int recv, int success) "%s sending address: 0x%02x, recv: %d, success: %d"
4994e77879SHao Wunpcm7xx_smbus_send_byte(const char *id, uint8_t value, int success) "%s send byte: 0x%02x, success: %d"
5094e77879SHao Wunpcm7xx_smbus_recv_byte(const char *id, uint8_t value) "%s recv byte: 0x%02x"
5194e77879SHao Wunpcm7xx_smbus_stop(const char *id) "%s stopping"
5294e77879SHao Wunpcm7xx_smbus_nack(const char *id) "%s nacking"
536b6e7570SHao Wunpcm7xx_smbus_recv_fifo(const char *id, uint8_t received, uint8_t expected) "%s recv fifo: received %u, expected %u"
54065177eeSPatrick Venture
55065177eeSPatrick Venture# i2c-mux-pca954x.c
56065177eeSPatrick Venture
57065177eeSPatrick Venturepca954x_write_bytes(uint8_t value) "PCA954X write data: 0x%02x"
58065177eeSPatrick Venturepca954x_read_data(uint8_t value) "PCA954X read data: 0x%02x"
59