1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
10 #include <stdio_dev.h>
13 * Stuff required to support console multiplexing.
17 * Pointers to devices used for each file type. Defined in console.c
18 * but storage is allocated in iomux.c.
20 extern struct stdio_dev **console_devices[MAX_FILES];
22 * The count of devices assigned to each FILE. Defined in console.c
23 * and populated in iomux.c.
25 extern int cd_count[MAX_FILES];
27 #define for_each_console_dev(i, file, dev) \
28 for (i = 0, dev = console_devices[file][i]; \
30 i++, dev = console_devices[file][i])
32 int iomux_match_device(struct stdio_dev **, const int, struct stdio_dev *);
33 int iomux_doenv(const int, const char *);
34 int iomux_replace_device(const int, const char *, const char *);
35 void iomux_printdevs(const int);
37 #endif /* _IO_MUX_H */