nvram2env: clean up empty lines in .c and .h files
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
[nvram2env] split implementation into generic & MIPS-based codeSplit implementation of nvram2env to generic (MI) & MIPS-based code: - removed includes like "*siba*", because they are unused - ad
[nvram2env] split implementation into generic & MIPS-based codeSplit implementation of nvram2env to generic (MI) & MIPS-based code: - removed includes like "*siba*", because they are unused - added nvram2env_mips.c file with MIPS-specific code, code moved from nvram2env.c - added header file to shared defines/structures/function prototypes between MI and MIPS codeAlso this fix allows to implement own nvram2env drivers.Reviewed by: ray, adrian (mentor)Approved by: adrian (mentor)Differential Revision: https://reviews.freebsd.org/D6513
[nvram2env] fix nvram2env to scan all of memory, not 1/4thThe variable "size" stores number of words (4bytes). But the loop overmemory uses size as number of bytes to scan memory. As result it fet
[nvram2env] fix nvram2env to scan all of memory, not 1/4thThe variable "size" stores number of words (4bytes). But the loop overmemory uses size as number of bytes to scan memory. As result it fetchesonly 1/4th of memory.This patch solves this problem and nvram2env fetches all NVRAM variables.Test plan:Pre-requisites: any MIPS board with ASCII-based NVRAM mapped into memory* Add "device nvram2env" into kernel configuration* Specify hints: base is mandatory (according to nvram2env(4))hint.nvram.0.base=0x1c7f8000 (it's valid address for Asus RT-N53 withflags = 0x4)* Build & load kernel with bootverboseActual result: only part of nvram variables are foundExpected result: all variables are foundSubmitted by: Michael Zhilin <[email protected]>Differential Revision: https://reviews.freebsd.org/D6466
Fix nvram2env after bus_space_fdt removal.The generic bus space does the mapping now, no need to pre-translatephys addresses to KSEG1 anymore.Submitted by: Hiroki Mori
Convert remaining {g,s}etenv->kern_{g,s}etenvleft over from r273174.Reported by: bz
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arraysReviewed by: cognetApproved by: cognet
Import nvram2env, a device driver which imports various NVRAM-styleenvironments into the kernel environment.The eventual aim is to replace these with specific drivers forthe various bootloaders (
Import nvram2env, a device driver which imports various NVRAM-styleenvironments into the kernel environment.The eventual aim is to replace these with specific drivers forthe various bootloaders (redboot, uboot, etc.) This however willwork for the time being until it can be properly addressed.Submitted by: Aleksandr Rybalko <[email protected]>