Lines Matching +full:blocking +full:- +full:io
1 // SPDX-License-Identifier: GPL-2.0
3 * console.c: Routines that deal with sending and receiving IO
16 /* Non blocking get character from console input device, returns -1
22 int i = -1; in prom_nbgetchar()
26 i = (*(romvec->pv_nbgetchar))(); in prom_nbgetchar()
31 /* Non blocking put character to console device, returns -1 if
38 int i = -1; in prom_nbputchar()
41 i = (*(romvec->pv_nbputchar))(c); in prom_nbputchar()
46 /* Blocking version of get character routine above. */
51 while((character = prom_nbgetchar()) == -1) ; in prom_getchar()
55 /* Blocking version of put character routine above. */
59 while(prom_nbputchar(c) == -1) ; in prom_putchar()
77 switch(*romvec->pv_stdin) {
87 st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdin);
97 prom_getproperty(prom_root_node, "stdin-path", propb, sizeof(propb));
99 while(*p) p++; p -= 2;
125 switch(*romvec->pv_stdin) {
135 st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdout);
149 prom_getproperty(prom_root_node, "stdout-path", propb, sizeof(propb));
151 while(*p) p++; p -= 2;
160 /* This works on SS-2 (an early OpenFirmware) still. */
161 switch(*romvec->pv_stdin) {