/* * 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.
*/
/* 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; unsignedint size;
rh_info_t *rh;
spinlock_t lock;
};
externstruct bcom_sram *bcom_sram;
/* Public API */ externint bcom_sram_init(struct device_node *sram_node, char *owner); externvoid bcom_sram_cleanup(void);
externvoid* bcom_sram_alloc(int size, int align, phys_addr_t *phys); externvoid bcom_sram_free(void *ptr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.