xref: /openbmc/qemu/hw/sd/trace-events (revision 9af23989)
1# See docs/devel/tracing.txt for syntax documentation.
2
3# hw/sd/core.c
4sdbus_command(const char *bus_name, uint8_t cmd, uint32_t arg, uint8_t crc) "@%s CMD%02d arg 0x%08x crc 0x%02x"
5sdbus_read(const char *bus_name, uint8_t value) "@%s value 0x%02x"
6sdbus_write(const char *bus_name, uint8_t value) "@%s value 0x%02x"
7sdbus_set_voltage(const char *bus_name, uint16_t millivolts) "@%s %u (mV)"
8sdbus_get_dat_lines(const char *bus_name, uint8_t dat_lines) "@%s dat_lines: %u"
9sdbus_get_cmd_line(const char *bus_name, bool cmd_line) "@%s cmd_line: %u"
10
11# hw/sd/sdhci.c
12sdhci_set_inserted(const char *level) "card state changed: %s"
13sdhci_send_command(uint8_t cmd, uint32_t arg) "CMD%02u ARG[0x%08x]"
14sdhci_error(const char *msg) "%s"
15sdhci_response4(uint32_t r0) "RSPREG[31..0]=0x%08x"
16sdhci_response16(uint32_t r3, uint32_t r2, uint32_t r1, uint32_t r0) "RSPREG[127..96]=0x%08x, RSPREG[95..64]=0x%08x, RSPREG[63..32]=0x%08x, RSPREG[31..0]=0x%08x"
17sdhci_end_transfer(uint8_t cmd, uint32_t arg) "Automatically issue CMD%02u 0x%08x"
18sdhci_adma(const char *desc, uint32_t sysad) "%s: admasysaddr=0x%" PRIx32
19sdhci_adma_loop(uint64_t addr, uint16_t length, uint8_t attr) "addr=0x%08" PRIx64 ", len=%d, attr=0x%x"
20sdhci_adma_transfer_completed(void) ""
21sdhci_access(const char *access, unsigned int size, uint64_t offset, const char *dir, uint64_t val, uint64_t val2) "%s%u: addr[0x%04" PRIx64 "] %s 0x%08" PRIx64 " (%" PRIu64 ")"
22sdhci_read_dataport(uint16_t data_count) "all %u bytes of data have been read from input buffer"
23sdhci_write_dataport(uint16_t data_count) "write buffer filled with %u bytes of data"
24sdhci_capareg(const char *desc, uint16_t val) "%s: %u"
25
26# hw/sd/sd.c
27sdcard_normal_command(uint8_t cmd, uint32_t arg, const char *state) "CMD%d arg 0x%08x (state %s)"
28sdcard_app_command(uint8_t acmd, uint32_t arg) "ACMD%d arg 0x%08x"
29sdcard_response(const char *rspdesc, int rsplen) "%s (sz:%d)"
30sdcard_powerup(void) ""
31sdcard_inquiry_cmd41(void) ""
32sdcard_set_enable(bool current_state, bool new_state) "%u -> %u"
33sdcard_reset(void) ""
34sdcard_set_blocklen(uint16_t length) "0x%04x"
35sdcard_inserted(bool readonly) "read_only: %u"
36sdcard_ejected(void) ""
37sdcard_erase(void) ""
38sdcard_lock(void) ""
39sdcard_unlock(void) ""
40sdcard_read_block(uint64_t addr, uint32_t len) "addr 0x%" PRIx64 " size 0x%x"
41sdcard_write_block(uint64_t addr, uint32_t len) "addr 0x%" PRIx64 " size 0x%x"
42sdcard_write_data(uint8_t cmd, uint8_t value) "CMD%02d value 0x%02x"
43sdcard_read_data(uint8_t cmd, int length) "CMD%02d len %d"
44sdcard_set_voltage(uint16_t millivolts) "%u mV"
45
46# hw/sd/milkymist-memcard.c
47milkymist_memcard_memory_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
48milkymist_memcard_memory_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
49
50# hw/sd/pxa2xx_mmci.c
51pxa2xx_mmci_read(uint8_t size, uint32_t addr, uint32_t value) "size %d addr 0x%02x value 0x%08x"
52pxa2xx_mmci_write(uint8_t size, uint32_t addr, uint32_t value) "size %d addr 0x%02x value 0x%08x"
53