blob: e6e1097db5b2b4e3101537262143279d05c3ecea [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Gary Jennejohnc6dc7552008-11-06 15:04:23 +01002/*
3 * (C) Copyright 2008
4 * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
Gary Jennejohnc6dc7552008-11-06 15:04:23 +01005 */
6
7#ifndef _IO_MUX_H
8#define _IO_MUX_H
9
Jean-Christophe PLAGNIOL-VILLARD2a7a0312009-05-16 12:14:54 +020010#include <stdio_dev.h>
Gary Jennejohnc6dc7552008-11-06 15:04:23 +010011
12/*
13 * Stuff required to support console multiplexing.
14 */
15
16/*
17 * Pointers to devices used for each file type. Defined in console.c
18 * but storage is allocated in iomux.c.
19 */
Jean-Christophe PLAGNIOL-VILLARD2a7a0312009-05-16 12:14:54 +020020extern struct stdio_dev **console_devices[MAX_FILES];
Gary Jennejohnc6dc7552008-11-06 15:04:23 +010021/*
22 * The count of devices assigned to each FILE. Defined in console.c
23 * and populated in iomux.c.
24 */
25extern int cd_count[MAX_FILES];
26
27int iomux_doenv(const int, const char *);
28void iomux_printdevs(const int);
Mike Frysingere3d55722010-10-20 07:18:03 -040029struct stdio_dev *search_device(int, const char *);
Gary Jennejohnc6dc7552008-11-06 15:04:23 +010030
31#endif /* _IO_MUX_H */