Subversion Repositories HelenOS

Rev

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

Rev 3960 Rev 3963
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_I8042_H_
35
#ifndef KERN_I8042_H_
36
#define KERN_I8042_H_
36
#define KERN_I8042_H_
37
 
37
 
-
 
38
#include <ddi/irq.h>
38
#include <arch/types.h>
39
#include <arch/types.h>
39
#include <typedefs.h>
40
#include <typedefs.h>
40
 
41
 
41
struct i8042 {
42
struct i8042 {
42
    ioport8_t data;
43
    ioport8_t data;
Line 44... Line 45...
44
    ioport8_t status;
45
    ioport8_t status;
45
} __attribute__ ((packed));
46
} __attribute__ ((packed));
46
typedef struct i8042 i8042_t;
47
typedef struct i8042 i8042_t;
47
 
48
 
48
typedef struct i8042_instance {
49
typedef struct i8042_instance {
-
 
50
    devno_t devno;
-
 
51
    irq_t irq;
49
    i8042_t *i8042;
52
    i8042_t *i8042;
50
} i8042_instance_t;
53
} i8042_instance_t;
51
 
54
 
52
extern void i8042_init(devno_t kbd_devno, inr_t kbd_inr, devno_t mouse_devno, inr_t mouse_inr);
55
extern bool i8042_init(i8042_t *, devno_t, inr_t);
53
 
56
 
54
#endif
57
#endif
55
 
58
 
56
/** @}
59
/** @}
57
 */
60
 */