Home | History | Annotate | Line # | Download | only in libiocs
      1  1.1    itohy /*
      2  1.1    itohy  *	iocs.h
      3  1.1    itohy  *	X680x0 IOCS call interface
      4  1.1    itohy  *
      5  1.8    itohy  *	written by ITOH Yasufumi
      6  1.1    itohy  *	(based on PD libc 1.1.32 by PROJECT C Library)
      7  1.1    itohy  *	public domain
      8  1.1    itohy  *
      9  1.9  tsutsui  *	$NetBSD: iocs.h,v 1.9 2014/02/11 08:06:07 tsutsui Exp $
     10  1.1    itohy  */
     11  1.1    itohy /*
     12  1.1    itohy  * PROJECT C Library, X68000 PROGRAMMING INTERFACE DEFINITION
     13  1.1    itohy  * --------------------------------------------------------------------
     14  1.1    itohy  * This file is written by the Project C Library Group,  and completely
     15  1.1    itohy  * in public domain. You can freely use, copy, modify, and redistribute
     16  1.1    itohy  * the whole contents, without this notice.
     17  1.1    itohy  * --------------------------------------------------------------------
     18  1.1    itohy  * Id: iocs.h,v 1.1.1.1 1993/04/18 16:14:27 mura Exp
     19  1.1    itohy  * Id: iocs_p.h,v 1.5 1993/10/06 16:46:12 mura Exp
     20  1.1    itohy  * Id: scsi.h,v 1.3 1994/07/31 17:21:50 mura Exp
     21  1.1    itohy  */
     22  1.1    itohy 
     23  1.1    itohy #ifndef __X68K_IOCS_H__
     24  1.1    itohy #define __X68K_IOCS_H__
     25  1.1    itohy 
     26  1.1    itohy #include <sys/cdefs.h>
     27  1.1    itohy 
     28  1.1    itohy struct iocs_boxptr {
     29  1.1    itohy 	short		x1;
     30  1.1    itohy 	short		y1;
     31  1.1    itohy 	short		x2;
     32  1.1    itohy 	short		y2;
     33  1.1    itohy 	unsigned short	color;
     34  1.1    itohy 	unsigned short	linestyle;
     35  1.1    itohy };
     36  1.1    itohy 
     37  1.1    itohy struct iocs_circleptr {
     38  1.1    itohy 	short		x;
     39  1.1    itohy 	short		y;
     40  1.1    itohy 	unsigned short	radius;
     41  1.1    itohy 	unsigned short	color;
     42  1.1    itohy 	short		start;
     43  1.1    itohy 	short		end;
     44  1.1    itohy 	unsigned short	ratio;
     45  1.1    itohy };
     46  1.1    itohy 
     47  1.1    itohy struct iocs_fillptr {
     48  1.1    itohy 	short		x1;
     49  1.1    itohy 	short		y1;
     50  1.1    itohy 	short		x2;
     51  1.1    itohy 	short		y2;
     52  1.1    itohy 	unsigned short	color;
     53  1.1    itohy };
     54  1.1    itohy 
     55  1.1    itohy struct iocs_fntbuf {
     56  1.1    itohy 	short		xl;
     57  1.1    itohy 	short		yl;
     58  1.1    itohy 	unsigned char	buffer[72];
     59  1.1    itohy };
     60  1.1    itohy 
     61  1.1    itohy struct iocs_getptr {
     62  1.1    itohy 	short	x1;
     63  1.1    itohy 	short	y1;
     64  1.1    itohy 	short	x2;
     65  1.1    itohy 	short	y2;
     66  1.1    itohy 	void	*buf_start;
     67  1.1    itohy 	void	*buf_end;
     68  1.1    itohy };
     69  1.1    itohy 
     70  1.1    itohy struct iocs_lineptr {
     71  1.1    itohy 	short		x1;
     72  1.1    itohy 	short		y1;
     73  1.1    itohy 	short		x2;
     74  1.1    itohy 	short		y2;
     75  1.1    itohy 	unsigned short	color;
     76  1.1    itohy 	unsigned short	linestyle;
     77  1.1    itohy };
     78  1.1    itohy 
     79  1.1    itohy struct iocs_paintptr {
     80  1.1    itohy 	short		x;
     81  1.1    itohy 	short		y;
     82  1.1    itohy 	unsigned short	color;
     83  1.1    itohy 	void		*buf_start;
     84  1.1    itohy 	void		*buf_end;
     85  1.2    itohy } __attribute__((__packed__));
     86  1.1    itohy 
     87  1.1    itohy struct iocs_pointptr {
     88  1.1    itohy 	short		x;
     89  1.1    itohy 	short		y;
     90  1.1    itohy 	unsigned short	color;
     91  1.1    itohy };
     92  1.1    itohy 
     93  1.1    itohy struct iocs_psetptr {
     94  1.1    itohy 	short		x;
     95  1.1    itohy 	short		y;
     96  1.1    itohy 	unsigned short	color;
     97  1.1    itohy };
     98  1.1    itohy 
     99  1.1    itohy struct iocs_putptr {
    100  1.1    itohy 	short		x1;
    101  1.1    itohy 	short		y1;
    102  1.1    itohy 	short		x2;
    103  1.1    itohy 	short		y2;
    104  1.3    perry 	const void	*buf_start;
    105  1.3    perry 	const void	*buf_end;
    106  1.1    itohy };
    107  1.1    itohy 
    108  1.1    itohy struct iocs_symbolptr {
    109  1.1    itohy 	short		x1;
    110  1.1    itohy 	short		y1;
    111  1.1    itohy 	unsigned char	*string_address;
    112  1.1    itohy 	unsigned char	mag_x;
    113  1.1    itohy 	unsigned char	mag_y;
    114  1.1    itohy 	unsigned short	color;
    115  1.1    itohy 	unsigned char	font_type;
    116  1.1    itohy 	unsigned char	angle;
    117  1.2    itohy } __attribute__((__packed__));
    118  1.1    itohy 
    119  1.1    itohy struct iocs_regs {
    120  1.1    itohy 	int	d0;
    121  1.1    itohy 	int	d1;
    122  1.1    itohy 	int	d2;
    123  1.1    itohy 	int	d3;
    124  1.1    itohy 	int	d4;
    125  1.1    itohy 	int	d5;
    126  1.1    itohy 	int	d6;
    127  1.1    itohy 	int	d7;
    128  1.1    itohy 	int	a1;
    129  1.1    itohy 	int	a2;
    130  1.1    itohy 	int	a3;
    131  1.1    itohy 	int	a4;
    132  1.1    itohy 	int	a5;
    133  1.1    itohy 	int	a6;
    134  1.1    itohy };
    135  1.1    itohy 
    136  1.1    itohy struct iocs_chain {
    137  1.1    itohy 	void		*addr;
    138  1.1    itohy 	unsigned short	len;
    139  1.2    itohy } __attribute__((__packed__));
    140  1.1    itohy 
    141  1.1    itohy struct iocs_chain2 {
    142  1.1    itohy 	void			*addr;
    143  1.1    itohy 	unsigned short		len;
    144  1.3    perry 	const struct iocs_chain2 *next;
    145  1.2    itohy } __attribute__((__packed__));
    146  1.1    itohy 
    147  1.1    itohy struct iocs_clipxy {
    148  1.1    itohy 	short	xs;
    149  1.1    itohy 	short	ys;
    150  1.1    itohy 	short	xe;
    151  1.1    itohy 	short	ye;
    152  1.1    itohy };
    153  1.1    itohy 
    154  1.1    itohy struct iocs_patst {
    155  1.1    itohy 	short	offsetx;
    156  1.1    itohy 	short	offsety;
    157  1.1    itohy 	short	shadow[16];
    158  1.1    itohy 	short	pattern[16];
    159  1.1    itohy };
    160  1.1    itohy 
    161  1.1    itohy struct iocs_tboxptr {
    162  1.1    itohy 	unsigned short	vram_page;
    163  1.1    itohy 	short		x;
    164  1.1    itohy 	short		y;
    165  1.1    itohy 	short		x1;
    166  1.1    itohy 	short		y1;
    167  1.1    itohy 	unsigned short	line_style;
    168  1.1    itohy };
    169  1.1    itohy 
    170  1.1    itohy struct iocs_txfillptr {
    171  1.1    itohy 	unsigned short	vram_page;
    172  1.1    itohy 	short		x;
    173  1.1    itohy 	short		y;
    174  1.1    itohy 	short		x1;
    175  1.1    itohy 	short		y1;
    176  1.1    itohy 	unsigned short	fill_patn;
    177  1.1    itohy };
    178  1.1    itohy 
    179  1.1    itohy struct iocs_trevptr {
    180  1.1    itohy 	unsigned short	vram_page;
    181  1.1    itohy 	short		x;
    182  1.1    itohy 	short		y;
    183  1.1    itohy 	short		x1;
    184  1.1    itohy 	short		y1;
    185  1.1    itohy };
    186  1.1    itohy 
    187  1.1    itohy struct iocs_xlineptr {
    188  1.1    itohy 	unsigned short	vram_page;
    189  1.1    itohy 	short		x;
    190  1.1    itohy 	short		y;
    191  1.1    itohy 	short		x1;
    192  1.1    itohy 	unsigned short	line_style;
    193  1.1    itohy };
    194  1.1    itohy 
    195  1.1    itohy struct iocs_ylineptr {
    196  1.1    itohy 	unsigned short	vram_page;
    197  1.1    itohy 	short		x;
    198  1.1    itohy 	short		y;
    199  1.1    itohy 	short		y1;
    200  1.1    itohy 	unsigned short	line_style;
    201  1.1    itohy };
    202  1.1    itohy 
    203  1.1    itohy struct iocs_tlineptr {
    204  1.1    itohy 	unsigned short	vram_page;
    205  1.1    itohy 	short		x;
    206  1.1    itohy 	short		y;
    207  1.1    itohy 	short		x1;
    208  1.1    itohy 	short		y1;
    209  1.1    itohy 	unsigned short	line_style;
    210  1.1    itohy };
    211  1.1    itohy 
    212  1.1    itohy /*
    213  1.1    itohy  * for SCSI calls
    214  1.1    itohy  */
    215  1.1    itohy 
    216  1.1    itohy struct iocs_readcap {
    217  1.1    itohy 	unsigned long	block;
    218  1.1    itohy 	unsigned long	size;
    219  1.1    itohy };
    220  1.1    itohy 
    221  1.1    itohy struct iocs_inquiry {
    222  1.1    itohy 	unsigned char	unit;
    223  1.1    itohy 	unsigned char	info;
    224  1.1    itohy 	unsigned char	ver;
    225  1.1    itohy 	unsigned char	reserve;
    226  1.1    itohy 	unsigned char	size;
    227  1.9  tsutsui 	unsigned char	class[3];
    228  1.9  tsutsui 	char		vendor[8];
    229  1.9  tsutsui 	char		product[16];
    230  1.9  tsutsui 	char		revision[4];
    231  1.1    itohy };
    232  1.1    itohy 
    233  1.1    itohy /*
    234  1.1    itohy  * arguments:
    235  1.1    itohy  *	dn		32bit arg -> 32bit data reg (input)
    236  1.1    itohy  *	an		32bit arg -> 32bit addr reg (input)
    237  1.1    itohy  *	odn		32bit arg -> 32bit addr (location to store dn value)
    238  1.1    itohy  *	dn=(num)	(no C arg) -> load immediate value to the data register
    239  1.1    itohy  *	dn=ww		two 32bit args -> (LSWord #1) << 16 | (LSWord #2)
    240  1.1    itohy  *	dn=bb		two 32bit args -> (LSByte #1) << 8 | (LSByte #2)
    241  1.1    itohy  *	dn=hsv		three args (H S V) -> encode HSV values in dn
    242  1.1    itohy  * opts:
    243  1.1    itohy  *	retd2		return value is d2 of IOCS call
    244  1.1    itohy  *	err_d0		nonzero d0 is an error -- skip storing values
    245  1.1    itohy  *	noret		the IOCS call never returns
    246  1.1    itohy  *	c_md		special for IOCS_CACHE_MD
    247  1.1    itohy  *	b_super		special for IOCS_B_SUPER
    248  1.1    itohy  *	sp_regst	special for IOCS_SP_REGST
    249  1.1    itohy  *	b_curmod	special for IOCS_B_CURMOD
    250  1.1    itohy  *	b_curpat	special for IOCS_B_CURPAT
    251  1.1    itohy  *	b_scroll	special for IOCS_B_SCROLL
    252  1.1    itohy  *	trap15		special for IOCS_TRAP15
    253  1.1    itohy  */
    254  1.1    itohy 
    255  1.7       he /*  (none) ; trap15 */	int IOCS_TRAP15(const struct iocs_regs *, struct iocs_regs *);
    256  1.7       he /* 00 */	int IOCS_B_KEYINP (void);
    257  1.7       he /* 01 */	int IOCS_B_KEYSNS (void);
    258  1.7       he /* 02 */	int IOCS_B_SFTSNS (void);
    259  1.7       he /* 04 d1 */	int IOCS_BITSNS (int);
    260  1.7       he /* 05 d1 */	void IOCS_SKEYSET (int);
    261  1.7       he /* 0c d1 */	void IOCS_TVCTRL (int);
    262  1.7       he /* 0d d1 d2 */	void IOCS_LEDMOD (int, int);
    263  1.7       he /* 0e d1 d2 */	int IOCS_TGUSEMD (int, int);
    264  1.7       he /* 0f d1=ww a1 */	int IOCS_DEFCHR (int, int, const void *);
    265  1.7       he /* 10 d1 */	int IOCS_CRTMOD (int);
    266  1.7       he /* 11 d1 */	int IOCS_CONTRAST (int);
    267  1.7       he /* 12 d1=hsv */	int __pure IOCS_HSVTORGB (int, int, int) __attribute__((const));
    268  1.7       he /* 13 d1 d2 */	int IOCS_TPALET (int, int);
    269  1.7       he /* 14 d1 d2 */	int IOCS_TPALET2 (int, int);
    270  1.7       he /* 15 d1 */	void IOCS_TCOLOR (int);
    271  1.7       he /* 19 d1=ww a1 */	int IOCS_FNTGET (int, int, struct iocs_fntbuf *);
    272  1.7       he /* 1a d1 d2 a1 */	void IOCS_TEXTGET (int, int, struct iocs_fntbuf *);
    273  1.7       he /* 1b d1 d2 a1 */	void IOCS_TEXTPUT (int, int, const struct iocs_fntbuf *);
    274  1.7       he /* 1c d1 d2 a1 a2 */	void IOCS_CLIPPUT (int, int, const struct iocs_fntbuf *, const struct iocs_clipxy *);
    275  1.7       he /* 1d d1 d2 d3 */	void IOCS_SCROLL (int, int, int);
    276  1.7       he /* 1e */	void IOCS_B_CURON (void);
    277  1.7       he /* 1f */	void IOCS_B_CUROFF (void);
    278  1.7       he /* 20 d1 */	int IOCS_B_PUTC (int);
    279  1.7       he /* 21 a1 */	int IOCS_B_PRINT (const char *);
    280  1.7       he /* 22 d1 */	int IOCS_B_COLOR (int);
    281  1.7       he /* 23 d1 d2 */	int IOCS_B_LOCATE (int, int);
    282  1.7       he /* 24 */	void IOCS_B_DOWN_S (void);
    283  1.7       he /* 25 */	void IOCS_B_UP_S (void);
    284  1.7       he /* 26 d1 */	void IOCS_B_UP (int);
    285  1.7       he /* 27 d1 */	void IOCS_B_DOWN (int);
    286  1.7       he /* 28 d1 */	void IOCS_B_RIGHT (int);
    287  1.7       he /* 29 d1 */	void IOCS_B_LEFT (int);
    288  1.7       he /* 2a d1=0 */	void IOCS_B_CLR_ED (void);
    289  1.7       he /* 2a d1=1 */	void IOCS_B_CLR_ST (void);
    290  1.7       he /* 2a d1=2 */	void IOCS_B_CLR_AL (void);
    291  1.7       he /* 2b d1=0 */	void IOCS_B_ERA_ED (void);
    292  1.7       he /* 2b d1=1 */	void IOCS_B_ERA_ST (void);
    293  1.7       he /* 2b d1=2 */	void IOCS_B_ERA_AL (void);
    294  1.7       he /* 2c d1 */	void IOCS_B_INS (int);
    295  1.7       he /* 2d d1 */	void IOCS_B_DEL (int);
    296  1.7       he /* 2e d1=ww d2=ww ; retd2 */	int IOCS_B_CONSOL (int, int, int, int);
    297  1.7       he /* 2f d1 d2 d3 d4 a1 ; retd2 */	int IOCS_B_PUTMES (int, int, int, int, const char *);
    298  1.7       he /* 30 d1 */	int IOCS_SET232C (int);
    299  1.7       he /* 31 */	int IOCS_LOF232C (void);
    300  1.7       he /* 32 */	int IOCS_INP232C (void);
    301  1.7       he /* 33 */	int IOCS_ISNS232C (void);
    302  1.7       he /* 34 */	int IOCS_OSNS232C (void);
    303  1.7       he /* 35 d1 */	void IOCS_OUT232C (int);
    304  1.7       he /* 3b d1 */	int IOCS_JOYGET (int);
    305  1.7       he /* 3c d1=bb */	int IOCS_INIT_PRN (int, int);
    306  1.7       he /* 3d */	int IOCS_SNSPRN (void);
    307  1.7       he /* 3e d1 */	void IOCS_OUTLPT (int);
    308  1.7       he /* 3f d1 */	void IOCS_OUTPRN (int);
    309  1.7       he /* 40 d1 d2 */	int IOCS_B_SEEK (int, int);
    310  1.7       he /* 41 d1 d2 d3 a1 */	int IOCS_B_VERIFY (int, int, int, const void *);
    311  1.7       he /* 42 d1 d2 d3 a1 */	int IOCS_B_READDI (int, int, int, void *);
    312  1.7       he /* 43 d1 a1 d2 */	int IOCS_B_DSKINI (int, const void *, int);
    313  1.7       he /* 44 d1 */	int IOCS_B_DRVSNS (int);
    314  1.7       he /* 45 d1 d2 d3 a1 */	int IOCS_B_WRITE (int, int, int, const void *);
    315  1.7       he /* 46 d1 d2 d3 a1 */	int IOCS_B_READ (int, int, int, void *);
    316  1.7       he /* 47 d1 */	int IOCS_B_RECALI (int);
    317  1.7       he /* 48 d1 d2 d3 a1 */	int IOCS_B_ASSIGN (int, int, int, const void *);
    318  1.7       he /* 49 d1 d2 d3 a1 */	int IOCS_B_WRITED (int, int, int, const void *);
    319  1.7       he /* 4a d1 d2 od2 */	int IOCS_B_READID (int, int, void *);
    320  1.7       he /* 4b d1 d2 d3 */	int IOCS_B_BADFMT (int, int, int);
    321  1.7       he /* 4c d1 d2 d3 a1 */	int IOCS_B_READDL (int, int, int, void *);
    322  1.7       he /* 4d d1 d2 d3 a1 */	int IOCS_B_FORMAT (int, int, int, const void *);
    323  1.7       he /* 4e d1 d2 */	int IOCS_B_DRVCHK (int, int);
    324  1.7       he /* 4f d1 */	int IOCS_B_EJECT (int);
    325  1.7       he /* 50 d1 */	int IOCS_BINDATEBCD (int);
    326  1.7       he /* 51 d1 */	void IOCS_BINDATESET (int);
    327  1.7       he /* 52 d1 */	int IOCS_TIMEBCD (int);
    328  1.7       he /* 53 d1 */	void IOCS_TIMESET (int);
    329  1.7       he /* 54 */	int IOCS_BINDATEGET (void);
    330  1.7       he /* 55 d1 */	int IOCS_DATEBIN (int);
    331  1.7       he /* 56 */	int IOCS_TIMEGET (void);
    332  1.7       he /* 57 d1 */	int IOCS_TIMEBIN (int);
    333  1.7       he /* 58 a1 */	int IOCS_DATECNV (const char *);
    334  1.7       he /* 59 a1 */	int IOCS_TIMECNV (const char *);
    335  1.7       he /* 5a d1 a1 */	int IOCS_DATEASC (int, char *);
    336  1.7       he /* 5b d1 a1 */	int IOCS_TIMEASC (int, char *);
    337  1.7       he /* 5c d1 a1 */	void IOCS_DAYASC (int, char *);
    338  1.7       he /* 5d d1 */	int IOCS_ALARMMOD (int);
    339  1.7       he /* 5e d1 d2 a1 */	int IOCS_ALARMSET (int, int, int);
    340  1.7       he /* 5f od1 od2 od0 */	int IOCS_ALARMGET (int *, int *, int *);
    341  1.7       he /* 60 a1 d1 d2 */	void IOCS_ADPCMOUT (const void *, int, int);
    342  1.7       he /* 61 a1 d1 d2 */	void IOCS_ADPCMINP (void *, int, int);
    343  1.7       he /* 62 a1 d1 d2 */	void IOCS_ADPCMAOT (const struct iocs_chain *, int, int);
    344  1.7       he /* 63 a1 d1 d2 */	void IOCS_ADPCMAIN (const struct iocs_chain *, int, int);
    345  1.7       he /* 64 a1 d1 */	void IOCS_ADPCMLOT (const struct iocs_chain2 *, int);
    346  1.7       he /* 65 a1 d1 */	void IOCS_ADPCMLIN (const struct iocs_chain2 *, int);
    347  1.7       he /* 66 */	int IOCS_ADPCMSNS (void);
    348  1.7       he /* 67 d1 */	void IOCS_ADPCMMOD (int);
    349  1.7       he /* 68 d1 d2 */	void IOCS_OPMSET (int, int);
    350  1.7       he /* 69 */	int IOCS_OPMSNS (void);
    351  1.7       he /* 6a a1 */	int IOCS_OPMINTST (const void *);
    352  1.7       he /* 6b a1 d1=bb */	int IOCS_TIMERDST (const void *, int, int);
    353  1.7       he /* 6c a1 d1=bb */	int IOCS_VDISPST (const void *, int, int);
    354  1.7       he /* 6d a1 d1 */	int IOCS_CRTCRAS (const void *, int);
    355  1.7       he /* 6e a1 */	int IOCS_HSYNCST (const void *);
    356  1.7       he /* 6f a1 */	int IOCS_PRNINTST (const void *);
    357  1.7       he /* 70 */	void IOCS_MS_INIT (void);
    358  1.7       he /* 71 */	void IOCS_MS_CURON (void);
    359  1.7       he /* 72 */	void IOCS_MS_CUROF (void);
    360  1.7       he /* 73 */	int IOCS_MS_STAT (void);
    361  1.7       he /* 74 */	int IOCS_MS_GETDT (void);
    362  1.7       he /* 75 */	int IOCS_MS_CURGT (void);
    363  1.7       he /* 76 d1=ww */	int IOCS_MS_CURST (int, int);
    364  1.7       he /* 77 d1=ww d2=ww */	int IOCS_MS_LIMIT (int, int, int, int);
    365  1.7       he /* 78 d1 d2 */	int IOCS_MS_OFFTM (int, int);
    366  1.7       he /* 79 d1 d2 */	int IOCS_MS_ONTM (int, int);
    367  1.7       he /* 7a d1 a1 */	void IOCS_MS_PATST (int, const struct iocs_patst *);
    368  1.7       he /* 7b d1 */	void IOCS_MS_SEL (int);
    369  1.7       he /* 7c a1 */	void IOCS_MS_SEL2 (const short *);
    370  1.7       he /* 7d d1 d2=ww */	int IOCS_SKEY_MOD (int, int, int);
    371  1.7       he /* 7e */	void IOCS_DENSNS (void);
    372  1.7       he /* 7f */	int IOCS_ONTIME (void);
    373  1.7       he /* 80 d1 a1 */	int IOCS_B_INTVCS (int, int);
    374  1.7       he /* 81 ; b_super */	int IOCS_B_SUPER (int);
    375  1.7       he /* 82 a1 */	int IOCS_B_BPEEK (const void *);
    376  1.7       he /* 83 a1 */	int IOCS_B_WPEEK (const void *);
    377  1.7       he /* 84 a1 */	int IOCS_B_LPEEK (const void *);
    378  1.7       he /* 85 a1 a2 d1 */	void IOCS_B_MEMSTR (const void *, void *, int);
    379  1.7       he /* 86 a1 d1 */	void IOCS_B_BPOKE (void *, int);
    380  1.7       he /* 87 a1 d1 */	void IOCS_B_WPOKE (void *, int);
    381  1.7       he /* 88 a1 d1 */	void IOCS_B_LPOKE (void *, int);
    382  1.7       he /* 89 a1 a2 d1 */	void IOCS_B_MEMSET (void *, const void *, int);
    383  1.7       he /* 8a a1 a2 d1 d2 */	void IOCS_DMAMOVE (void *, void *, int, int);
    384  1.7       he /* 8b a1 a2 d1 d2 */	void IOCS_DMAMOV_A (const struct iocs_chain *, void *, int, int);
    385  1.7       he /* 8c a1 a2 d1 */	void IOCS_DMAMOV_L (const struct iocs_chain2 *, void *, int);
    386  1.7       he /* 8d */	int IOCS_DMAMODE (void);
    387  1.7       he /* 8e */	int __pure IOCS_BOOTINF (void) __attribute__((const));
    388  1.7       he /* 8f */	int __pure IOCS_ROMVER (void) __attribute__((const));
    389  1.7       he /* 90 */	void IOCS_G_CLR_ON (void);
    390  1.7       he /* 94 d1 d2 */	int IOCS_GPALET (int, int);
    391  1.7       he /* a0 d1 */	int __pure IOCS_SFTJIS (int) __attribute__((const));
    392  1.7       he /* a1 d1 */	int __pure IOCS_JISSFT (int) __attribute__((const));
    393  1.7       he /* a2 d1=ww */	int __pure IOCS_AKCONV (int, int) __attribute__((const));
    394  1.7       he /* a3 d1 a1 a2 */	int IOCS_RMACNV (int, char *, char *);
    395  1.7       he /* a4 a1 */	int IOCS_DAKJOB (char *);
    396  1.7       he /* a5 a1 */	int IOCS_HANJOB (char *);
    397  1.7       he /* ac d1=0 */	int IOCS_MPU_STAT (void);		/* ROM 1.3 only */
    398  1.7       he /* ac d1=1 */	int IOCS_CACHE_ST (void);		/* ROM 1.3 only */
    399  1.7       he /* ac d1=3 d2 ; c_md */	int IOCS_CACHE_MD (int);	/* ROM 1.3 only */
    400  1.7       he /* ad d1 ; b_curmod */	void IOCS_B_CURMOD (int);		/*1.3/IOCS.X*/
    401  1.7       he /* ad d1=2 d2 ; b_curpat */	void IOCS_B_CURPAT (int);	/*1.3/IOCS.X*/
    402  1.7       he /* ad d1=2 d2=0 */	void IOCS_B_CURPAT1 (void);	/*1.3/IOCS.X*/
    403  1.7       he /* ad d1=3 d2 */	void IOCS_B_CURDEF (void *);	/*1.3/IOCS.X*/
    404  1.7       he /* ad d1=16 d2 ; b_scroll */	void IOCS_B_SCROLL (int);	/*1.3/IOCS.X*/
    405  1.7       he /* ae */	void IOCS_OS_CURON (void);
    406  1.7       he /* af */	void IOCS_OS_CUROF (void);
    407  1.7       he /* b0 d1 */	int IOCS_DRAWMODE (int);		/* ROM 1.3, IOCS.X */
    408  1.7       he /* b1 d1 */	int IOCS_APAGE (int);
    409  1.7       he /* b2 d1 */	int IOCS_VPAGE (int);
    410  1.7       he /* b3 d1 d2 d3 */	int IOCS_HOME (int, int, int);
    411  1.7       he /* b4 d1 d2 d3 d4 */	int IOCS_WINDOW (int, int, int, int);
    412  1.7       he /* b5 */	int IOCS_WIPE (void);
    413  1.7       he /* b6 a1 */	int IOCS_PSET (const struct iocs_psetptr *);
    414  1.7       he /* b7 a1 */	int IOCS_POINT (const struct iocs_pointptr *);
    415  1.7       he /* b8 a1 */	int IOCS_LINE (const struct iocs_lineptr *);
    416  1.7       he /* b9 a1 */	int IOCS_BOX (const struct iocs_boxptr *);
    417  1.7       he /* ba a1 */	int IOCS_FILL (const struct iocs_fillptr *);
    418  1.7       he /* bb a1 */	int IOCS_CIRCLE (const struct iocs_circleptr *);
    419  1.7       he /* bc a1 */	int IOCS_PAINT (struct iocs_paintptr *);
    420  1.7       he /* bd a1 */	int IOCS_SYMBOL (const struct iocs_symbolptr *);
    421  1.7       he /* be a1 */	int IOCS_GETGRM (struct iocs_getptr *);
    422  1.7       he /* bf a1 */	int IOCS_PUTGRM (const struct iocs_putptr *);
    423  1.7       he /* c0 */	int IOCS_SP_INIT (void);
    424  1.7       he /* c1 */	int IOCS_SP_ON (void);
    425  1.7       he /* c2 */	void IOCS_SP_OFF (void);
    426  1.7       he /* c3 d1 */	int IOCS_SP_CGCLR (int);
    427  1.7       he /* c4 d1 d2 a1 */	int IOCS_SP_DEFCG (int, int, const void *);
    428  1.7       he /* c5 d1 d2 a1 */	int IOCS_SP_GTPCG (int, int, void *);
    429  1.1    itohy 
    430  1.1    itohy /*
    431  1.1    itohy  * XXX	SP_REGST in XC iocslib:	args: int,      int, int, int, int
    432  1.7       he  *				       (c6 d1 d2 d3 d4 d5)
    433  1.1    itohy  *	XC manual and PD libc:	args: int, int, int, int, int, int
    434  1.7       he  *				       (c6 d0 d1 d2 d3 d4 d5 ; sp_regst)
    435  1.1    itohy  * we use the latter interface...
    436  1.1    itohy  */
    437  1.7       he /* c6 d0 d1 d2 d3 d4 d5 ; sp_regst */	int IOCS_SP_REGST (int, int, int, int, int, int);
    438  1.7       he /* c7 d1 od2 od3 od4 od5 ; err_d0 */	int IOCS_SP_REGGT (int, int *, int *, int *, int *);
    439  1.7       he /* c8 d1 d2 d3 */	int IOCS_BGSCRLST (int, int, int);
    440  1.7       he /* c9 d1 od2 od3 ; err_d0 */	int IOCS_BGSCRLGT (int, int *, int *);
    441  1.7       he /* ca d1 d2 d3 */	int IOCS_BGCTRLST (int, int, int);
    442  1.7       he /* cb d1 */	int IOCS_BGCTRLGT (int);
    443  1.7       he /* cc d1 d2 */	int IOCS_BGTEXTCL (int, int);
    444  1.7       he /* cd d1 d2 d3 d4 */	int IOCS_BGTEXTST (int, int, int, int);
    445  1.7       he /* ce d1 d2 d3 */	int IOCS_BGTEXTGT (int, int, int);
    446  1.7       he /* cf d1 d2 d3 */	int IOCS_SPALET (int, int, int);
    447  1.7       he /* d3 a1 */	void IOCS_TXXLINE (const struct iocs_xlineptr *);
    448  1.7       he /* d4 a1 */	void IOCS_TXYLINE (const struct iocs_ylineptr *);
    449  1.7       he /* d5 a1 */	void IOCS_TXLINE (struct iocs_tlineptr); /* 1.3, IOCS.X */
    450  1.7       he /* d6 a1 */	void IOCS_TXBOX (const struct iocs_tboxptr *);
    451  1.7       he /* d7 a1 */	void IOCS_TXFILL (const struct iocs_txfillptr *);
    452  1.7       he /* d8 a1 */	void IOCS_TXREV (const struct iocs_trevptr *);
    453  1.7       he /* df d1 d2 d3 */	void IOCS_TXRASCPY (int, int, int);
    454  1.7       he /* fd */	void IOCS_ABORTRST (void);
    455  1.7       he /* fe ; noret */	__dead void IOCS_IPLERR (void);
    456  1.7       he /* ff ; noret */	__dead void IOCS_ABORTJOB (void);
    457  1.1    itohy 
    458  1.1    itohy /* SCSI calls */
    459  1.7       he /* f5 d1=0 */		void IOCS_S_RESET (void);
    460  1.7       he /* f5 d1=1 d4 */	int IOCS_S_SELECT (int);
    461  1.7       he /* f5 d1=3 d3 a1 */	int IOCS_S_CMDOUT (int, void *);
    462  1.7       he /* f5 d1=4 d3 a1 */	int IOCS_S_DATAIN (int, void *);
    463  1.7       he /* f5 d1=5 d3 a1 */	int IOCS_S_DATAOUT (int, void *);
    464  1.7       he /* f5 d1=6 a1 */	int IOCS_S_STSIN (void *);
    465  1.7       he /* f5 d1=7 a1 */	int IOCS_S_MSGIN (void *);
    466  1.7       he /* f5 d1=8 a1 */	int IOCS_S_MSGOUT (void *);
    467  1.7       he /* f5 d1=9 */		int IOCS_S_PHASE (void);
    468  1.7       he /* f5 d1=32 d3 d4 a1 */	int IOCS_S_INQUIRY (int, int, struct iocs_inquiry *);
    469  1.7       he /* f5 d1=33 d2 d3 d4 d5 a1 */	int IOCS_S_READ (int, int, int, int, void *);
    470  1.7       he /* f5 d1=34 d2 d3 d4 d5 a1 */	int IOCS_S_WRITE (int, int, int, int, void *);
    471  1.7       he /* f5 d1=35 d3 d4 */	int IOCS_S_FORMAT (int, int);
    472  1.7       he /* f5 d1=36 d4 */	int IOCS_S_TESTUNIT (int);
    473  1.7       he /* f5 d1=37 d4 a1 */	int IOCS_S_READCAP (int, struct iocs_readcap *);
    474  1.7       he /* f5 d1=38 d2 d3 d4 d5 a1 */	int IOCS_S_READEXT (int, int, int, int, void *);
    475  1.7       he /* f5 d1=39 d2 d3 d4 d5 a1 */	int IOCS_S_WRITEEXT (int, int, int, int, void *);
    476  1.7       he /* f5 d1=43 d4 */	int IOCS_S_REZEROUNIT (int);
    477  1.7       he /* f5 d1=44 d3 d4 a1 */	int IOCS_S_REQUEST (int, int, void *);
    478  1.7       he /* f5 d1=45 d2 d4 */	int IOCS_S_SEEK (int, int);
    479  1.7       he /* f5 d1=47 d3 d4 */	int IOCS_S_STARTSTOP (int, int);
    480  1.7       he /* f5 d1=49 d3 d4 a1 */	int IOCS_S_REASSIGN (int, int, void *);
    481  1.7       he /* f5 d1=50 d3 d4 */	int IOCS_S_PAMEDIUM (int, int);
    482  1.1    itohy 
    483  1.1    itohy #endif /* __X68K_IOCS_H__ */
    484