Subversion Repositories HelenOS

Rev

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

Rev 1841 Rev 1842
Line 34... Line 34...
34
 
34
 
35
#ifndef KERN_sparc64_Z8530_H_
35
#ifndef KERN_sparc64_Z8530_H_
36
#define KERN_sparc64_Z8530_H_
36
#define KERN_sparc64_Z8530_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
-
 
39
#include <arch/drivers/kbd.h>
39
 
40
 
40
#define STATUS_REG  4
41
#define STATUS_REG  4
41
#define COMMAND_REG 4
42
#define COMMAND_REG 4
42
#define DATA_REG    6
43
#define DATA_REG    6
43
 
44
 
44
#define LAST_REG    DATA_REG
45
#define LAST_REG    DATA_REG
45
 
46
 
46
extern volatile uint8_t *kbd_virt_address;
-
 
47
 
-
 
48
static inline void z8530_data_write(uint8_t data)
47
static inline void z8530_data_write(uint8_t data)
49
{
48
{
50
    kbd_virt_address[DATA_REG] = data;
49
    kbd_virt_address[DATA_REG] = data;
51
}
50
}
52
 
51
 
Line 63... Line 62...
63
static inline void z8530_command_write(uint8_t command)
62
static inline void z8530_command_write(uint8_t command)
64
{
63
{
65
    kbd_virt_address[COMMAND_REG] = command;
64
    kbd_virt_address[COMMAND_REG] = command;
66
}
65
}
67
 
66
 
68
extern void kbd_init(void);
-
 
69
 
-
 
70
#endif
67
#endif
71
 
68
 
72
/** @}
69
/** @}
73
 */
70
 */