blob: ef51dff9bf5cff5244b56835acf903d5344378df [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.
#ifndef SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_INTEL_IWLWIFI_PLATFORM_MODULE_H_
#define SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_INTEL_IWLWIFI_PLATFORM_MODULE_H_
// This file contains system calls related to module and firmware loading,
#include <stddef.h>
#include <stdint.h>
#include <zircon/types.h>
#include "third_party/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)
#endif // SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_INTEL_IWLWIFI_PLATFORM_MODULE_H_