Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev Remove unused files.



details:   https://anonhg.NetBSD.org/src/rev/ec396b74fa01
branches:  trunk
changeset: 467737:ec396b74fa01
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Sun Mar 28 13:16:45 1999 +0000

description:
Remove unused files.

diffstat:

 sys/arch/macppc/dev/adbsys.c    |   632 -----------------
 sys/arch/macppc/dev/font_8x16.c |   556 ---------------
 sys/arch/macppc/dev/grf.c       |   286 --------
 sys/arch/macppc/dev/grf_ati.c   |   150 ----
 sys/arch/macppc/dev/grf_subr.c  |    59 -
 sys/arch/macppc/dev/grfvar.h    |    82 --
 sys/arch/macppc/dev/ite.c       |  1376 ---------------------------------------
 sys/arch/macppc/dev/itevar.h    |    55 -
 8 files changed, 0 insertions(+), 3196 deletions(-)

diffs (truncated from 3228 to 300 lines):

diff -r 29c97275b375 -r ec396b74fa01 sys/arch/macppc/dev/adbsys.c
--- a/sys/arch/macppc/dev/adbsys.c      Sun Mar 28 12:51:49 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,632 +0,0 @@
-/*     $NetBSD: adbsys.c,v 1.1 1998/05/15 10:15:47 tsubai Exp $        */
-
-/*-
- * Copyright (C) 1994  Bradley A. Grantham
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by Bradley A. Grantham.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/device.h>
-
-#include <machine/cpu.h>
-
-#include <macppc/dev/viareg.h>
-#include <macppc/dev/adbvar.h>
-
-/* from adb.c */
-void    adb_processevent __P((adb_event_t * event));
-
-extern void adb_jadbproc __P((void));
-
-void 
-adb_complete(buffer, data_area, adb_command)
-       caddr_t buffer;
-       caddr_t data_area;
-       int adb_command;
-{
-       adb_event_t event;
-       ADBDataBlock adbdata;
-       int adbaddr;
-       int error;
-#ifdef ADB_DEBUG
-       int i;
-
-       if (adb_debug)
-               printf("adb: transaction completion\n");
-#endif
-
-       adbaddr = (adb_command & 0xf0) >> 4;
-       error = GetADBInfo(&adbdata, adbaddr);
-#ifdef ADB_DEBUG
-       if (adb_debug)
-               printf("adb: GetADBInfo returned %d\n", error);
-#endif
-
-       event.addr = adbaddr;
-       event.hand_id = adbdata.devType;
-       event.def_addr = adbdata.origADBAddr;
-       event.byte_count = buffer[0];
-       memcpy(event.bytes, buffer + 1, event.byte_count);
-
-#ifdef ADB_DEBUG
-       if (adb_debug) {
-               printf("adb: from %d at %d (org %d) %d:", event.addr,
-                   event.hand_id, event.def_addr, buffer[0]);
-               for (i = 1; i <= buffer[0]; i++)
-                       printf(" %x", buffer[i]);
-               printf("\n");
-       }
-#endif
-
-       microtime(&event.timestamp);
-
-       adb_processevent(&event);
-}
-
-void 
-adb_msa3_complete(buffer, data_area, adb_command)
-       caddr_t buffer;
-       caddr_t data_area;
-       int adb_command;
-{
-       adb_event_t event;
-       ADBDataBlock adbdata;
-       int adbaddr;
-       int error;
-#ifdef ADB_DEBUG
-       int i;
-
-       if (adb_debug)
-               printf("adb: transaction completion\n");
-#endif
-
-       adbaddr = (adb_command & 0xf0) >> 4;
-       error = GetADBInfo(&adbdata, adbaddr);
-#ifdef ADB_DEBUG
-       if (adb_debug)
-               printf("adb: GetADBInfo returned %d\n", error);
-#endif
-
-       event.addr = adbaddr;
-       event.hand_id = ADBMS_MSA3;
-       event.def_addr = adbdata.origADBAddr;
-       event.byte_count = buffer[0];
-       memcpy(event.bytes, buffer + 1, event.byte_count);
-
-#ifdef ADB_DEBUG
-       if (adb_debug) {
-               printf("adb: from %d at %d (org %d) %d:",
-                   event.addr, event.hand_id, event.def_addr, buffer[0]);
-               for (i = 1; i <= buffer[0]; i++)
-                       printf(" %x", buffer[i]);
-               printf("\n");
-       }
-#endif
-
-       microtime(&event.timestamp);
-
-       adb_processevent(&event);
-}
-
-void 
-adb_mm_nonemp_complete(buffer, data_area, adb_command)
-       caddr_t buffer;
-       caddr_t data_area;
-       int adb_command;
-{
-       adb_event_t event;
-       ADBDataBlock adbdata;
-       int adbaddr;
-       int error;
-
-#ifdef ADB_DEBUG
-       int i;
-
-       if (adb_debug)
-               printf("adb: transaction completion\n");
-#endif
-
-       adbaddr = (adb_command & 0xf0) >> 4;
-       error = GetADBInfo(&adbdata, adbaddr);
-#ifdef ADB_DEBUG
-       if (adb_debug)
-               printf("adb: GetADBInfo returned %d\n", error);
-#endif
-
-#if 0
-       printf("adb: from %d at %d (org %d) %d:", event.addr,
-               event.hand_id, event.def_addr, buffer[0]);
-       for (i = 1; i <= buffer[0]; i++)
-               printf(" %x", buffer[i]);
-       printf("\n");
-#endif
-
-       /* massage the data to look like EMP data */
-       if ((buffer[3] & 0x04) == 0x04)
-               buffer[1] &= 0x7f;
-       else
-               buffer[1] |= 0x80;
-       if ((buffer[3] & 0x02) == 0x02)
-               buffer[2] &= 0x7f;
-       else
-               buffer[2] |= 0x80;
-       if ((buffer[3] & 0x01) == 0x01)
-               buffer[3] = 0x00;
-       else
-               buffer[3] = 0x80;
-
-       event.addr = adbaddr;
-       event.hand_id = adbdata.devType;
-       event.def_addr = adbdata.origADBAddr;
-       event.byte_count = buffer[0];
-       memcpy(event.bytes, buffer + 1, event.byte_count);
-
-#ifdef ADB_DEBUG
-       if (adb_debug) {
-               printf("adb: from %d at %d (org %d) %d:", event.addr,
-                   event.hand_id, event.def_addr, buffer[0]);
-               for (i = 1; i <= buffer[0]; i++)
-                       printf(" %x", buffer[i]);
-               printf("\n");
-       }
-#endif
-
-       microtime(&event.timestamp);
-
-       adb_processevent(&event);
-}
-
-static volatile int extdms_done;
-
-/*
- * initialize extended mouse - probes devices as
- * described in _Inside Macintosh, Devices_.
- */
-void
-extdms_init(totaladbs)
-       int totaladbs;
-{
-       ADBDataBlock adbdata;
-       int adbindex, adbaddr, count;
-       short cmd;
-       u_char buffer[9];
-
-       for (adbindex = 1; adbindex <= totaladbs; adbindex++) {
-               /* Get the ADB information */
-               adbaddr = GetIndADB(&adbdata, adbindex);
-               if (adbdata.origADBAddr == ADBADDR_MS &&
-                   (adbdata.devType == ADBMS_USPEED)) {
-                       /* Found MicroSpeed Mouse Deluxe Mac */
-                       cmd = ((adbaddr<<4)&0xF0)|0x9;  /* listen 1 */
-
-                       /*
-                        * To setup the MicroSpeed, it appears that we can
-                        * send the following command to the mouse and then
-                        * expect data back in the form:
-                        *  buffer[0] = 4 (bytes)
-                        *  buffer[1], buffer[2] as std. mouse
-                        *  buffer[3] = buffer[4] = 0xff when no buttons
-                        *   are down.  When button N down, bit N is clear.
-                        * buffer[4]'s locking mask enables a
-                        * click to toggle the button down state--sort of
-                        * like the "Easy Access" shift/control/etc. keys.
-                        * buffer[3]'s alternative speed mask enables using 
-                        * different speed when the corr. button is down
-                        */
-                       buffer[0] = 4;
-                       buffer[1] = 0x00;       /* Alternative speed */
-                       buffer[2] = 0x00;       /* speed = maximum */
-                       buffer[3] = 0x10;       /* enable extended protocol,
-                                                * lower bits = alt. speed mask
-                                                *            = 0000b
-                                                */
-                       buffer[4] = 0x07;       /* Locking mask = 0000b,
-                                                * enable buttons = 0111b
-                                                */
-                       extdms_done = 0;
-                       ADBOp((Ptr)buffer, (Ptr)extdms_complete,
-                               (Ptr)&extdms_done, cmd);
-                       while (!extdms_done)
-                               /* busy wait until done */;
-               }
-               if (adbdata.origADBAddr == ADBADDR_MS &&
-                   (adbdata.devType == ADBMS_100DPI ||
-                   adbdata.devType == ADBMS_200DPI)) {
-                       /* found a mouse */
-                       cmd = ((adbaddr << 4) & 0xf0) | 0x3;
-
-                       extdms_done = 0;
-                       cmd = (cmd & 0xf3) | 0x0c; /* talk command */
-                       ADBOp((Ptr)buffer, (Ptr)extdms_complete,
-                             (Ptr)&extdms_done, cmd);
-
-                       /* Wait until done, but no more than 2 secs */
-                       count = 40000;
-                       while (!extdms_done && count-- > 0)
-                               delay(50);
-
-                       if (!extdms_done) {
-#ifdef ADB_DEBUG
-                               if (adb_debug)
-                                       printf("adb: extdms_init timed out\n");
-#endif
-                               return;
-                       }
-
-                       DELAY(1000);
-
-                       /* Attempt to initialize Extended Mouse Protocol */
-                       buffer[2] = '\004'; /* make handler ID 4 */
-                       extdms_done = 0;
-                       cmd = (cmd & 0xf3) | 0x08; /* listen command */
-                       ADBOp((Ptr)buffer, (Ptr)extdms_complete,
-                             (Ptr)&extdms_done, cmd);
-                       while (!extdms_done)
-                               /* busy wait until done */;
-
-                       /*
-                        * Check to see if successful, if not
-                        * try to initialize it as other types
-                        */



Home | Main Index | Thread Index | Old Index