blob: 78c00380fabe62f3005a1124d1637b9c739693c6 [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 PCI bus code that operates as a compatibility layer between the Linux and
// Fuchsia PCI bus driver models.
#include "kernel.h"
#if defined(__cplusplus)
extern "C" {
#endif // defined(__cplusplus)
static inline void iwl_pci_set_drvdata(struct iwl_pci_dev* dev, struct iwl_trans* drvdata) {
dev->drvdata = drvdata;
static inline struct iwl_trans* iwl_pci_get_drvdata(struct iwl_pci_dev* dev) {
return dev->drvdata;
#if defined(__cplusplus)
} // extern "C"
#endif // defined(__cplusplus)