10353ce09Smckusick /* 2*0dc589e4Sbostic * Copyright (c) 1992, 1993 3*0dc589e4Sbostic * The Regents of the University of California. All rights reserved. 40353ce09Smckusick * 50353ce09Smckusick * This code is derived from software contributed to Berkeley by 60353ce09Smckusick * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc. 70353ce09Smckusick * 80353ce09Smckusick * %sccs.include.redist.c% 90353ce09Smckusick * 100353ce09Smckusick * from: $Hdr: dkio.h,v 4.300 91/06/09 06:38:02 root Rel41 $ SONY 110353ce09Smckusick * 12*0dc589e4Sbostic * @(#)dkio.h 8.1 (Berkeley) 06/11/93 130353ce09Smckusick */ 140353ce09Smckusick 150353ce09Smckusick #ifndef __DKIO__ 160353ce09Smckusick #define __DKIO__ 1 170353ce09Smckusick 180353ce09Smckusick #define DKIOCGGEOM _IOR('d', 0, struct dkst) /* get geometry info */ 190353ce09Smckusick #define DKIOCSGEOM _IOW('d', 1, struct dkst) /* set geometry info */ 200353ce09Smckusick #define DKIOCGPART _IOR('d', 2, struct Partinfo) /* get partition info */ 210353ce09Smckusick #define DKIOCSPART _IOW('d', 3, struct Partinfo) /* set partition info */ 220353ce09Smckusick #define DKIOCGCHAN _IOR('d', 4, int) /* get drive channel# */ 230353ce09Smckusick #define DKIOCGUNIT _IOR('d', 5, int) /* get drive unit# */ 240353ce09Smckusick #define DKIOCSEEK _IOW('d', 6, int) /* seek logical block */ 250353ce09Smckusick #define DKIOCRGEOM _IOW('d', 7, int) /* reset geom info */ 260353ce09Smckusick #define RGEOM_SDINFO 0 /* reset geom info */ 270353ce09Smckusick #define RGEOM_WDINFO 1 /* reset geom info & write to disk */ 280353ce09Smckusick 290353ce09Smckusick #define DKIOCRSEC0 _IOW('d', 8, char *) /* read sector #0 */ 300353ce09Smckusick #define DKIOCWSEC0 _IOW('d', 9, char *) /* write sector #0 */ 310353ce09Smckusick #define DKIOCRBOOT0 DKIOCRSEC0 /* read sector #0 */ 320353ce09Smckusick #define DKIOCWBOOT0 DKIOCWSEC0 /* write sector #0 */ 330353ce09Smckusick #define DKIOCRBOOT1 _IOW('d',10, char *) /* read sector #1~#15 */ 340353ce09Smckusick #define DKIOCWBOOT1 _IOW('d',11, char *) /* write sector #1~#15 */ 350353ce09Smckusick #define DKIOCRBOOT _IOW('d',12, char *) /* read sector #0~#15 */ 360353ce09Smckusick #define DKIOCWBOOT _IOW('d',13, char *) /* write sector #0~#15 */ 370353ce09Smckusick 380353ce09Smckusick #endif /* !__DKIO__ */ 39