Home | History | Annotate | Line # | Download | only in libiocs
iocscall.h revision 1.1.8.2
      1  1.1.8.2  thorpej /*	$NetBSD: iocscall.h,v 1.1.8.2 2002/01/10 19:50:33 thorpej Exp $	*/
      2  1.1.8.2  thorpej 
      3  1.1.8.2  thorpej /*
      4  1.1.8.2  thorpej  *	IOCS call macros for X680x0
      5  1.1.8.2  thorpej  */
      6  1.1.8.2  thorpej 
      7  1.1.8.2  thorpej #ifndef X68k_IOCSCALL_H
      8  1.1.8.2  thorpej #define X68k_IOCSCALL_H
      9  1.1.8.2  thorpej 
     10  1.1.8.2  thorpej #ifdef __NeXT__
     11  1.1.8.2  thorpej # define IMM	\#
     12  1.1.8.2  thorpej #else
     13  1.1.8.2  thorpej # define IMM	#
     14  1.1.8.2  thorpej #endif
     15  1.1.8.2  thorpej 
     16  1.1.8.2  thorpej #define IOCS(n)	\
     17  1.1.8.2  thorpej 	moveq	IMM n,%d0;\
     18  1.1.8.2  thorpej 	trap	IMM 15
     19  1.1.8.2  thorpej 
     20  1.1.8.2  thorpej #define __B_KEYINP	0x00
     21  1.1.8.2  thorpej #define __B_SFTSNS	0x02
     22  1.1.8.2  thorpej #define __TPALET2	0x14
     23  1.1.8.2  thorpej #define __TCOLOR	0x15
     24  1.1.8.2  thorpej #define __TEXTPUT	0x1B
     25  1.1.8.2  thorpej #define __B_PUTC	0x20
     26  1.1.8.2  thorpej #define __B_PRINT	0x21
     27  1.1.8.2  thorpej #define __B_COLOR	0x22
     28  1.1.8.2  thorpej #define __B_LOCATE	0x23
     29  1.1.8.2  thorpej #define __B_CLR_ST	0x2A
     30  1.1.8.2  thorpej #define __B_READ	0x46
     31  1.1.8.2  thorpej #define __B_RECALI	0x47
     32  1.1.8.2  thorpej #define __B_DRVCHK	0x4E
     33  1.1.8.2  thorpej #define __BOOTINF	0xFFFFFF8E
     34  1.1.8.2  thorpej #define __JISSFT	0xFFFFFFA1
     35  1.1.8.2  thorpej #define __SYS_STAT	0xFFFFFFAC	/* only for X68030 or Xellent */
     36  1.1.8.2  thorpej #define __SCSIDRV	0xFFFFFFF5
     37  1.1.8.2  thorpej 
     38  1.1.8.2  thorpej #define SCSIIOCS(s)	\
     39  1.1.8.2  thorpej 	moveq	IMM s,%d1;\
     40  1.1.8.2  thorpej 	IOCS(__SCSIDRV)
     41  1.1.8.2  thorpej 
     42  1.1.8.2  thorpej #define __S_READ	0x21
     43  1.1.8.2  thorpej #define __S_READCAP	0x25
     44  1.1.8.2  thorpej #define __S_READEXT	0x26
     45  1.1.8.2  thorpej 
     46  1.1.8.2  thorpej #endif /*X68k_IOCSCALL_H*/
     47