2017-07-18 00:40:21 +08:00
|
|
|
"""
|
|
|
|
DRTIO debugging functions.
|
|
|
|
|
|
|
|
Those syscalls are intended for ARTIQ developers only.
|
|
|
|
"""
|
|
|
|
|
2017-01-09 05:06:14 +08:00
|
|
|
from artiq.language.core import syscall
|
|
|
|
from artiq.language.types import TTuple, TInt32, TInt64, TNone
|
|
|
|
|
|
|
|
|
|
|
|
@syscall(flags={"nounwind", "nowrite"})
|
2017-07-18 00:40:21 +08:00
|
|
|
def drtio_get_packet_counts(linkno: TInt32) -> TTuple([TInt32, TInt32]):
|
2017-01-09 05:06:14 +08:00
|
|
|
raise NotImplementedError("syscall not simulated")
|
2017-01-12 03:48:14 +08:00
|
|
|
|
|
|
|
@syscall(flags={"nounwind", "nowrite"})
|
2017-07-18 00:40:21 +08:00
|
|
|
def drtio_get_fifo_space_req_count(linkno: TInt32) -> TInt32:
|
2017-01-12 03:48:14 +08:00
|
|
|
raise NotImplementedError("syscall not simulated")
|