|
|
1.1 ! root 1: /* ! 2: * Mach Operating System ! 3: * Copyright (c) 1992 Carnegie Mellon University ! 4: * All Rights Reserved. ! 5: * ! 6: * Permission to use, copy, modify and distribute this software and its ! 7: * documentation is hereby granted, provided that both the copyright ! 8: * notice and this permission notice appear in all copies of the ! 9: * software, derivative works or modified versions, and any portions ! 10: * thereof, and that both notices appear in supporting documentation. ! 11: * ! 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" ! 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 15: * ! 16: * Carnegie Mellon requests users of this software to return to ! 17: * ! 18: * Software Distribution Coordinator or [email protected] ! 19: * School of Computer Science ! 20: * Carnegie Mellon University ! 21: * Pittsburgh PA 15213-3890 ! 22: * ! 23: * any improvements or extensions that they make and grant Carnegie Mellon ! 24: * the rights to redistribute these changes. ! 25: */ ! 26: ! 27: /* ! 28: * HISTORY ! 29: * $Log: if_de6c.h,v $ ! 30: * Revision 1.1.1.1 1997/02/25 21:27:16 thomas ! 31: * Initial source ! 32: * ! 33: * Revision 1.1.1.1 1996/10/30 01:39:26 thomas ! 34: * Imported from UK22 ! 35: * ! 36: * Revision 1.2 1994/11/08 20:47:25 baford ! 37: * merged in CMU's MK83-MK83a diffs ! 38: * ! 39: * Revision 2.2 93/11/17 18:32:40 dbg ! 40: * Moved source into kernel/i386at/DLINK/if_de6c.c, since we ! 41: * can't release it but don't want to lose it. ! 42: * [93/11/17 dbg] ! 43: * ! 44: * Removed local declaration of HZ. ! 45: * [93/01/29 dbg] ! 46: * ! 47: * Created. ! 48: * [92/08/13 rvb] ! 49: * ! 50: */ ! 51: ! 52: /* PC/FTP Packet Driver source, conforming to version 1.09 of the spec ! 53: * Portions (C) Copyright 1990 D-Link, Inc. ! 54: * ! 55: * Permission is granted to any individual or institution to use, copy, ! 56: * modify, or redistribute this software and its documentation provided ! 57: * this notice and the copyright notices are retained. This software may ! 58: * not be distributed for profit, either in original form or in derivative ! 59: * works. D-Link, inc. makes no representations about the suitability ! 60: * of this software for any purpose. D-LINK GIVES NO WARRANTY, ! 61: * EITHER EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION ! 62: * PROVIDED, INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY ! 63: * AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. ! 64: */ ! 65: ! 66: ! 67: #define DATA(port) (port + 0) ! 68: #define STAT(port) (port + 1) ! 69: #define CMD(port) (port + 2) ! 70: ! 71: /* DE-600's DATA port Command */ ! 72: #define WRITE 0x00 /* write memory */ ! 73: #define READ 0x01 /* read memory */ ! 74: #define STATUS 0x02 /* read status register */ ! 75: #define COMMAND 0x03 /* write command register */ ! 76: #define RX_NONE 0x00 /* M1=0, M0=0 (bit 1,0) */ ! 77: #define RX_ALL 0x01 /* M1=0, M0=1 */ ! 78: #define RX_BP 0x02 /* M1=1, M0=0 */ ! 79: #define RX_MBP 0x03 /* M1=1, M0=1 */ ! 80: #define TXEN 0x04 /* bit 2 */ ! 81: #define RXEN 0x08 /* bit 3 */ ! 82: #define LOOPBACK 0x0c /* RXEN=1, TXEN=1 */ ! 83: #define IRQINV 0x40 /* bit 6 -- IRQ inverse */ ! 84: #define RESET 0x80 /* set bit 7 high */ ! 85: #define STOP_RESET 0x00 /* set bit 7 low */ ! 86: #define NUL_CMD 0x04 /* null command */ ! 87: #define RX_LEN 0x05 /* read Rx packet length */ ! 88: #define TX_ADR 0x06 /* write Tx address */ ! 89: #define RW_ADR 0x07 /* write memory address */ ! 90: ! 91: /* DE-600's CMD port Command */ ! 92: /* #define CMD(port) (port + 2) */ ! 93: #define SLT_NIC 0x04 /* select Network Interface Card */ ! 94: #define SLT_PRN 0x1c /* select Printer */ ! 95: #define NML_PRN 0xec /* normal Printer situation */ ! 96: #define IRQEN 0x10 /* enable IRQ line */ ! 97: ! 98: /* DE-600's STAT port bits 7-4 */ ! 99: /* #define STAT(port) (port + 1) */ ! 100: #define RXBUSY 0x80 ! 101: #define GOOD 0x40 ! 102: #define RESET_FLAG 0x20 ! 103: #define T16 0x10 ! 104: #define TXBUSY 0x08 ! 105: ! 106: #define STROBE 0x08 ! 107: #define EADDR 0x2000 /* HA13=0 => Mem, HA13=1 => Node Num */ ! 108: #define BFRSIZ 0x0800 /* number of bytes in a buffer */ ! 109: #define BFRS 4 ! 110: ! 111: #define DSF_LOCK 1 ! 112: #define DSF_RUNNING 2 ! 113: ! 114: #define MOD_ENAL 1 ! 115: #define MOD_PROM 2 ! 116:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.