SPDX: Consider code from Carnegie-Mellon University.Interesting cases, most likely from CMU Mach sources.
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 ...
Use FreeBSD-bit-checking-styleThis appease gcc 4.9 issuing warnings about parenthesesDifferential Revision: https://reviews.freebsd.org/D933Reviewed by: marius
Remove clause 3 from Izumi Tsutsui's licenses.Obtained from: NetBSD
Style changesObtained from: NetBSD (mc146818reg.h)
Export mc146818_def_{read,write}() so the front-end can make useof them if needed.
Add macros for the individual divisor bits as some MC146818A-compatiblechips also use them for different purposes.
After some input from bde@ and rereading the datasheet use a MTX_SPINmutex instead of a MTX_DEF one in order to defer preemption whilereading the date and time registers. If we don't manage to read
After some input from bde@ and rereading the datasheet use a MTX_SPINmutex instead of a MTX_DEF one in order to defer preemption whilereading the date and time registers. If we don't manage to read themwithin the time slot where we are guaranteed that no updates occur wemight actually read them during an update in which case the output isundefined.
o mc146818(4): - Add locking. - Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need to check wheter year < POSIX_BASE_YEAR. - Add some comments about mapping the day of wee
o mc146818(4): - Add locking. - Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need to check wheter year < POSIX_BASE_YEAR. - Add some comments about mapping the day of week from the range the generic clock code uses to the range the chip uses and which I meant to add in the initial version. - Minor clean-up, use __func__ instead of hardcoded function names in error strings.o in the rtc(4) front-end additionally: - Don't leak resources in case mc146818_attach() fails. - Account for ebus(4) defaulting to SYS_RES_MEMORY for the memory resources since ebus.c rev. 1.22.
Start each of the license/copyright comments with /*-, minor shuffle of lines
Add a driver back end for MC146818 and compatible clocks based on therespective NetBSD driver for use with the genclock interface.It's first use will be on sparc64 but it was also tested on alpha w
Add a driver back end for MC146818 and compatible clocks based on therespective NetBSD driver for use with the genclock interface.It's first use will be on sparc64 but it was also tested on alpha witha preliminary patch to switch alpha to use the genclock code togetherwith this driver instead of the respective code in alpha/alpha/clock.cand the rather MD mcclock(4). Using it on i386 and amd64 won't be thathard but some changes/extensions to improve the genclock code in generalshould be done first, e.g. add locking and make it easier to access theNVRAM usually coupled with RTCs.
Add missing $FreeBSD$
Major changes to the generic device framework for FreeBSD/alpha:* Eliminate bus_t and make it possible for all devices to have attached children.* Support dynamically extendable interfaces for
Major changes to the generic device framework for FreeBSD/alpha:* Eliminate bus_t and make it possible for all devices to have attached children.* Support dynamically extendable interfaces for drivers to replace both the function pointers in driver_t and bus_ops_t (which has been removed entirely. Two system defined interfaces have been defined, 'device' which is mandatory for all devices and 'bus' which is recommended for all devices which support attached children.* In addition, the alpha port defines two simple interfaces 'clock' for attaching various real time clocks to the system and 'mcclock' for the many different variations of mc146818 clocks which can be attached to different alpha platforms. This eliminates two more function pointer tables in favour of the generic method dispatch system provided by the device framework.Future device interfaces may include:* cdev and bdev interfaces for devfs to use in replacement for specfs and the fixed interfaces bdevsw and cdevsw.* scsi interface to replace struct scsi_adapter (not sure how this works in CAM but I imagine there is something similar there).* various tailored interfaces for different bus types such as pci, isa, pccard etc.
Add initial support for the FreeBSD/alpha kernel. This is very much awork in progress and has never booted a real machine. Initialdevelopment and testing was done using SimOS (seehttp://simos.st
Add initial support for the FreeBSD/alpha kernel. This is very much awork in progress and has never booted a real machine. Initialdevelopment and testing was done using SimOS (seehttp://simos.stanford.edu for details). On the SimOS simulator, thisport successfully reaches single-user mode and has been tested withloads as high as one copy of /bin/ls :-).Obtained from: partly from NetBSD/alpha