VSF Documented
driver.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
19
20# include "../__device.h"
21
22#else
23
24# ifndef __HAL_DRIVER_ALLWINNER_F1C100S_H__
25# define __HAL_DRIVER_ALLWINNER_F1C100S_H__
26
27/*============================ INCLUDES ======================================*/
28# include "hal/vsf_hal_cfg.h"
29# include "./device.h"
30# include "../common/dram/dram.h"
31# include "../common/debug_uart/debug_uart.h"
32# include "../common/uart/uart.h"
33# include "../common/fb/fb.h"
34# include "../common/usb/usb.h"
35# include "../common/intc/intc.h"
36# include "../common/rtp/rtp.h"
37# include "./interrupt_swi.h"
38/*============================ MACROS ========================================*/
39/*============================ MACROFIED FUNCTIONS ===========================*/
40/*============================ TYPES =========================================*/
41/*============================ GLOBAL VARIABLES ==============================*/
42/*============================ LOCAL VARIABLES ===============================*/
43/*============================ PROTOTYPES ====================================*/
44
45#if VSF_USE_HEAP == ENABLED
46# if defined(VSF_HAL_CFG_COHERENT_START) && defined(VSF_HAL_CFG_COHERENT_SIZE)
47extern void * vsf_dma_alloc_coherent(uint_fast32_t size);
48extern void vsf_dma_free_coherent(void *buffer);
49# endif
50
52extern void vsf_dma_free_noncoherent(void *buffer);
53#endif
54
55# endif
56
57#endif
58/* EOF */
void * vsf_dma_alloc_noncoherent(uint_fast32_t size)
Definition driver.c:89
void vsf_dma_free_noncoherent(void *buffer)
Definition driver.c:94
unsigned int uint_fast32_t
Definition stdint.h:27
uint32_t size
Definition vsf_memfs.h:50