Gary Jennejohn | 16a28ef | 2008-11-06 15:04:23 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 |
| 3 | * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de. |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Gary Jennejohn | 16a28ef | 2008-11-06 15:04:23 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _IO_MUX_H |
| 9 | #define _IO_MUX_H |
| 10 | |
Jean-Christophe PLAGNIOL-VILLARD | 52cb4d4 | 2009-05-16 12:14:54 +0200 | [diff] [blame] | 11 | #include <stdio_dev.h> |
Gary Jennejohn | 16a28ef | 2008-11-06 15:04:23 +0100 | [diff] [blame] | 12 | |
| 13 | /* |
| 14 | * Stuff required to support console multiplexing. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | * Pointers to devices used for each file type. Defined in console.c |
| 19 | * but storage is allocated in iomux.c. |
| 20 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 52cb4d4 | 2009-05-16 12:14:54 +0200 | [diff] [blame] | 21 | extern struct stdio_dev **console_devices[MAX_FILES]; |
Gary Jennejohn | 16a28ef | 2008-11-06 15:04:23 +0100 | [diff] [blame] | 22 | /* |
| 23 | * The count of devices assigned to each FILE. Defined in console.c |
| 24 | * and populated in iomux.c. |
| 25 | */ |
| 26 | extern int cd_count[MAX_FILES]; |
| 27 | |
| 28 | int iomux_doenv(const int, const char *); |
| 29 | void iomux_printdevs(const int); |
Mike Frysinger | d7be305 | 2010-10-20 07:18:03 -0400 | [diff] [blame] | 30 | struct stdio_dev *search_device(int, const char *); |
Gary Jennejohn | 16a28ef | 2008-11-06 15:04:23 +0100 | [diff] [blame] | 31 | |
| 32 | #endif /* _IO_MUX_H */ |