linux/drivers/net/wireless/ti/wlcore/debugfs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * This file is part of wl1271
 *
 * Copyright (C) 2009 Nokia Corporation
 *
 * Contact: Luciano Coelho <[email protected]>
 */

#ifndef __DEBUGFS_H__
#define __DEBUGFS_H__

#include "wlcore.h"

__printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count,
					loff_t *ppos, char *fmt, ...);

int wl1271_debugfs_init(struct wl1271 *wl);
void wl1271_debugfs_exit(struct wl1271 *wl);
void wl1271_debugfs_reset(struct wl1271 *wl);
void wl1271_debugfs_update_stats(struct wl1271 *wl);

#define DEBUGFS_FORMAT_BUFFER_SIZE

#define DEBUGFS_READONLY_FILE(name, fmt, value...)

#define DEBUGFS_ADD(name, parent)


#define DEBUGFS_ADD_PREFIX(prefix, name, parent)

#define DEBUGFS_FWSTATS_FILE(sub, name, fmt, struct_type)

#define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type)

#define DEBUGFS_FWSTATS_ADD(sub, name)


#endif /* WL1271_DEBUGFS_H */