| 1 | /* SPDX-License-Identifier: BSD-2-Clause */ |
| 2 | /* |
| 3 | * Copyright (C) 2022-2025 Linutronix GmbH |
| 4 | * Author Kurt Kanzenbach <[email protected]> |
| 5 | */ |
| 6 | |
| 7 | #ifndef _TX_TIME_H_ |
| 8 | #define _TX_TIME_H_ |
| 9 | |
| 10 | #include <stddef.h> |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | uint64_t tx_time_get_frame_duration(uint32_t link_speed, size_t frame_length); |
| 14 | |
| 15 | uint64_t tx_time_get_frame_tx_time(uint64_t sequence_counter, uint64_t duration, |
| 16 | size_t num_frames_per_cycle, uint64_t tx_time_offset, |
| 17 | const char *traffic_class); |
| 18 | |
| 19 | #endif /* _TX_TIME_H_ */ |