Files
haiku-beta6/src/kernel/boot/platform/openfirmware/devices.cpp
T

31 lines
639 B
C++
Raw Normal View History

/*
** 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;
}