1 /* @(#)map.h	1.5 00/07/23 Copyright 1995 J. Schilling */
2 /*
3  *	Definitions for mapping logical disk names to scsibus/target/lun
4  *
5  *	Copyright (c) 1995 J. Schilling
6  */
7 /*
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License, Version 1.0 only
10  * (the "License").  You may not use this file except in compliance
11  * with the License.
12  *
13  * See the file CDDL.Schily.txt in this distribution for details.
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file CDDL.Schily.txt from this distribution.
17  */
18 
19 typedef struct scg_driver {
20 	char	scg_cname[DK_DEVLEN];	/* Name des Hostadapters	*/
21 	int	scg_caddr;		/* Adresse des Hostadapters	*/
22 	short	scg_cunit;		/* Unit # des scg Treibers	*/
23 	short	scg_slave;		/* Initiator id (target*8) / -1	*/
24 } scgdrv;
25 
26 extern	int	maptodisk	__PR((int, int, int));
27 extern	scgdrv	*scg_getdrv	__PR((int));
28 extern	char	*diskname	__PR((int));
29 extern	char	*diskdevname	__PR((int));
30 extern	int	print_disknames	__PR((int, int, int));
31 
32 #ifdef	SVR4
33 /*
34  * Erster Versuch der Portierung:
35  * Umsetzen der Config Struktur.
36  */
37 #undef	DKIOCGCONF			/* Only for dummy in dsklabel.h */
38 #define	DKIOCGCONF	DKIOCINFO
39 #define	dk_conf		dk_cinfo
40 
41 #define	dkc_ctype	dki_ctype
42 #define	dkc_flags	dki_flags
43 #define	dkc_cname	dki_cname
44 #define	dkc_cnum	dki_cnum
45 #define	dkc_addr	dki_addr
46 #define	dkc_space	dki_space
47 #define	dkc_prio	dki_prio
48 #define	dkc_vec		dki_vec
49 #define	dkc_dname	dki_dname
50 #define	dkc_unit	dki_unit
51 #define	dkc_slave	dki_slave
52 
53 #endif
54