linux/drivers/staging/media/atomisp/pci/atomisp_drvfs.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Support for atomisp driver sysfs interface
 *
 * Copyright (c) 2014 Intel Corporation. All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version
 * 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *
 */

#include <linux/device.h>
#include <linux/err.h>
#include <linux/kernel.h>

#include "atomisp_compat.h"
#include "atomisp_internal.h"
#include "atomisp_ioctl.h"
#include "atomisp_drvfs.h"
#include "hmm/hmm.h"
#include "ia_css_debug.h"

#define OPTION_BIN_LIST
#define OPTION_BIN_RUN
#define OPTION_VALID

/*
 * dbgopt: iunit debug option:
 *        bit 0: binary list
 *        bit 1: running binary
 *        bit 2: memory statistic
 */
static unsigned int dbgopt =;

static inline int iunit_dump_dbgopt(struct atomisp_device *isp,
				    unsigned int opt)
{}

static ssize_t dbglvl_show(struct device *dev, struct device_attribute *attr,
			   char *buf)
{}

static ssize_t dbglvl_store(struct device *dev, struct device_attribute *attr,
			    const char *buf, size_t size)
{}
static DEVICE_ATTR_RW(dbglvl);

static ssize_t dbgfun_show(struct device *dev, struct device_attribute *attr,
			   char *buf)
{}

static ssize_t dbgfun_store(struct device *dev, struct device_attribute *attr,
			    const char *buf, size_t size)
{}
static DEVICE_ATTR_RW(dbgfun);

static ssize_t dbgopt_show(struct device *dev, struct device_attribute *attr,
			   char *buf)
{}

static ssize_t dbgopt_store(struct device *dev, struct device_attribute *attr,
			    const char *buf, size_t size)
{}
static DEVICE_ATTR_RW(dbgopt);

static struct attribute *dbg_attrs[] =;

static const struct attribute_group dbg_attr_group =;

const struct attribute_group *dbg_attr_groups[] =;