/*
* 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.
*/
#include "iospc.h"
#include "rfios_acc.h"
#include "rfios_tables.h"
extern iospc_grp_t *rfios_leaf_grps[];
#define RF_REQ_MINOR_VER 0
NULL,
MODULE_NAME /* Passed in as a #define from Makefile */
};
iospc_grp_t **
rfios_bind_group(void)
{
int rval;
DDI_SUCCESS) {
IOSPC_DBG1("%s: Could not hsvc_register: %d\n",
MODULE_NAME, rval);
return (NULL);
}
return ((iospc_grp_t **)&rfios_leaf_grps);
}
void
rfios_unbind_group(void)
{
(void) hsvc_unregister(&rfios_hsvc);
}
int
{
int len;
DDI_SUCCESS) {
return (FAILURE);
}
return (SUCCESS);
}
int
{
IOSPC_DBG2("rfios_access_fini: iospc_p=%p ksinfo_p=%p\n",
return (SUCCESS);
}
int
{
if (op == IOSPC_REG_READ) {
IOSPC_DBG2("rfios_access_hv: READ handle=%p regid=%x "
return (FAILURE);
}
IOSPC_DBG2("rfios_access_hv: READ handle=%p regid=%x "
} else { /* IOSPC_REG_WRITE */
IOSPC_DBG2("rfios_access_hv: READ handle=%p regid=%x "
return (FAILURE);
}
IOSPC_DBG2("rfios_access_hv: WRITE handle=%p regid=%x "
}
return (SUCCESS);
}