Path: blob/main/sys/contrib/ncsw/Peripherals/FM/SP/fm_sp.h
48526 views
/*1* Copyright 2008-2012 Freescale Semiconductor Inc.2*3* Redistribution and use in source and binary forms, with or without4* modification, are permitted provided that the following conditions are met:5* * Redistributions of source code must retain the above copyright6* notice, this list of conditions and the following disclaimer.7* * Redistributions in binary form must reproduce the above copyright8* notice, this list of conditions and the following disclaimer in the9* documentation and/or other materials provided with the distribution.10* * Neither the name of Freescale Semiconductor nor the11* names of its contributors may be used to endorse or promote products12* derived from this software without specific prior written permission.13*14*15* ALTERNATIVELY, this software may be distributed under the terms of the16* GNU General Public License ("GPL") as published by the Free Software17* Foundation, either version 2 of that License or (at your option) any18* later version.19*20* THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY21* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED22* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE23* DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY24* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES25* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;26* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND27* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT28* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS29* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.30*/313233/******************************************************************************34@File fm_sp.h3536@Description FM SP ...37*//***************************************************************************/38#ifndef __FM_SP_H39#define __FM_SP_H4041#include "std_ext.h"42#include "error_ext.h"43#include "list_ext.h"4445#include "fm_sp_common.h"46#include "fm_common.h"474849#define __ERR_MODULE__ MODULE_FM_SP5051typedef struct {52t_FmBufferPrefixContent bufferPrefixContent;53e_FmDmaSwapOption dmaSwapData;54e_FmDmaCacheOption dmaIntContextCacheAttr;55e_FmDmaCacheOption dmaHeaderCacheAttr;56e_FmDmaCacheOption dmaScatterGatherCacheAttr;57bool dmaWriteOptimize;58uint16_t liodnOffset;59bool noScatherGather;60t_FmBufPoolDepletion *p_BufPoolDepletion;61t_FmBackupBmPools *p_BackupBmPools;62t_FmExtPools extBufPools;63} t_FmVspEntryDriverParams;6465typedef struct {66bool valid;67volatile bool lock;68uint8_t pointedOwners;69uint16_t absoluteSpId;70uint8_t internalBufferOffset;71t_FmSpBufMargins bufMargins;72t_FmSpIntContextDataCopy intContext;73t_FmSpBufferOffsets bufferOffsets;74t_Handle h_Fm;75e_FmPortType portType; /**< Port type */76uint8_t portId; /**< Port Id - relative to type */77uint8_t relativeProfileId;78struct fm_pcd_storage_profile_regs *p_FmSpRegsBase;79t_FmExtPools extBufPools;80t_FmVspEntryDriverParams *p_FmVspEntryDriverParams;81} t_FmVspEntry;828384#endif /* __FM_SP_H */858687