Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / x68k / stand / libiocs / iocscall.h
blob116f5dfe4a8323d826866a5abd9fed8f5470a4fa
1 /* $NetBSD: iocscall.h,v 1.2 2001/06/12 16:57:28 minoura Exp $ */
3 /*
4 * IOCS call macros for X680x0
5 */
7 #ifndef X68k_IOCSCALL_H
8 #define X68k_IOCSCALL_H
10 #ifdef __NeXT__
11 # define IMM \#
12 #else
13 # define IMM #
14 #endif
16 #define IOCS(n) \
17 moveq IMM n,%d0;\
18 trap IMM 15
20 #define __B_KEYINP 0x00
21 #define __B_SFTSNS 0x02
22 #define __TPALET2 0x14
23 #define __TCOLOR 0x15
24 #define __TEXTPUT 0x1B
25 #define __B_PUTC 0x20
26 #define __B_PRINT 0x21
27 #define __B_COLOR 0x22
28 #define __B_LOCATE 0x23
29 #define __B_CLR_ST 0x2A
30 #define __B_READ 0x46
31 #define __B_RECALI 0x47
32 #define __B_DRVCHK 0x4E
33 #define __BOOTINF 0xFFFFFF8E
34 #define __JISSFT 0xFFFFFFA1
35 #define __SYS_STAT 0xFFFFFFAC /* only for X68030 or Xellent */
36 #define __SCSIDRV 0xFFFFFFF5
38 #define SCSIIOCS(s) \
39 moveq IMM s,%d1;\
40 IOCS(__SCSIDRV)
42 #define __S_READ 0x21
43 #define __S_READCAP 0x25
44 #define __S_READEXT 0x26
46 #endif /*X68k_IOCSCALL_H*/