Subversion Repositories HelenOS

Rev

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

Rev 1875 Rev 1896
Line 60... Line 60...
60
bool z8530_belongs_to_kernel = true;
60
bool z8530_belongs_to_kernel = true;
61
 
61
 
62
static void z8530_suspend(chardev_t *);
62
static void z8530_suspend(chardev_t *);
63
static void z8530_resume(chardev_t *);
63
static void z8530_resume(chardev_t *);
64
 
64
 
65
chardev_t kbrd;
-
 
66
static chardev_operations_t ops = {
65
static chardev_operations_t ops = {
67
    .suspend = z8530_suspend,
66
    .suspend = z8530_suspend,
68
    .resume = z8530_resume,
67
    .resume = z8530_resume,
69
    .read = key_read
68
    .read = z8530_key_read
70
};
69
};
71
 
70
 
72
void z8530_wait(void);
71
void z8530_wait(void);
73
 
72
 
74
/** Initialize keyboard and service interrupts using kernel routine */
73
/** Initialize keyboard and service interrupts using kernel routine */
Line 139... Line 138...
139
/* Called from getc(). */
138
/* Called from getc(). */
140
void z8530_suspend(chardev_t *d)
139
void z8530_suspend(chardev_t *d)
141
{
140
{
142
}
141
}
143
 
142
 
144
char key_read(chardev_t *d)
143
char z8530_key_read(chardev_t *d)
145
{
144
{
146
    char ch;   
145
    char ch;   
147
 
146
 
148
    while(!(ch = active_read_buff_read())) {
147
    while(!(ch = active_read_buff_read())) {
149
        uint8_t x;
148
        uint8_t x;