/* Return value: true if resource can be added to midlayer, false(0) otherwise  */
static int pmcraid_expose_resource(struct pmcraid_config_table_entry *cfgte)
/* Return value: true if resource can be added to midlayer, false(0) otherwise  */
static int pmcraid_expose_resource(struct pmcraid_config_table_entry *cfgte)
{
	int retval = 0;
	if (cfgte->resource_type == RES_TYPE_VSET)
		retval = ((cfgte->unique_flags1 & 0x80) == 0);
	else if (cfgte->resource_type == RES_TYPE_GSCSI)
		retval = (RES_BUS(cfgte->resource_address) !=
				PMCRAID_VIRTUAL_ENCL_BUS_ID);
	return retval;
}