aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/include/devmap.h
Commit message (Collapse)AuthorAgeFilesLines
* Move arm's devmap to some generic place, so it can be usedRuslan Bukin2016-04-261-91/+0
| | | | | | | | | | | | by other architectures. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D6091 Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Notes: svn path=/head/; revision=298627
* Remove pd_prot and pd_cache members from struct arm_devmap_entry.Svatopluk Kraus2016-02-171-2/+0
| | | | | | | | The struct is used for definition of static device mappings which should always have same protection and attributes. Notes: svn path=/head/; revision=295694
* ARM: Remove trailing whitespace from sys/arm/includeMichal Meloun2015-11-101-1/+1
| | | | | | | | | No functional changes. Approved by: kib (mentor) Notes: svn path=/head/; revision=290648
* Fix a comment s/initarm_/platform_/Andrew Turner2014-05-171-1/+1
| | | | Notes: svn path=/head/; revision=266303
* Add a prototype for the new arm_devmap_print_table(). This should haveIan Lepore2014-01-091-0/+3
| | | | | | | been part of r260490. Notes: svn path=/head/; revision=260493
* Style and comment tweaks, no functional changes.Ian Lepore2013-11-051-7/+7
| | | | Notes: svn path=/head/; revision=257676
* Add new helper routines for arm static device mapping. The new codeIan Lepore2013-11-051-3/+20
| | | | | | | | | | | | | | | | | | allocates kva space from the top down for the device mappings and builds entries in an internal table which is automatically used later by arm_devmap_bootstrap(). The platform code just calls the new arm_devmap_add_entry() function as many times as it needs to (up to 32 entries allowed; most platforms use 2 or 3 at most). There is also a new arm_devmap_lastaddr() function that returns the lowest kva address allocated; this can be used to implement initarm_lastaddr() which is used to initialize vm_max_kernel_address. The new code is based on a similar concept developed for the imx family SoCs recently. They will soon be converted to use this new common code. Notes: svn path=/head/; revision=257673
* Move remaining code and data related to static device mapping into theIan Lepore2013-11-041-0/+27
| | | | | | | | | | new devmap.[ch] files. Emphasize the MD nature of these things by using the prefix arm_devmap_ on the function and type names (already a few of these things found their way into MI code, hopefully it will be harder to do by accident in the future). Notes: svn path=/head/; revision=257660
* Begin reducing code duplication in arm pmap.c and pmap-v6.c by factoringIan Lepore2013-11-041-0/+46
out common code related to mapping device memory into a new devmap.c file. Remove the growing duplication of code that used pmap_devmap_find_pa() and then did some math with the returned results to generate a virtual address, and likewise in reverse to get a physical address. Now there are a pair of functions, arm_devmap_vtop() and arm_devmap_ptov(), to do that. The bus_space_map() implementations are rewritten in terms of these. Notes: svn path=/head/; revision=257648