blob: fa39dc69374658c32e954a339bc875f222e45f11 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains system calls related to module and firmware loading,
#include <stddef.h>
#include <stdint.h>
#include <zircon/types.h>
#include "src/iwlwifi/platform/kernel.h"
#if defined(__cplusplus)
extern "C" {
#endif // defined(__cplusplus)
// Request loading of another driver module.
zx_status_t iwl_module_request(const char* name, ...);
// Request loading of a firmware binary, synchronously.
zx_status_t iwl_firmware_request(struct device* dev, const char* name, struct firmware* firmware);
// Request loading of a firmware binary, asynchronously.
zx_status_t iwl_firmware_request_nowait(struct device* dev, const char* name,
void (*cont)(struct firmware* firmware, void* context),
void* context);
// Free a loaded firmware binary.
zx_status_t iwl_firmware_release(struct firmware* firmware);
#if defined(__cplusplus)
} // extern "C"
#endif // defined(__cplusplus)