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 ...
Move Open Firmware device root on PowerPC, ARM, and MIPS systems toa sub-node of nexus (ofwbus) rather than direct attach under nexus. Thisfixes FDT on x86 and will make coexistence with ACPI on AR
Move Open Firmware device root on PowerPC, ARM, and MIPS systems toa sub-node of nexus (ofwbus) rather than direct attach under nexus. Thisfixes FDT on x86 and will make coexistence with ACPI on ARM systems easier.SPARC is unchanged.Reviewed by: imp, ian
"nvram,flash" may not be the first in the compatible list property of thenvram ofw node, so check all strings in the list.Approved by: nwhitehorn (mentor)MFC after: 3 days
Add support for the Sharp/Micron flash chips to powermac_mvram(4).Tested on PowerMac G4 AGP.Reviewed by: nwhitehorn
Use si_drv1 instead of dev2unit() in powermac_nvram.Reviewed by: nwhitehorn
Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge modeprovided, for example, on the PowerPC 970 (G5), as well as on related CPUslike the POWER3 and POWER4.This also adds support
Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge modeprovided, for example, on the PowerPC 970 (G5), as well as on related CPUslike the POWER3 and POWER4.This also adds support for various built-in hardware found on Apple G5hardware (e.g. the IBM CPC925 northbridge).Reviewed by: grehan
Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. Thissimplifies certain device attachments (Kauai ATA, for instance), and makespossible others on new hardware.On G5 systems
Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. Thissimplifies certain device attachments (Kauai ATA, for instance), and makespossible others on new hardware.On G5 systems, there are several otherwise standard PCI devices(Serverworks SATA) that will not allow their interrupt properties to bewritten, so this information must be supplied directly from Open Firmware.Obtained from: sparc64
Replace all calls to minor() with dev2unit().After I removed all the unit2minor()/minor2unit() calls from the kernelyesterday, I realised calling minor() everywhere is quite confusing.Character d
Replace all calls to minor() with dev2unit().After I removed all the unit2minor()/minor2unit() calls from the kernelyesterday, I realised calling minor() everywhere is quite confusing.Character devices now only have the ability to store a unit number, nota minor number. Remove the confusion by using dev2unit() everywhere.This commit could also be considered as a bug fix. A lot of drivers callminor(), while they should actually be calling dev2unit(). In -CURRENTthis isn't a problem, but it turns out we never had any problem reportsrelated to that issue in the past. I suspect not many people connectmore than 256 pieces of the same hardware.Reviewed by: kib
Redefine bus_space_tag_t on PowerPC from a 32-bit integral toa pointer to struct bus_space. The structure contains functionpointers that do the actual bus space access.The reason for this change
Redefine bus_space_tag_t on PowerPC from a 32-bit integral toa pointer to struct bus_space. The structure contains functionpointers that do the actual bus space access.The reason for this change is that previously all bus spaceaccesses were little endian (i.e. had an explicit byte-swapfor multi-byte accesses), because all busses on Macs are littleendian.The upcoming support for Book E, and in particular the E500core, requires support for big-endian busses because allembedded peripherals are in the native byte-order.With this change, there's no distinction between I/O portspace and memory mapped I/O. PowerPC doesn't have I/O portspace. Busses assign tags based on the byte-order only.For that purpose, two global structures exist (bs_be_tag andbs_le_tag), of which the address can be taken to get a validtag.Obtained from: Juniper, Semihalf
Add device to access and modify Open Firmware NVRAM settings inPowerPC-based Apple's machines and small utility to do it fromuserland modelled after the similar utility in Darwin/OSX.Only tested
Add device to access and modify Open Firmware NVRAM settings inPowerPC-based Apple's machines and small utility to do it fromuserland modelled after the similar utility in Darwin/OSX.Only tested on 1.25GHz G4 Mac Mini.MFC after: 1 month