software/spu32-system/bios/bios.c
// function to handle stream read requests
function to handle stream read requests
function to handle stream read requests
void _bios_read_stream(struct request_readwrite_stream_t* request) {
    switch(request->device) {
        case DEVICE_STDIN:
        case DEVICE_UART: {
            bios_uart_read(request);
            request->result = RESULT_OK;
            return;
        }
        default: {
            request->result = RESULT_ERR;
        }
    }
}
void _bios_read_stream ( struct request_readwrite_stream_t * request ) { switch ( request -> device ) { case DEVICE_STDIN : case DEVICE_UART : { bios_uart_read ( request ) ; request -> result = RESULT_OK ; return ; } default : { request -> result = RESULT_ERR ; } } }
function to handle stream read requests
function to handle stream read requests