/*
* 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 (c) 2013, Joyent, Inc. All rights reserved.
*/
#include <strings.h>
#include <devid.h>
#include <pthread.h>
#include <inttypes.h>
#include <fm/topo_mod.h>
#include <fm/topo_list.h>
#include <fm/libdiskstatus.h>
#include "disk.h"
#include "disk_drivers.h"
topo_instance_t, topo_instance_t, void *, void *);
static int
char *driver)
{
int err;
&sas_address)) != 0)
return (err);
sas_address, &child);
return (err);
}
return (-1);
}
/*ARGSUSED*/
static int
{
int err;
"only know how to enumerate %s components.\n", DISK);
return (-1);
}
/* set the parent fru */
return (-1);
}
return (-1);
}
/*
* For internal storage, first check to see if we need to
* request more detail from an HBA driver.
*/
return (err);
} else if (err != ETOPO_PROP_NOENT) {
return (-1);
}
/*
* For internal storage, get the path to the occupant from the
* binding group of the bay node
*/
return (-1);
}
/* locate and topo enumerate the disk with that path */
return (err);
}
/*ARGSUSED*/
int
{
/*
* Turn on module debugging output
*/
"initializing %s enumerator\n", DISK);
return (-1); /* mod errno already set */
}
"disk list");
return (-1);
}
"failed to locate disks");
return (-1);
}
"%s enumerator initialized\n", DISK);
return (0);
}
void
{
"%s enumerator uninitialized\n", DISK);
}