Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 4343
Line 45... Line 45...
45
#define i8042_DATA      0x60
45
#define i8042_DATA      0x60
46
#define i8042_STATUS        0x64
46
#define i8042_STATUS        0x64
47
 
47
 
48
static inline void i8042_data_write(uint8_t data)
48
static inline void i8042_data_write(uint8_t data)
49
{
49
{
50
    outb(i8042_DATA, data);
50
    pio_write_8(i8042_DATA, data);
51
}
51
}
52
 
52
 
53
static inline uint8_t i8042_data_read(void)
53
static inline uint8_t i8042_data_read(void)
54
{
54
{
55
    return inb(i8042_DATA);
55
    return pio_read_8(i8042_DATA);
56
}
56
}
57
 
57
 
58
static inline uint8_t i8042_status_read(void)
58
static inline uint8_t i8042_status_read(void)
59
{
59
{
60
    return inb(i8042_STATUS);
60
    return pio_read_8(i8042_STATUS);
61
}
61
}
62
 
62
 
63
static inline void i8042_command_write(uint8_t command)
63
static inline void i8042_command_write(uint8_t command)
64
{
64
{
65
    outb(i8042_STATUS, command);
65
    pio_write_8(i8042_STATUS, command);
66
}
66
}
67
 
67
 
68
#endif
68
#endif
69
 
69
 
70
/** @}
70
/** @}