Files
haiku-beta6/src/kernel/boot/platform/openfirmware/devices.cpp
T
Axel Dörfler 8abaaaf7e5 OpenFirmware bindings for the stage2 boot loader.
Not yet complete.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 02:03:28 +00:00

31 lines
639 B
C++

/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <boot/platform.h>
#include <boot/vfs.h>
#include <boot/stdio.h>
#include <util/kernel_cpp.h>
#include "Handle.h"
#include "openfirmware.h"
status_t
platform_get_boot_devices(stage2_args *args, list *devicesList)
{
int handle;
if ((handle = of_finddevice("ide0")) != OF_FAILED) {
Handle *device = new Handle(handle, false);
printf("Found IDE device, handle = %d.\n", handle);
list_add_item(devicesList, device);
}
puts("platform_get_boot_devices() end.");
return B_OK;
}