The ionic device has a small set of PCI registers, including a device control and data space, and a large set of message commands. Also adds new DEVLINK_INFO_VERSION_GENERIC tags for ASIC_ID, ASIC_REV, and FW. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
760 B
C
25 lines
760 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2017 - 2019 Pensando Systems, Inc */
|
|
|
|
#ifndef _IONIC_DEBUGFS_H_
|
|
#define _IONIC_DEBUGFS_H_
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
void ionic_debugfs_create(void);
|
|
void ionic_debugfs_destroy(void);
|
|
void ionic_debugfs_add_dev(struct ionic *ionic);
|
|
void ionic_debugfs_del_dev(struct ionic *ionic);
|
|
void ionic_debugfs_add_ident(struct ionic *ionic);
|
|
#else
|
|
static inline void ionic_debugfs_create(void) { }
|
|
static inline void ionic_debugfs_destroy(void) { }
|
|
static inline void ionic_debugfs_add_dev(struct ionic *ionic) { }
|
|
static inline void ionic_debugfs_del_dev(struct ionic *ionic) { }
|
|
static inline void ionic_debugfs_add_ident(struct ionic *ionic) { }
|
|
#endif
|
|
|
|
#endif /* _IONIC_DEBUGFS_H_ */
|