iomux.h 716 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * (C) Copyright 2008
  3. * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _IO_MUX_H
  8. #define _IO_MUX_H
  9. #include <stdio_dev.h>
  10. /*
  11. * Stuff required to support console multiplexing.
  12. */
  13. /*
  14. * Pointers to devices used for each file type. Defined in console.c
  15. * but storage is allocated in iomux.c.
  16. */
  17. extern struct stdio_dev **console_devices[MAX_FILES];
  18. /*
  19. * The count of devices assigned to each FILE. Defined in console.c
  20. * and populated in iomux.c.
  21. */
  22. extern int cd_count[MAX_FILES];
  23. int iomux_doenv(const int, const char *);
  24. void iomux_printdevs(const int);
  25. struct stdio_dev *search_device(int, const char *);
  26. #endif /* _IO_MUX_H */