* The boot loader now adds all block devices in case the BIOS doesn't give enough
information to identify the boot volume - if we want to be able to map all BIOS drive IDs to the disks in the system, we need to do this always, though. * Forgot to commit the updated disk_identifier.h in the last commit... * Removed the unused dumpBlock() function from devices.cpp. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16892 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004, Axel Dörfler, [email protected].
|
||||
* Copyright 2004-2006, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef KERNEL_BOOT_DISK_IDENTIFIER_H
|
||||
@@ -25,6 +25,8 @@ enum device_types {
|
||||
FIBRE_DEVICE,
|
||||
};
|
||||
|
||||
#define NUM_DISK_CHECK_SUMS 5
|
||||
|
||||
typedef struct disk_identifier {
|
||||
int32 bus_type;
|
||||
int32 device_type;
|
||||
@@ -64,7 +66,7 @@ typedef struct disk_identifier {
|
||||
struct {
|
||||
off_t offset;
|
||||
uint32 sum;
|
||||
} check_sums[5];
|
||||
} check_sums[NUM_DISK_CHECK_SUMS];
|
||||
} unknown;
|
||||
} device;
|
||||
} disk_identifier;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2005, Axel Dörfler, [email protected].
|
||||
* Copyright 2003-2006, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef KERNEL_BOOT_PLATFORM_H
|
||||
@@ -54,7 +54,7 @@ namespace boot {
|
||||
class Partition;
|
||||
}
|
||||
|
||||
extern status_t platform_get_boot_device(struct stage2_args *args, Node **_device);
|
||||
extern status_t platform_add_boot_device(struct stage2_args *args, NodeList *devicesList);
|
||||
extern status_t platform_add_block_devices(struct stage2_args *args, NodeList *devicesList);
|
||||
extern status_t platform_get_boot_partition(struct stage2_args *args, Node *bootDevice,
|
||||
NodeList *partitions, boot::Partition **_partition);
|
||||
|
||||
Reference in New Issue
Block a user