usr/src/cmd/format/auto_sense.h
changeset 13415 cc04348bbc51
parent 1524 11351a0daccf
equal deleted inserted replaced
13414:b42c1f0432b6 13415:cc04348bbc51
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
       
    22  * Copyright (c) 2011 Gary Mills
       
    23  *
    22  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    24  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    23  * Use is subject to license terms.
    25  * Use is subject to license terms.
    24  */
    26  */
    25 
    27 
    26 #ifndef	_AUTO_SENSE_H
    28 #ifndef	_AUTO_SENSE_H
    27 #define	_AUTO_SENSE_H
    29 #define	_AUTO_SENSE_H
    28 
    30 
    29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
       
    30 
       
    31 #ifdef	__cplusplus
    31 #ifdef	__cplusplus
    32 extern "C" {
    32 extern "C" {
    33 #endif
    33 #endif
    34 
    34 
       
    35 struct scsi_inquiry;	/* anonymous struct */
    35 
    36 
    36 #ifdef	__STDC__
    37 #ifdef	__STDC__
    37 /*
    38 /*
    38  *	Prototypes for ANSI C compilers
    39  *	Prototypes for ANSI C compilers
    39  */
    40  */
    51 				int		ctrl_type);
    52 				int		ctrl_type);
    52 int			delete_disk_type(
    53 int			delete_disk_type(
    53 				struct disk_type *disk_type);
    54 				struct disk_type *disk_type);
    54 
    55 
    55 struct disk_type *auto_direct_get_geom_label(int fd, struct dk_label *label);
    56 struct disk_type *auto_direct_get_geom_label(int fd, struct dk_label *label);
       
    57 char			*get_generic_disk_name(
       
    58 				char *disk_name,
       
    59 				struct scsi_inquiry *inquiry);
    56 #else
    60 #else
    57 
    61 
    58 struct disk_type	*auto_sense();
    62 struct disk_type	*auto_sense();
    59 struct disk_type	*auto_efi_sense();
    63 struct disk_type	*auto_efi_sense();
    60 int			build_default_partition();
    64 int			build_default_partition();
    61 struct disk_type *auto_direct_get_geom_label();
    65 struct disk_type *auto_direct_get_geom_label();
       
    66 char			*get_generic_disk_name();
    62 
    67 
    63 
    68 
    64 #endif	/* __STDC__ */
    69 #endif	/* __STDC__ */
    65 
    70 
    66 #ifdef	__cplusplus
    71 #ifdef	__cplusplus