Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Move declarations to proper places.
details: https://anonhg.NetBSD.org/src/rev/f817e7d74d95
branches: trunk
changeset: 368139:f817e7d74d95
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 25 14:39:19 2022 +0000
description:
Move declarations to proper places.
diffstat:
sys/arch/atari/dev/kbd.c | 32 +++++++++++++++++++++++++++-----
sys/arch/atari/dev/kbdvar.h | 30 ++++--------------------------
2 files changed, 31 insertions(+), 31 deletions(-)
diffs (111 lines):
diff -r 2a15f1404219 -r f817e7d74d95 sys/arch/atari/dev/kbd.c
--- a/sys/arch/atari/dev/kbd.c Sat Jun 25 14:27:43 2022 +0000
+++ b/sys/arch/atari/dev/kbd.c Sat Jun 25 14:39:19 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.50 2022/06/25 14:27:43 tsutsui Exp $ */
+/* $NetBSD: kbd.c,v 1.51 2022/06/25 14:39:19 tsutsui Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.50 2022/06/25 14:27:43 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.51 2022/06/25 14:39:19 tsutsui Exp $");
#include "mouse.h"
#include "ite.h"
@@ -70,6 +70,31 @@
#include <atari/dev/wskbdmap_atari.h>
#endif
+/*
+ * The ringbuffer is the interface between the hard and soft interrupt handler.
+ * The hard interrupt runs straight from the MFP interrupt.
+ */
+#define KBD_RING_SIZE 256 /* Sz of input ring buffer, must be power of 2 */
+#define KBD_RING_MASK 255 /* Modulo mask for above */
+
+struct kbd_softc {
+ int k_event_mode; /* if 1, collect events, */
+ /* else pass to ite */
+ struct evvar k_events; /* event queue state */
+ uint8_t k_soft_cs; /* control-reg. copy */
+ uint8_t k_package[20]; /* XXX package being build */
+ uint8_t k_pkg_size; /* Size of the package */
+ uint8_t k_pkg_idx; /* Running pkg assembly index */
+ uint8_t k_pkg_type; /* Type of package */
+ const uint8_t *k_sendp; /* Output pointer */
+ int k_send_cnt; /* Chars left for output */
+#if NWSKBD > 0
+ device_t k_wskbddev; /* pointer to wskbd for sending strokes */
+ int k_pollingmode; /* polling mode on? whatever it is... */
+#endif
+ void *k_sicookie; /* softint(9) cookie */
+};
+
/* WSKBD */
/*
* If NWSKBD>0 we try to attach an wskbd device to us. What follows
@@ -113,9 +138,6 @@
static dev_type_poll(kbdpoll);
static dev_type_kqfilter(kbdkqfilter);
-/* Interrupt handler */
-void kbdintr(int);
-
static void kbdsoft(void *);
static void kbdattach(device_t, device_t, void *);
static int kbdmatch(device_t, cfdata_t, void *);
diff -r 2a15f1404219 -r f817e7d74d95 sys/arch/atari/dev/kbdvar.h
--- a/sys/arch/atari/dev/kbdvar.h Sat Jun 25 14:27:43 2022 +0000
+++ b/sys/arch/atari/dev/kbdvar.h Sat Jun 25 14:39:19 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbdvar.h,v 1.10 2012/10/27 17:17:42 chs Exp $ */
+/* $NetBSD: kbdvar.h,v 1.11 2022/06/25 14:39:19 tsutsui Exp $ */
/*
* Copyright (c) 1996 Leo Weppelman.
@@ -29,31 +29,6 @@
#define _KBDVAR_H
/*
- * The ringbuffer is the interface between the hard and soft interrupt handler.
- * The hard interrupt runs straight from the MFP interrupt.
- */
-#define KBD_RING_SIZE 256 /* Sz of input ring buffer, must be power of 2 */
-#define KBD_RING_MASK 255 /* Modulo mask for above */
-
-struct kbd_softc {
- int k_event_mode; /* if 1, collect events, */
- /* else pass to ite */
- struct evvar k_events; /* event queue state */
- uint8_t k_soft_cs; /* control-reg. copy */
- uint8_t k_package[20]; /* XXX package being build */
- uint8_t k_pkg_size; /* Size of the package */
- uint8_t k_pkg_idx; /* Running pkg assembly index */
- uint8_t k_pkg_type; /* Type of package */
- const uint8_t *k_sendp; /* Output pointer */
- int k_send_cnt; /* Chars left for output */
-#if NWSKBD>0
- device_t k_wskbddev; /* pointer to wskbd for sending strokes */
- int k_pollingmode; /* polling mode on? whatever it isss... */
-#endif
- void *k_sicookie; /* softint(9) cookie */
-};
-
-/*
* Package types
*/
#define KBD_MEM_PKG 0 /* Memory read package */
@@ -73,6 +48,9 @@
int kbdgetcn(void);
void kbdbell(void);
void kbdenable(void);
+
+/* Interrupt handler */
+void kbdintr(int); /* called from locore.s */
#endif /* _KERNEL */
#endif /* _KBDVAR_H */
Home |
Main Index |
Thread Index |
Old Index