[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.63.1.el8_10.x86_64
/
include
/
linux
/
fsl
/
bestcomm
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ata.h
787 B
SET
[ EDIT ]
|
[ DEL ]
📄 bestcomm.h
5,696 B
SET
[ EDIT ]
|
[ DEL ]
📄 bestcomm_priv.h
10,179 B
SET
[ EDIT ]
|
[ DEL ]
📄 fec.h
1,901 B
SET
[ EDIT ]
|
[ DEL ]
📄 gen_bd.h
1,322 B
SET
[ EDIT ]
|
[ DEL ]
📄 sram.h
1,279 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: sram.h
/* * Handling of a sram zone for bestcomm * * * Copyright (C) 2007 Sylvain Munaut <tnt@246tNt.com> * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any * kind, whether express or implied. */ #ifndef __BESTCOMM_SRAM_H__ #define __BESTCOMM_SRAM_H__ #include <asm/rheap.h> #include <asm/mmu.h> #include <linux/spinlock.h> /* Structure used internally */ /* The internals are here for the inline functions * sake, certainly not for the user to mess with ! */ struct bcom_sram { phys_addr_t base_phys; void *base_virt; unsigned int size; rh_info_t *rh; spinlock_t lock; }; extern struct bcom_sram *bcom_sram; /* Public API */ extern int bcom_sram_init(struct device_node *sram_node, char *owner); extern void bcom_sram_cleanup(void); extern void* bcom_sram_alloc(int size, int align, phys_addr_t *phys); extern void bcom_sram_free(void *ptr); static inline phys_addr_t bcom_sram_va2pa(void *va) { return bcom_sram->base_phys + (unsigned long)(va - bcom_sram->base_virt); } static inline void *bcom_sram_pa2va(phys_addr_t pa) { return bcom_sram->base_virt + (unsigned long)(pa - bcom_sram->base_phys); } #endif /* __BESTCOMM_SRAM_H__ */