i.pmcsconf revision 4c06356b0f0fffb4fc1b6eccc8e5d8e2254a84d6
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
{
return
fi
cat >> $1 << EOF
#
# As a pHCI driver, pmcs must specify the vHCI class it belongs to (scsi_vhci).
#
EOF
}
{
return
fi
cat >> $1 << EOF
#
# By default, MPxIO will be enabled on all pmcs controllers. To disable MPxIO
# for all pmcs controllers, set:
#
#mpxio-disable="yes";
#
# You can disable MPxIO on a per-HBA basis. Per port settings override the
# global setting for the specified ports. To disable MPxIO for the controller
# whose unit-address is 0 and whose parent is /pci@0/pci10de,5d@e, set:
#
#name="pmcs" parent="/pci@0/pci10de,5d@e" unit-address="0" mpxio-disable="yes";
EOF
}
{
return
fi
cat >> $1 << EOF
#
# Global debug settings may be set using the 'pmcs-debug-mask' property.
# Any combination of values may be set according to the following:
#
# 0x0001 - Basic info; shouldn't print anything during normal operation
# 0x0002 - Small amount of I/O information during normal operation
# 0x0004 - Much more info during I/O; will impact performance
# 0x0008 - Very verbose at all times; definitely a performance impact
# 0x0010 - Debug information with regard to discovery/configuration
# 0x0020 - Debug information with regard to iport
# 0x0040 - Debug information with regard to map
# 0x0080 - Report on SCSI underflow status
# 0x0100 - Report SCSI status for every command
# 0x0200 - PHY lock/unlock debug (very noisy)
# 0x0400 - Debug information with regard to device state
#
pmcs-debug-mask=0x71;
EOF
}
{
# replace old copyright with new one
HEADER="^#.* Copyright.*Sun Microsystems.*$"
# replace / by \/
then
fi
fi
# ddi-vhci-class: Add comment
# ddi-vhci-class: Add property
if [ $? != 0 ] ; then
# add the property
echo 'ddi-vhci-class="scsi_vhci";' >> $2
echo '' >> $2
fi
# mpxio-disable: Add comment
# pmcs-debug-mask: Add comment
}
if [ ! -f $dest ]; then
else
# upgrading solaris
fi
fi
exit 0