Subversion Repositories HelenOS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4263
Line 31... Line 31...
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#include <console/chardev.h>
35
#include <console/chardev.h>
36
#include <putchar.h>
-
 
37
#include <synch/waitq.h>
36
#include <synch/waitq.h>
38
#include <synch/spinlock.h>
37
#include <synch/spinlock.h>
39
 
38
 
40
/** Initialize input character device.
39
/** Initialize input character device.
41
 *
40
 *
Line 58... Line 57...
58
 *
57
 *
59
 * @param indev Input character device.
58
 * @param indev Input character device.
60
 * @param ch    Character being pushed.
59
 * @param ch    Character being pushed.
61
 *
60
 *
62
 */
61
 */
63
void indev_push_character(indev_t *indev, uint8_t ch)
62
void indev_push_character(indev_t *indev, wchar_t ch)
64
{
63
{
65
    ASSERT(indev);
64
    ASSERT(indev);
66
   
65
   
67
    spinlock_lock(&indev->lock);
66
    spinlock_lock(&indev->lock);
68
    if (indev->counter == INDEV_BUFLEN - 1) {
67
    if (indev->counter == INDEV_BUFLEN - 1) {