summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-20 00:10:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-20 00:10:10 +0000
commit5fdc33247c31f6b6c8458920f964de32c1c98432 (patch)
tree85015ec5df9a1dddffaef861045f731c762faee7 /sys/arch/mac68k
parentf9c36f47833e42d22aa9def47c86f858b0d9da0b (diff)
Remove unused stuff.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/dev/adb.c52
-rw-r--r--sys/arch/mac68k/dev/akbd_machdep.c14
2 files changed, 2 insertions, 64 deletions
diff --git a/sys/arch/mac68k/dev/adb.c b/sys/arch/mac68k/dev/adb.c
index 37d361da486..c7fa5690dd9 100644
--- a/sys/arch/mac68k/dev/adb.c
+++ b/sys/arch/mac68k/dev/adb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adb.c,v 1.19 2006/01/18 23:21:16 miod Exp $ */
+/* $OpenBSD: adb.c,v 1.20 2006/01/20 00:10:09 miod Exp $ */
/* $NetBSD: adb.c,v 1.47 2005/06/16 22:43:36 jmc Exp $ */
/* $NetBSD: adb_direct.c,v 1.51 2005/06/16 22:43:36 jmc Exp $ */
@@ -248,20 +248,13 @@ int adbBusState = ADB_BUS_UNKNOWN;
int adbWaiting = 0; /* waiting for return data from the device */
int adbWriteDelay = 0; /* working on (or waiting to do) a write */
int adbOutQueueHasData = 0; /* something in the queue waiting to go out */
-int adbNextEnd = 0; /* the next incoming bute is the last (II) */
int adbSoftPower = 0; /* machine supports soft power */
int adbWaitingCmd = 0; /* ADB command we are waiting for */
u_char *adbBuffer = (long)0; /* pointer to user data area */
void *adbCompRout = (long)0; /* pointer to the completion routine */
void *adbCompData = (long)0; /* pointer to the completion routine data */
-long adbFakeInts = 0; /* keeps track of fake ADB interrupts for
- * timeouts (II) */
int adbStarting = 1; /* doing adb_reinit so do polling differently */
-int adbSendTalk = 0; /* the intr routine is sending the talk, not
- * the user (II) */
-int adbPolling = 0; /* we are polling for service request */
-int adbPollCmd = 0; /* the last poll command we sent */
u_char adbInputBuffer[ADB_MAX_MSG_LENGTH]; /* data input buffer */
u_char adbOutputBuffer[ADB_MAX_MSG_LENGTH]; /* data output buffer */
@@ -269,8 +262,6 @@ struct adbCmdHoldEntry adbOutQueue; /* our 1 entry output queue */
int adbSentChars = 0; /* how many characters we have sent */
int adbLastDevice = 0; /* last ADB dev we heard from (II ONLY) */
-int adbLastDevIndex = 0; /* last ADB dev loc in dev table (II ONLY) */
-int adbLastCommand = 0; /* the last ADB command we sent (II) */
struct ADBDevEntry ADBDevTable[16]; /* our ADB device table */
int ADBNumDevices; /* num. of ADB devices found with adb_reinit */
@@ -325,7 +316,6 @@ void adb_read_II(u_char *);
void adb_hw_setup(void);
void adb_hw_setup_IIsi(u_char *);
int adb_cmd_result(u_char *);
-int adb_cmd_extra(u_char *);
int adb_guess_next_device(void);
int adb_prog_switch_enable(void);
int adb_prog_switch_disable(void);
@@ -2285,46 +2275,6 @@ adb_cmd_result(u_char *in)
}
}
-
-/*
- * adb_cmd_extra
- *
- * This routine lets the caller know whether the specified adb command string
- * may have extra data appended to the end of it, such as a LISTEN command.
- *
- * returns: 0 if extra data is allowed
- * 1 if extra data is NOT allowed
- */
-int
-adb_cmd_extra(u_char *in)
-{
- switch (adbHardware) {
- case ADB_HW_II:
- if ((in[1] & 0x0c) == 0x08) /* was it a listen command? */
- return 0;
- return 1;
-
- case ADB_HW_IISI:
- case ADB_HW_CUDA:
- /*
- * TO DO: support needs to be added to recognize RTC and PRAM
- * commands
- */
- if ((in[2] & 0x0c) == 0x08) /* was it a listen command? */
- return 0;
- /* add others later */
- return 1;
-
- case ADB_HW_PB:
- return 1;
-
- case ADB_HW_UNKNOWN:
- default:
- return 1;
- }
-}
-
-
void
adb_setup_hw_type(void)
{
diff --git a/sys/arch/mac68k/dev/akbd_machdep.c b/sys/arch/mac68k/dev/akbd_machdep.c
index 2d8e588bbc0..963545bc3b8 100644
--- a/sys/arch/mac68k/dev/akbd_machdep.c
+++ b/sys/arch/mac68k/dev/akbd_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: akbd_machdep.c,v 1.1 2006/01/18 23:21:17 miod Exp $ */
+/* $OpenBSD: akbd_machdep.c,v 1.2 2006/01/20 00:10:09 miod Exp $ */
/* $NetBSD: akbd.c,v 1.17 2005/01/15 16:00:59 chs Exp $ */
/*
@@ -52,18 +52,6 @@
#include <dev/adb/akbdvar.h>
#include <dev/adb/keyboard.h>
-#if 0
- case WSKBDIO_BELL:
- case WSKBDIO_COMPLEXBELL:
-#define d ((struct wskbd_bell_data *)data)
- mac68k_ring_bell(d->pitch, d->period * hz / 1000, d->volume);
-#undef d
- return (0);
-
- default:
- return (-1);
-#endif
-
void akbd_cnbell(void *, u_int, u_int, u_int);
void akbd_cngetc(void *, u_int *, int *);
void akbd_cnpollc(void *, int);