libducky/include/arch/tty.h.in

Summary

Maintainability
Test Coverage
#ifndef __DUCKY_ARCH_TTY_H__
#define __DUCKY_ARCH_TTY_H__

<%
  import ducky.devices.tty
%>

#define TTY_MMIO_ADDRESS  ${X8(ducky.devices.tty.DEFAULT_MMIO_ADDRESS)}

#define TTY_MMIO_DATA     ${X8(ducky.devices.tty.TTYPorts.DATA)}

#ifndef __DUCKY_PURE_ASM__

#include <hdt.h>

typedef struct __attribute__((packed)) {
  hdt_entry_device_t e_header;
  u32_t              e_mmio_address;
} hdt_entry_device_tty_t;

#endif // __DUCKY_PURE_ASM__

#endif