fpc.c revision 110e73f9b5ccaa10e26a8f79807001a5da72604e
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * CDDL HEADER START
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * The contents of this file are subject to the terms of the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Common Development and Distribution License (the "License").
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * You may not use this file except in compliance with the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * See the License for the specific language governing permissions
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * and limitations under the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * When distributing Covered Code, include this CDDL HEADER in each
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * If applicable, add the following below this CDDL HEADER, with the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * fields enclosed by brackets "[]" replaced with your own identifying
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * information: Portions Copyright [yyyy] [name of copyright owner]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * CDDL HEADER END
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Use is subject to license terms.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#pragma ident "%Z%%M% %I% %E% SMI"
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzstatic int fpc_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzstatic int fpc_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz "IO Chip Perf Counter %I%",
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * Since the driver saves no state between calls, we can fully detach
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * on suspend and fully attach on resume.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * An RFE might be to save event register states for restore.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * The result of not doing this is that the kstat reader (busstat)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * may quit upon resume, seeing that the events have changed out from
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz * underneath it (since the registers were powered off upon suspend).