xref: /original-bsd/sys/news3400/iodev/dkio.h (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
7  *
8  * %sccs.include.redist.c%
9  *
10  * from: $Hdr: dkio.h,v 4.300 91/06/09 06:38:02 root Rel41 $ SONY
11  *
12  *	@(#)dkio.h	8.1 (Berkeley) 06/11/93
13  */
14 
15 #ifndef __DKIO__
16 #define __DKIO__ 1
17 
18 #define	DKIOCGGEOM	_IOR('d', 0, struct dkst)	/* get geometry info */
19 #define	DKIOCSGEOM	_IOW('d', 1, struct dkst)	/* set geometry info */
20 #define	DKIOCGPART	_IOR('d', 2, struct Partinfo)	/* get partition info */
21 #define	DKIOCSPART	_IOW('d', 3, struct Partinfo)	/* set partition info */
22 #define	DKIOCGCHAN	_IOR('d', 4, int)		/* get drive channel# */
23 #define	DKIOCGUNIT	_IOR('d', 5, int)		/* get drive unit# */
24 #define	DKIOCSEEK	_IOW('d', 6, int)		/* seek logical block */
25 #define	DKIOCRGEOM	_IOW('d', 7, int)		/* reset geom info */
26 #define		RGEOM_SDINFO	0	/* reset geom info */
27 #define		RGEOM_WDINFO	1	/* reset geom info & write to disk */
28 
29 #define	DKIOCRSEC0	_IOW('d', 8, char *)	/* read sector #0 */
30 #define	DKIOCWSEC0	_IOW('d', 9, char *)	/* write sector #0 */
31 #define	DKIOCRBOOT0	DKIOCRSEC0		/* read sector #0 */
32 #define	DKIOCWBOOT0	DKIOCWSEC0		/* write sector #0 */
33 #define	DKIOCRBOOT1	_IOW('d',10, char *)	/* read sector #1~#15 */
34 #define	DKIOCWBOOT1	_IOW('d',11, char *)	/* write sector #1~#15 */
35 #define	DKIOCRBOOT	_IOW('d',12, char *)	/* read sector #0~#15 */
36 #define	DKIOCWBOOT	_IOW('d',13, char *)	/* write sector #0~#15 */
37 
38 #endif /* !__DKIO__ */
39