linux/drivers/bus/stm32_firewall.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
 */

#include <linux/bitfield.h>
#include <linux/bits.h>
#include <linux/bus/stm32_firewall_device.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#include <linux/slab.h>

#include "stm32_firewall.h"

/* Corresponds to STM32_FIREWALL_MAX_EXTRA_ARGS + firewall ID */
#define STM32_FIREWALL_MAX_ARGS

static LIST_HEAD(firewall_controller_list);
static DEFINE_MUTEX(firewall_controller_list_lock);

/* Firewall device API */

int stm32_firewall_get_firewall(struct device_node *np, struct stm32_firewall *firewall,
				unsigned int nb_firewall)
{}
EXPORT_SYMBOL_GPL();

int stm32_firewall_grant_access(struct stm32_firewall *firewall)
{}
EXPORT_SYMBOL_GPL();

int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id)
{}
EXPORT_SYMBOL_GPL();

void stm32_firewall_release_access(struct stm32_firewall *firewall)
{}
EXPORT_SYMBOL_GPL();

void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id)
{}
EXPORT_SYMBOL_GPL();

/* Firewall controller API */

int stm32_firewall_controller_register(struct stm32_firewall_controller *firewall_controller)
{}
EXPORT_SYMBOL_GPL();

void stm32_firewall_controller_unregister(struct stm32_firewall_controller *firewall_controller)
{}
EXPORT_SYMBOL_GPL();

int stm32_firewall_populate_bus(struct stm32_firewall_controller *firewall_controller)
{}
EXPORT_SYMBOL_GPL();