Implementation of the preboot device type. More...
#include "skinkit.h"
#include "hqmemcpy.h"
#include "swdevice.h"
#include "skindevs.h"
#include "kitdevs.h"
#include "mem.h"
#include "file.h"
#include "paths.h"
Functions | |
static HqBool | platform_ps_copy (const uint8 *platfile, uint8 **psfile, size_t *pslen) |
Variables | |
static DEVICEPARAM | preboot_device_params [4] |
Implementation of the preboot device type.
This device is responsible for informing the core which devices must be mounted and configured before the RIP can boot. It is primarily intended to prepare the %os% device.
The protocol for this device type requires that it will only ever be called through the DEVICETYPE::device_init(), DEVICETYPE::start_param(), DEVICETYPE::get_param(), and DEVICETYPE::device_dismount() methods.
Convert a platform filename to PS form, allocate memory for it and copy
|
static |
The number preboot device params are determined by how the SW folder is mounted. This array must be large enough to contain the largest number of devices used.