Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.17-rc7 25 lines 465 B view raw
1/* SPDX-License-Identifier: GPL-2.0-only 2 * Copyright (C) 2024 Marvell. 3 */ 4 5#ifndef __SOC_SILICON_H 6#define __SOC_SILICON_H 7 8#include <linux/types.h> 9#include <linux/pci.h> 10 11#if defined(CONFIG_ARM64) 12 13#define CN20K_CHIPID 0x20 14/* 15 * Silicon check for CN20K family 16 */ 17static inline bool is_cn20k(struct pci_dev *pdev) 18{ 19 return (pdev->subsystem_device & 0xFF) == CN20K_CHIPID; 20} 21#else 22#define is_cn20k(pdev) ((void)(pdev), 0) 23#endif 24 25#endif /* __SOC_SILICON_H */