2003-09-03 01:53:41 +00:00
|
|
|
/*
|
|
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
#ifndef KERNEL_BOOT_PARTITIONS_H
|
|
|
|
#define KERNEL_BOOT_PARTITIONS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <boot/vfs.h>
|
|
|
|
#include <disk_device_manager.h>
|
|
|
|
|
|
|
|
|
|
|
|
// DiskDeviceTypes we need/support in the boot loader
|
2003-09-09 02:12:06 +00:00
|
|
|
#define kPartitionTypeAmiga "Amiga RDB"
|
|
|
|
#define kPartitionTypeIntel "Intel"
|
2003-09-08 02:39:24 +00:00
|
|
|
#define kPartitionTypeIntelExtended "Intel Extended"
|
2003-09-09 02:12:06 +00:00
|
|
|
#define kPartitionTypeApple "Apple"
|
2003-09-03 01:53:41 +00:00
|
|
|
|
2003-09-09 02:12:06 +00:00
|
|
|
#define kPartitionTypeBFS "BFS Filesystem"
|
|
|
|
#define kPartitionTypeAmigaFFS "AmigaFFS Filesystem"
|
|
|
|
#define kPartitionTypeBFS "BFS Filesystem"
|
|
|
|
#define kPartitionTypeEXT2 "EXT2 Filesystem"
|
|
|
|
#define kPartitionTypeEXT3 "EXT3 Filesystem"
|
|
|
|
#define kPartitionTypeFAT12 "FAT12 Filesystem"
|
|
|
|
#define kPartitionTypeFAT32 "FAT32 Filesystem"
|
|
|
|
#define kPartitionTypeISO9660 "ISO9660 Filesystem"
|
|
|
|
#define kPartitionTypeReiser "Reiser Filesystem"
|
|
|
|
#define kPartitionTypeUDF "UDF Filesystem"
|
2003-09-08 02:39:24 +00:00
|
|
|
|
2003-09-09 02:12:06 +00:00
|
|
|
// structure definitions as used in the boot loader
|
2003-09-03 01:53:41 +00:00
|
|
|
struct partition_module_info;
|
|
|
|
extern partition_module_info gAmigaPartitionModule;
|
2003-09-08 02:39:24 +00:00
|
|
|
extern partition_module_info gIntelPartitionMapModule;
|
|
|
|
extern partition_module_info gIntelExtendedPartitionModule;
|
2003-09-03 01:53:41 +00:00
|
|
|
extern partition_module_info gApplePartitionModule;
|
|
|
|
|
2003-09-09 02:12:06 +00:00
|
|
|
// the file system module info is not a standard module info;
|
|
|
|
// their modules are specifically written for the boot loader,
|
|
|
|
// and hence, don't need to follow the standard module specs.
|
|
|
|
|
|
|
|
struct file_system_module_info {
|
|
|
|
const char *pretty_name;
|
|
|
|
status_t (*get_file_system)(Node *device, Directory **_root);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern file_system_module_info gBFSFileSystemModule;
|
|
|
|
|
2003-09-03 01:53:41 +00:00
|
|
|
#endif /* KERNEL_BOOT_PARTITIONS_H */
|