59 DBGC ( sandev->
drive,
"SAN %#02x could not register: %s\n",
int acpi_install(int(*install)(struct acpi_header *acpi))
Install ACPI tables.
struct arbelprm_rc_send_wqe rc
static int dummy_san_describe(void)
Describe dummy SAN device.
static int dummy_install(struct acpi_header *acpi)
Install ACPI table.
static int dummy_san_hook(unsigned int drive, struct uri **uris, unsigned int count, unsigned int flags)
Hook dummy SAN device.
static int dummy_san_boot(unsigned int drive __unused, struct san_boot_config *config __unused)
Boot from dummy SAN device.
static void dummy_san_unhook(unsigned int drive)
Unhook dummy SAN device.
static EFI_ACPI_TABLE_PROTOCOL * acpi
ACPI table protocol protocol.
#define __unused
Declare a variable or data structure as unused.
uint8_t drive
Drive number.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define EOPNOTSUPP
Operation not supported on socket.
#define ENOMEM
Not enough space.
#define le32_to_cpu(value)
static const char * acpi_name(uint32_t signature)
Transcribe ACPI table signature (for debugging)
static void sandev_put(struct san_device *sandev)
Drop reference to SAN device.
void san_unhook(unsigned int drive)
Unhook SAN device.
int san_describe(void)
Describe SAN devices for SAN-booted operating system.
int san_hook(unsigned int drive, struct uri **uris, unsigned int count, unsigned int flags)
Hook SAN device.
int san_boot(unsigned int drive, struct san_boot_config *config)
Attempt to boot from a SAN device.
#define PROVIDE_SANBOOT(_subsys, _api_func, _func)
Provide a sanboot API implementation.
int register_sandev(struct san_device *sandev, unsigned int drive, unsigned int flags)
Register SAN device.
void unregister_sandev(struct san_device *sandev)
Unregister SAN device.
struct san_device * alloc_sandev(struct uri **uris, unsigned int count, size_t priv_size)
Allocate SAN device.
struct san_device * sandev_find(unsigned int drive)
Find SAN device by drive number.
char * strerror(int errno)
Retrieve string representation of error number.
SAN boot configuration parameters.
unsigned int drive
Drive number.
A Uniform Resource Identifier.