<commit_before>/*
 * Copyright 2014, NICTA
 *
 * This software may be distributed and modified according to the terms of
 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
 * See "LICENSE_BSD2.txt" for details.
 *
 * @TAG(NICTA_BSD)
 */

#ifndef __MACHSUPPORT_MACH_SERIAL_H__
#define __MACHSUPPORT_MACH_SERIAL_H__

#include <platsupport/mux.h>
#include <platsupport/clock.h>

/* INTP, INTSP, INTM */
#define INT_MODEM BIT(3)
#define INT_TX    BIT(2)
#define INT_ERR   BIT(1)
#define INT_RX    BIT(0)
#define EXYNOS_UART_RX_IRQ INT_RX
#define EXYNOS_UART_TX_IRQ INT_TX

/*
 * Initialiase an exynos serial device<commit_msg>Fix Odroid build error.<commit_after>/*
 * Copyright 2014, NICTA
 *
 * This software may be distributed and modified according to the terms of
 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
 * See "LICENSE_BSD2.txt" for details.
 *
 * @TAG(NICTA_BSD)
 */

#ifndef __MACHSUPPORT_MACH_SERIAL_H__
#define __MACHSUPPORT_MACH_SERIAL_H__

#include <platsupport/chardev.h>
#include <platsupport/mux.h>
#include <platsupport/clock.h>

/* INTP, INTSP, INTM */
#define INT_MODEM BIT(3)
#define INT_TX    BIT(2)
#define INT_ERR   BIT(1)
#define INT_RX    BIT(0)
#define EXYNOS_UART_RX_IRQ INT_RX
#define EXYNOS_UART_TX_IRQ INT_TX

/*
 * Initialiase an exynos serial device
{'fraction_non_alphanumeric': 0.09596344249809596, 'fraction_numerical': 0.015232292460015232, 'mean_word_length': 4.688311688311688, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1085939', 'n_tokens_mistral': 512, 'n_tokens_neox': 496, 'n_words': 134}