brintos

brintos / linux-shallow public Read only

0
0
Text · 771 B · 9d11014 Raw
29 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/* SPDX-FileCopyrightText: Copyright Red Hat */3 4#ifndef _ICE_ADAPTER_H_5#define _ICE_ADAPTER_H_6 7#include <linux/spinlock_types.h>8#include <linux/refcount_types.h>9 10struct pci_dev;11 12/**13 * struct ice_adapter - PCI adapter resources shared across PFs14 * @ptp_gltsyn_time_lock: Spinlock protecting access to the GLTSYN_TIME15 *                        register of the PTP clock.16 * @refcount: Reference count. struct ice_pf objects hold the references.17 */18struct ice_adapter {19	/* For access to the GLTSYN_TIME register */20	spinlock_t ptp_gltsyn_time_lock;21 22	refcount_t refcount;23};24 25struct ice_adapter *ice_adapter_get(const struct pci_dev *pdev);26void ice_adapter_put(const struct pci_dev *pdev);27 28#endif /* _ICE_ADAPTER_H */29