NetBSD/sys/arch/x68k/stand/xxboot/iocscall.h

45 lines
826 B
C

/* $NetBSD: iocscall.h,v 1.1 1998/09/01 20:02:34 itohy Exp $ */
/*
* IOCS call macros for X680x0
*/
#ifndef X68k_IOCSCALL_H
#define X68k_IOCSCALL_H
#ifdef __NeXT__
# define IMM \#
#else
# define IMM #
#endif
#define IOCS(n) \
moveq IMM n,d0;\
trap IMM 15
#define __B_KEYINP 0x00
#define __B_SFTSNS 0x02
#define __TPALET2 0x14
#define __TCOLOR 0x15
#define __TEXTPUT 0x1B
#define __B_PUTC 0x20
#define __B_PRINT 0x21
#define __B_COLOR 0x22
#define __B_LOCATE 0x23
#define __B_CLR_ST 0x2A
#define __B_READ 0x46
#define __BOOTINF 0xFFFFFF8E
#define __JISSFT 0xFFFFFFA1
#define __SYS_STAT 0xFFFFFFAC /* only for X68030 or Xellent */
#define __SCSIDRV 0xFFFFFFF5
#define SCSIIOCS(s) \
moveq IMM s,d1;\
IOCS(__SCSIDRV)
#define __S_READ 0x21
#define __S_READCAP 0x25
#define __S_READEXT 0x26
#endif /*X68k_IOCSCALL_H*/