Changeset View
Changeset View
Standalone View
Standalone View
stand/ofw/libofw/libofw.h
Show All 21 Lines | |||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include "openfirm.h" | #include "openfirm.h" | ||||
/* Note: Must match the 'struct devdesc' in bootstrap.h */ | |||||
struct ofw_devdesc { | struct ofw_devdesc { | ||||
struct devsw *d_dev; | struct devdesc dd; | ||||
int d_type; | |||||
int d_unit; | |||||
ihandle_t d_handle; | |||||
union { | union { | ||||
struct { | |||||
ihandle_t d_handle; | |||||
char d_path[256]; | char d_path[256]; | ||||
}; | |||||
struct { | struct { | ||||
uint64_t pool_guid; | uint64_t pool_guid; | ||||
uint64_t root_guid; | uint64_t root_guid; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
extern int ofw_getdev(void **vdev, const char *devspec, const char **path); | extern int ofw_getdev(void **vdev, const char *devspec, const char **path); | ||||
Show All 39 Lines |