xref: /rk3399_rockchip-uboot/include/iomux.h (revision d7be3056def73c0ab53b3907f9a70a73253a5ae9)
116a28ef2SGary Jennejohn /*
216a28ef2SGary Jennejohn  * (C) Copyright 2008
316a28ef2SGary Jennejohn  * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
416a28ef2SGary Jennejohn  *
516a28ef2SGary Jennejohn  * See file CREDITS for list of people who contributed to this
616a28ef2SGary Jennejohn  * project.
716a28ef2SGary Jennejohn  *
816a28ef2SGary Jennejohn  * This program is free software; you can redistribute it and/or
916a28ef2SGary Jennejohn  * modify it under the terms of the GNU General Public License as
1016a28ef2SGary Jennejohn  * published by the Free Software Foundation; either version 2 of
1116a28ef2SGary Jennejohn  * the License, or (at your option) any later version.
1216a28ef2SGary Jennejohn  *
1316a28ef2SGary Jennejohn  *This program is distributed in the hope that it will be useful,
1416a28ef2SGary Jennejohn  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1516a28ef2SGary Jennejohn  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1616a28ef2SGary Jennejohn  * GNU General Public License for more details.
1716a28ef2SGary Jennejohn  *
1816a28ef2SGary Jennejohn  * You should have received a copy of the GNU General Public License
1916a28ef2SGary Jennejohn  * along with this program; if not, write to the Free Software
2016a28ef2SGary Jennejohn  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2116a28ef2SGary Jennejohn  * MA 02111-1307 USA
2216a28ef2SGary Jennejohn  */
2316a28ef2SGary Jennejohn 
2416a28ef2SGary Jennejohn #ifndef _IO_MUX_H
2516a28ef2SGary Jennejohn #define _IO_MUX_H
2616a28ef2SGary Jennejohn 
2752cb4d4fSJean-Christophe PLAGNIOL-VILLARD #include <stdio_dev.h>
2816a28ef2SGary Jennejohn 
2916a28ef2SGary Jennejohn /*
3016a28ef2SGary Jennejohn  * Stuff required to support console multiplexing.
3116a28ef2SGary Jennejohn  */
3216a28ef2SGary Jennejohn 
3316a28ef2SGary Jennejohn /*
3416a28ef2SGary Jennejohn  * Pointers to devices used for each file type.  Defined in console.c
3516a28ef2SGary Jennejohn  * but storage is allocated in iomux.c.
3616a28ef2SGary Jennejohn  */
3752cb4d4fSJean-Christophe PLAGNIOL-VILLARD extern struct stdio_dev **console_devices[MAX_FILES];
3816a28ef2SGary Jennejohn /*
3916a28ef2SGary Jennejohn  * The count of devices assigned to each FILE.  Defined in console.c
4016a28ef2SGary Jennejohn  * and populated in iomux.c.
4116a28ef2SGary Jennejohn  */
4216a28ef2SGary Jennejohn extern int cd_count[MAX_FILES];
4316a28ef2SGary Jennejohn 
4416a28ef2SGary Jennejohn int iomux_doenv(const int, const char *);
4516a28ef2SGary Jennejohn void iomux_printdevs(const int);
46*d7be3056SMike Frysinger struct stdio_dev *search_device(int, const char *);
4716a28ef2SGary Jennejohn 
4816a28ef2SGary Jennejohn #endif /* _IO_MUX_H */
49