96,7 → 96,7 |
#define RR0_RCA (0x1 << 0) |
|
/** z8530's registers. */ |
struct z8530 { |
typedef struct { |
union { |
ioport8_t ctl_b; |
ioport8_t status_b; |
110,20 → 110,16 |
} __attribute__ ((packed)); |
uint8_t pad3; |
ioport8_t data_a; |
} __attribute__ ((packed)); |
typedef struct z8530 z8530_t; |
} __attribute__ ((packed)) z8530_t; |
|
/** Structure representing the z8530 device. */ |
typedef struct { |
devno_t devno; |
irq_t irq; |
z8530_t *z8530; |
chardev_t *devout; |
indev_t kbrdin; |
} z8530_instance_t; |
|
extern bool z8530_init(z8530_t *, devno_t, inr_t, cir_t, void *, chardev_t *); |
extern irq_ownership_t z8530_claim(irq_t *); |
extern void z8530_irq_handler(irq_t *); |
extern indev_t *z8530_init(z8530_t *, inr_t, cir_t, void *); |
|
#endif |
|