Subversion Repositories HelenOS

Rev

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

Rev 3963 Rev 4042
Line 35... Line 35...
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 <ddi/irq.h>
39
#include <arch/types.h>
39
#include <arch/types.h>
-
 
40
#include <console/chardev.h>
40
#include <typedefs.h>
41
#include <typedefs.h>
41
 
42
 
42
struct i8042 {
43
struct i8042 {
43
    ioport8_t data;
44
    ioport8_t data;
44
    uint8_t pad[3];
45
    uint8_t pad[3];
Line 48... Line 49...
48
 
49
 
49
typedef struct i8042_instance {
50
typedef struct i8042_instance {
50
    devno_t devno;
51
    devno_t devno;
51
    irq_t irq;
52
    irq_t irq;
52
    i8042_t *i8042;
53
    i8042_t *i8042;
-
 
54
    chardev_t *devout;
53
} i8042_instance_t;
55
} i8042_instance_t;
54
 
56
 
55
extern bool i8042_init(i8042_t *, devno_t, inr_t);
57
extern bool i8042_init(i8042_t *, devno_t, inr_t, chardev_t *);
56
 
58
 
57
#endif
59
#endif
58
 
60
 
59
/** @}
61
/** @}
60
 */
62
 */