/* This file is autogenerated by tracetool, do not edit. */

#ifndef TRACE_HW_MDIO_GENERATED_TRACERS_H
#define TRACE_HW_MDIO_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_MDIO_TRANSFER_CLAUSE22_EVENT;
extern TraceEvent _TRACE_MDIO_TRANSFER_CLAUSE45_EVENT;
extern uint16_t _TRACE_MDIO_TRANSFER_CLAUSE22_DSTATE;
extern uint16_t _TRACE_MDIO_TRANSFER_CLAUSE45_DSTATE;
#define TRACE_MDIO_TRANSFER_CLAUSE22_ENABLED 1
#define TRACE_MDIO_TRANSFER_CLAUSE45_ENABLED 1
#include "qemu/log-for-trace.h"
#include "qemu/error-report.h"


#define TRACE_MDIO_TRANSFER_CLAUSE22_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MDIO_TRANSFER_CLAUSE22) || \
    false)

static inline void _nocheck__trace_mdio_transfer_clause22(const char * op, uint8_t phy, uint8_t reg, uint16_t data)
{
    if (trace_event_get_state(TRACE_MDIO_TRANSFER_CLAUSE22) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 2 "../git/hw/mdio/trace-events"
            qemu_log("%d@%zu.%06zu:mdio_transfer_clause22 " "%s, phy: 0x%" PRIx8 ", reg: 0x%" PRIx8 ", data: 0x%" PRIx16 "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , op, phy, reg, data);
#line 34 "trace/trace-hw_mdio.h"
        } else {
#line 2 "../git/hw/mdio/trace-events"
            qemu_log("mdio_transfer_clause22 " "%s, phy: 0x%" PRIx8 ", reg: 0x%" PRIx8 ", data: 0x%" PRIx16 "\n", op, phy, reg, data);
#line 38 "trace/trace-hw_mdio.h"
        }
    }
}

static inline void trace_mdio_transfer_clause22(const char * op, uint8_t phy, uint8_t reg, uint16_t data)
{
    if (true) {
        _nocheck__trace_mdio_transfer_clause22(op, phy, reg, data);
    }
}

#define TRACE_MDIO_TRANSFER_CLAUSE45_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_MDIO_TRANSFER_CLAUSE45) || \
    false)

static inline void _nocheck__trace_mdio_transfer_clause45(const char * op, uint8_t port, uint8_t dev, uint16_t data)
{
    if (trace_event_get_state(TRACE_MDIO_TRANSFER_CLAUSE45) && qemu_loglevel_mask(LOG_TRACE)) {
        if (message_with_timestamp) {
            struct timeval _now;
            gettimeofday(&_now, NULL);
#line 3 "../git/hw/mdio/trace-events"
            qemu_log("%d@%zu.%06zu:mdio_transfer_clause45 " "%s, port: 0x%" PRIx8 ", dev: 0x%" PRIx8 ", data: 0x%" PRIx16 "\n",
                     qemu_get_thread_id(),
                     (size_t)_now.tv_sec, (size_t)_now.tv_usec
                     , op, port, dev, data);
#line 65 "trace/trace-hw_mdio.h"
        } else {
#line 3 "../git/hw/mdio/trace-events"
            qemu_log("mdio_transfer_clause45 " "%s, port: 0x%" PRIx8 ", dev: 0x%" PRIx8 ", data: 0x%" PRIx16 "\n", op, port, dev, data);
#line 69 "trace/trace-hw_mdio.h"
        }
    }
}

static inline void trace_mdio_transfer_clause45(const char * op, uint8_t port, uint8_t dev, uint16_t data)
{
    if (true) {
        _nocheck__trace_mdio_transfer_clause45(op, port, dev, data);
    }
}
#endif /* TRACE_HW_MDIO_GENERATED_TRACERS_H */
