cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

ionic_debugfs.h (1401B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/* Copyright(c) 2017 - 2019 Pensando Systems, Inc */
      3
      4#ifndef _IONIC_DEBUGFS_H_
      5#define _IONIC_DEBUGFS_H_
      6
      7#include <linux/debugfs.h>
      8
      9#ifdef CONFIG_DEBUG_FS
     10
     11void ionic_debugfs_create(void);
     12void ionic_debugfs_destroy(void);
     13void ionic_debugfs_add_dev(struct ionic *ionic);
     14void ionic_debugfs_del_dev(struct ionic *ionic);
     15void ionic_debugfs_add_ident(struct ionic *ionic);
     16void ionic_debugfs_add_sizes(struct ionic *ionic);
     17void ionic_debugfs_add_lif(struct ionic_lif *lif);
     18void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq);
     19void ionic_debugfs_del_lif(struct ionic_lif *lif);
     20void ionic_debugfs_del_qcq(struct ionic_qcq *qcq);
     21#else
     22static inline void ionic_debugfs_create(void) { }
     23static inline void ionic_debugfs_destroy(void) { }
     24static inline void ionic_debugfs_add_dev(struct ionic *ionic) { }
     25static inline void ionic_debugfs_del_dev(struct ionic *ionic) { }
     26static inline void ionic_debugfs_add_ident(struct ionic *ionic) { }
     27static inline void ionic_debugfs_add_sizes(struct ionic *ionic) { }
     28static inline void ionic_debugfs_add_lif(struct ionic_lif *lif) { }
     29static inline void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) { }
     30static inline void ionic_debugfs_del_lif(struct ionic_lif *lif) { }
     31static inline void ionic_debugfs_del_qcq(struct ionic_qcq *qcq) { }
     32#endif
     33
     34#endif /* _IONIC_DEBUGFS_H_ */