~jkavalik/cdfs/main

« back to all changes in this revision

Viewing changes to uspace/srv/hid/fb/serial_console.c

merge mainline
update async in cdfs
add READ TOC support in ata_bd, libblock and cdfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 */
39
39
 
40
40
#include <stdio.h>
41
 
#include <ipc/ipc.h>
42
41
#include <async.h>
43
42
#include <ipc/fb.h>
44
43
#include <bool.h>
318
317
        size_t intersize = 0;
319
318
        
320
319
        if (client_connected) {
321
 
                ipc_answer_0(iid, ELIMIT);
 
320
                async_answer_0(iid, ELIMIT);
322
321
                return;
323
322
        }
324
323
        
325
324
        client_connected = 1;
326
 
        ipc_answer_0(iid, EOK);
 
325
        async_answer_0(iid, EOK);
327
326
        
328
327
        /* Clear the terminal, set scrolling region
329
328
           to 0 - height rows. */
347
346
                switch (IPC_GET_IMETHOD(call)) {
348
347
                case IPC_M_PHONE_HUNGUP:
349
348
                        client_connected = 0;
350
 
                        ipc_answer_0(callid, EOK);
 
349
                        async_answer_0(callid, EOK);
351
350
                        
352
351
                        /* Exit thread */
353
352
                        return;
406
405
                        retval = 0;
407
406
                        break;
408
407
                case FB_GET_CSIZE:
409
 
                        ipc_answer_2(callid, EOK, scr_width, scr_height);
 
408
                        async_answer_2(callid, EOK, scr_width, scr_height);
410
409
                        continue;
411
410
                case FB_GET_COLOR_CAP:
412
 
                        ipc_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :
 
411
                        async_answer_1(callid, EOK, color ? FB_CCAP_INDEXED :
413
412
                            FB_CCAP_STYLE);
414
413
                        continue;
415
414
                case FB_CLEAR:
477
476
                default:
478
477
                        retval = ENOENT;
479
478
                }
480
 
                ipc_answer_0(callid, retval);
 
479
                async_answer_0(callid, retval);
481
480
        }
482
481
}
483
482