include malloc.h
[unix-history] / usr / src / old / np100 / npcmd.h
CommitLineData
3015d301
KS
1/*
2 * Copyright (c) 1986 MICOM-Interlan, Inc., Boxborough Mass.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)npcmd.h 6.1 (Berkeley) %G%
7 * @(#)NP Series Drivers npcmd.h 1.1
8 *
9 * Delta Created 9/19/85 Date Extracted 9/20/85
10 * File name ../../sccs/h/s.npcmd.h
11 */
12
13/* Note that the NPUNIT macro must match that defined in "npreg.h" */
14
15#define NPUNIT(a) ((minor(a) >> 4) & 0x0F)
16
17#define NPRESET 0x01 /* reset the board */
18#define NPSTART 0x04 /* start board execution */
19#define NPGPANIC 0x05 /* Get panic message */
20#define NPINIT 0x06 /* initialize software on board */
21#define NPSTATS 0x07
22#define NPRCSR0 0x08 /* read CSR0 */
23#define NPRCSR1 0x09 /* read CSR1 */
24#define NPRCSR2 0x0a /* read CSR2 */
25#define NPRCSR3 0x0b /* read CSR3 */
26#define NPWCSR0 0x0c /* write CSR0 */
27#define NPWCSR1 0x0d /* write CSR1 */
28#define NPWCSR2 0x0e /* write CSR2 */
29#define NPWCSR3 0x0f /* write CSR3 */
30#define NPPOLL 0x10
31#define NPKILL 0x11
32#define NPSETPROT 0x12 /* set the protocol to use */
33#define NPSETBOARD 0x13 /* set board to use */
34#define NPSETNPDEB 0x14 /* set nc debuging level */
35#define NPSETADDR 0x15 /* set host address */
36#define NPNETBOOT 0x16 /* boot from the network */
37
38/* ICP Board Requests */
39
40#define ICPLOAD 0x02
41#define ICPDUMP 0x03
42#define ICPPANIC 0x05
43#define ICPPOLL 0x10