uart_emul.h (4c87aefe8930bd07275b8dd2e96ea5f24d93a52e) uart_emul.h (2b9481465d6ee67ac62c160dbf79c3ec3348c611)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2013 Neel Natu <neel@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 29 unchanged lines hidden (view full) ---

38
39typedef void (*uart_intr_func_t)(void *arg);
40struct uart_softc *uart_init(uart_intr_func_t intr_assert,
41 uart_intr_func_t intr_deassert, void *arg);
42
43int uart_legacy_alloc(int unit, int *ioaddr, int *irq);
44uint8_t uart_read(struct uart_softc *sc, int offset);
45void uart_write(struct uart_softc *sc, int offset, uint8_t value);
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2013 Neel Natu <neel@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 29 unchanged lines hidden (view full) ---

38
39typedef void (*uart_intr_func_t)(void *arg);
40struct uart_softc *uart_init(uart_intr_func_t intr_assert,
41 uart_intr_func_t intr_deassert, void *arg);
42
43int uart_legacy_alloc(int unit, int *ioaddr, int *irq);
44uint8_t uart_read(struct uart_softc *sc, int offset);
45void uart_write(struct uart_softc *sc, int offset, uint8_t value);
46int uart_set_backend(struct uart_softc *sc, const char *opt);
46int uart_set_backend(struct uart_softc *sc, const char *device);
47#endif
47#endif