summaryrefslogtreecommitdiff
path: root/chips/dtop.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-20 20:44:33 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:34 +0200
commit2486c56afd5ac4392aa95f0e478978331d1c15d6 (patch)
treee3c5e8c5252d5e110208d7fc6dbfad1c3b1e802f /chips/dtop.h
parent2a50c925882fe2d6535f130401eb6d4a4feb3e93 (diff)
2006-02-20 Thomas Schwinge <tschwinge@gnu.org>
Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida <glguida@gmail.com>. * chips/atm.c: Remove file. * chips/atmreg.h: Likewise. * chips/audio.c: Likewise. * chips/audio_config.h: Likewise. * chips/audio_defs.h: Likewise. * chips/bt431.c: Likewise. * chips/bt431.h: Likewise. * chips/bt455.c: Likewise. * chips/bt455.h: Likewise. * chips/bt459.c: Likewise. * chips/bt459.h: Likewise. * chips/bt478.c: Likewise. * chips/bt478.h: Likewise. * chips/build_font.c: Likewise. * chips/cfb_hdw.c: Likewise. * chips/cfb_misc.c: Likewise. * chips/dc503.c: Likewise. * chips/dc503.h: Likewise. * chips/dtop.h: Likewise. * chips/dtop_handlers.c: Likewise. * chips/dtop_hdw.c: Likewise. * chips/dz_7085.h: Likewise. * chips/dz_defs.h: Likewise. * chips/dz_hdw.c: Likewise. * chips/eccreg.h: Likewise. * chips/fb_hdw.c: Likewise. * chips/fb_misc.c: Likewise. * chips/fdc_82077.h: Likewise. * chips/fdc_82077_hdw.c: Likewise. * chips/frc.c: Likewise. * chips/ims332.c: Likewise. * chips/ims332.h: Likewise. * chips/isdn_79c30.h: Likewise. * chips/isdn_79c30_hdw.c: Likewise. * chips/kernel_font.c: Likewise. * chips/kernel_font.data: Likewise. * chips/lance.c: Likewise. * chips/lance.h: Likewise. * chips/lance_mapped.c: Likewise. * chips/lk201.c: Likewise. * chips/lk201.h: Likewise. * chips/mc_clock.c: Likewise. * chips/mc_clock.h: Likewise. * chips/mouse.c: Likewise. * chips/nc.c: Likewise. * chips/nc.h: Likewise. * chips/nw.h: Likewise. * chips/nw_mk.c: Likewise. * chips/nw_mk.h: Likewise. * chips/pm_defs.h: Likewise. * chips/pm_hdw.c: Likewise. * chips/pm_misc.c: Likewise. * chips/scc_8530.h: Likewise. * chips/scc_8530_hdw.c: Likewise. * chips/screen.c: Likewise. * chips/screen.h: Likewise. * chips/screen_defs.h: Likewise. * chips/screen_switch.c: Likewise. * chips/screen_switch.h: Likewise. * chips/serial_console.c: Likewise. * chips/serial_defs.h: Likewise. * chips/sfb_hdw.c: Likewise. * chips/sfb_misc.c: Likewise. * chips/spans.c: Likewise. * chips/spans.h: Likewise. * chips/tca100.c: Likewise. * chips/tca100.h: Likewise. * chips/tca100_if.c: Likewise. * chips/tca100_if.h: Likewise. * chips/vs42x_rb.h: Likewise. * chips/xcfb_hdw.c: Likewise. * chips/xcfb_misc.c: Likewise. * chips/xcfb_monitor.h: Likewise. * Makefile.in (chips-files): Only contain `busses.c' and `busses.h'. * kern/syscall_sw.c: Don't include <chips/nw_mk.h> anymore.
Diffstat (limited to 'chips/dtop.h')
-rw-r--r--chips/dtop.h241
1 files changed, 0 insertions, 241 deletions
diff --git a/chips/dtop.h b/chips/dtop.h
deleted file mode 100644
index e37ba04..0000000
--- a/chips/dtop.h
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1992 Carnegie Mellon University
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-/*
- * File: dtop.h
- * Author: Alessandro Forin, Carnegie Mellon University
- * Date: 1/92
- *
- * Definitions for the Desktop serial bus (i2c aka ACCESS).
- */
-
-#ifndef _DTOP_H_
-#define _DTOP_H_
-
-#define DTOP_MAX_DEVICES 14
-#define DTOP_MAX_MSG_SIZE 36 /* 3 hdr + 32 data + 1 checksum */
-
-typedef struct {
-
- unsigned char dest_address; /* low bit is zero */
- unsigned char src_address; /* ditto */
- union {
- struct {
- unsigned char len : 5, /* message byte len */
- sub : 2, /* sub-address */
- P : 1; /* Control(1)/Data(0) marker */
- } val;
- unsigned char bits; /* quick check */
- } code;
-
- /* varzise, checksum byte at end */
- unsigned char body[DTOP_MAX_MSG_SIZE-3];
-
-} dtop_message, *dtop_message_t;
-
-/*
- * Standard addresses
- */
-
-#define DTOP_ADDR_HOST 0x50 /* address for the (only) host */
-#define DTOP_ADDR_DEFAULT 0x6e /* power-up default address */
-#define DTOP_ADDR_FIRST 0x52 /* first assignable address */
-#define DTOP_ADDR_LAST 0x6c /* last, inclusive */
-
-#define DTOP_ADDR_KBD 0x6c /* as used by DEC */
-#define DTOP_ADDR_MOUSE 0x6a
-
-/*
- * Standard messages
- */
-
-/* from host to devices */
-
-#define DTOP_MSG_RESET 0xf0 /* preceeded by 0x81: P,len 1 */
-
-#define DTOP_MSG_ID_REQUEST 0xf1 /* preceeded by 0x81: P,len 1 */
-
-#define DTOP_MSG_ASSIGN_ADDRESS 0xf2 /* preceeded by 0x9e: P,len 30 */
- /* followed by a dtop_id_reply_t */
- /* and by the new_IC_address */
-
-#define DTOP_MSG_CAP_REQUEST 0xf3 /* preceeded by 0x83: P,len 3 */
- /* followed by a 16 bit u_offset */
-
-#define DTOP_MSG_APPL_TEST 0xb1 /* preceed by P, sub, len 1 */
-
-/* from devices to host */
-
-#define DTOP_MSG_ATTENTION 0xe0 /* preceeded by P, len */
-# define DTOP_ATN_OK_STATUS 0x00 /* anything else bad */
- /* followed by 0-30 bytes */
-
-#define DTOP_MSG_ID_REPLY 0xe1 /* preceeded by P,len (29..32) */
-
-typedef struct {
- unsigned char module_revision[8]; /* ascii, blank padded */
- unsigned char vendor_name[8];
- unsigned char module_name[8];
- int device_number; /* 32 bits cpl-2 */
- /* 0-3 optional bytes follow, ignore */
-} dtop_id_reply_t;
-
-#define DTOP_MSG_CAP_REPLY 0xe3 /* preceeded by P,len (3..32) */
- /* followed by 16 bit u_offset */
- /* followed by data */
-
-#define DTOP_MSG_APPL_SIGNAL 0xa0 /* application level signal */
-# define DTOP_SIG_ATTENTION 0x00
-# define DTOP_SIG_RESET 0x01
-# define DTOP_SIG_HALT 0x02
-
-#define DTOP_MSG_APPL_TREPLY 0xa1 /* followed by status (0-->ok) */
- /* and 0..30 bytes of result data */
-
-/* reserved message codes (testing, manifacturing) */
-
-#define DTOP_MSG_RES0 0xc0
-#define DTOP_MSG_RES1 0xc1
-#define DTOP_MSG_RES2 0xc2
-#define DTOP_MSG_RES3 0xc3
-
-
-/*
- * Device specific definitions: Keyboard
- */
-
-/* from host to keyboard */
-
-#define DTOP_KMSG_CLICK 0x01 /* preceeded by P, sub len 2 */
-# define DTOP_CLICK_VOLUME_MAX 0x7 /* followed by one byte */
-
-#define DTOP_KMSG_BELL 0x02 /* preceeded by P, sub len 2 */
- /* same as above */
-
-#define DTOP_KMSG_LED 0x03 /* preceeded by P, sub len 2 */
- /* four lower bits turn leds on */
-
-#define DTOP_KMSG_POLL 0x04 /* preceeded by P, sub len 1 */
-
-/* keyboard sends up to 11 codes in a data message, distinguished values: */
-#define DTOP_KBD_EMPTY 0x00
-#define DTOP_KBD_OUT_ERR 0x01
-#define DTOP_KBD_IN_ERR 0x02
-
-#define DTOP_KBD_KEY_MIN 0x08
-#define DTOP_KBD_KEY_MAX 0xff
-
-/* powerup status values: 0 ok, else.. */
-#define DTOP_KBD_ROM_FAIL 0x01
-#define DTOP_KBD_RAM_FAIL 0x02
-#define DTOP_KBD_KEY_DOWN 0x03
-
-
-/*
- * Device specific definitions: Locators (mouse)
- */
-
-/* locator sends this type of report data */
-
-typedef struct {
- unsigned short buttons; /* 1->pressed */
- short x;
- short y;
- short z;
- /* possibly 3 more dimensions for gloves */
-} dtop_locator_msg_t;
-
-#define DTOP_LMSG_SET_RATE 0x01 /* preceeded by P,sub, len 2 */
- /* followed by sampling interval,
- from 8 to 25 msecs (0->polled */
-
-#define DTOP_LMSG_POLL 0x02 /* preceeded by P,sub, len 1 */
-
-/* Powerup codes same as keyboard */
-
-
-/*
- * Implementation specific definitions
- */
-
-typedef union {
-
- dtop_message unknown_report;
-
- struct {
- char last_codes_count;
- unsigned char last_codes[11]; /* max as per specs */
- unsigned int last_msec; /* autorepeat state */
- unsigned short poll_frequency;
- unsigned char k_ar_state;
-# define K_AR_IDLE 0 /* quiescent, no polling */
-# define K_AR_OFF 4 /* turn off polling pls */
-# define K_AR_ACTIVE 2 /* polling, no autos yet */
-# define K_AR_TRIGGER 1 /* sent one autorepeat */
- unsigned char bell_volume;
- unsigned char led_status;
- } keyboard;
-
- struct {
- unsigned char type : 7, /* DEV_MOUSE, DEV_TABLET, .. */
- relative : 1;
- unsigned char n_coords;
- unsigned short prev_buttons;
-# define L_BUTTON_MAX 16
- unsigned char button_code[L_BUTTON_MAX];
-# define L_COORD_MAX 6
- unsigned int coordinate[L_COORD_MAX]; /* max 6D */
- } locator;
-
- /* add more as they come along */
-
-} dtop_device, *dtop_device_t;
-
-/* All handler functions should have this interface */
-extern int
- dtop_null_device_handler(
- dtop_device_t dev,
- dtop_message_t msg,
- int event,
- unsigned char outc),
- dtop_locator_handler(
- dtop_device_t dev,
- dtop_message_t msg,
- int event,
- unsigned char outc),
- dtop_keyboard_handler(
- dtop_device_t dev,
- dtop_message_t msg,
- int event,
- unsigned char outc);
-
-
-#define DTOP_EVENT_RECEIVE_PACKET 1
-#define DTOP_EVENT_BAD_PACKET 2
-#define DTOP_EVENT_PUTC 4
-#define DTOP_EVENT_POLL 8
-
-
-#endif /* _DTOP_H_ */