Subversion Repositories HelenOS-historic

Rev

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

Rev 1702 Rev 1780
Line 43... Line 43...
43
#define COMMAND_REG 4
43
#define COMMAND_REG 4
44
#define DATA_REG    6
44
#define DATA_REG    6
45
 
45
 
46
#define LAST_REG    DATA_REG
46
#define LAST_REG    DATA_REG
47
 
47
 
48
extern volatile __u8 *kbd_virt_address;
48
extern volatile uint8_t *kbd_virt_address;
49
 
49
 
50
static inline void i8042_data_write(__u8 data)
50
static inline void i8042_data_write(uint8_t data)
51
{
51
{
52
    kbd_virt_address[DATA_REG] = data;
52
    kbd_virt_address[DATA_REG] = data;
53
}
53
}
54
 
54
 
55
static inline __u8 i8042_data_read(void)
55
static inline uint8_t i8042_data_read(void)
56
{
56
{
57
    return kbd_virt_address[DATA_REG];
57
    return kbd_virt_address[DATA_REG];
58
}
58
}
59
 
59
 
60
static inline __u8 i8042_status_read(void)
60
static inline uint8_t i8042_status_read(void)
61
{
61
{
62
    return kbd_virt_address[STATUS_REG];
62
    return kbd_virt_address[STATUS_REG];
63
}
63
}
64
 
64
 
65
static inline void i8042_command_write(__u8 command)
65
static inline void i8042_command_write(uint8_t command)
66
{
66
{
67
    kbd_virt_address[COMMAND_REG] = command;
67
    kbd_virt_address[COMMAND_REG] = command;
68
}
68
}
69
 
69
 
70
extern void kbd_init(void);
70
extern void kbd_init(void);