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