Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1780
Line 43... Line 43...
43
#include <arch/types.h>
43
#include <arch/types.h>
44
 
44
 
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(__u8 data)
48
static inline void i8042_data_write(uint8_t data)
49
{
49
{
50
    outb(i8042_DATA, data);
50
    outb(i8042_DATA, data);
51
}
51
}
52
 
52
 
53
static inline __u8 i8042_data_read(void)
53
static inline uint8_t i8042_data_read(void)
54
{
54
{
55
    return inb(i8042_DATA);
55
    return inb(i8042_DATA);
56
}
56
}
57
 
57
 
58
static inline __u8 i8042_status_read(void)
58
static inline uint8_t i8042_status_read(void)
59
{
59
{
60
    return inb(i8042_STATUS);
60
    return inb(i8042_STATUS);
61
}
61
}
62
 
62
 
63
static inline void i8042_command_write(__u8 command)
63
static inline void i8042_command_write(uint8_t command)
64
{
64
{
65
    outb(i8042_STATUS, command);
65
    outb(i8042_STATUS, command);
66
}
66
}
67
 
67
 
68
#endif
68
#endif