[PATCH 5/7] ieee1275: block-size deblocker support method

2018-02-26 Thread Eric Snowberg
IEEE Std 1275-1994 Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices 3.8.3 deblocker support package Any package that uses the "deblocker" support package must define the following method, which the deblocker uses as a low-level interface to the device bl

[PATCH 6/7] sparc64: #blocks disk node method

2018-02-26 Thread Eric Snowberg
Return the number of blocks of storage associated with the device or instance. Where a "block" is a unit of storage consisting of the number of bytes returned by the package's "block-size" method. If the size cannot be determined, the #blocks method returns the maximum unsigned integer (which, beca

[PATCH 3/7] ieee1275: set-address bus specific method

2018-02-26 Thread Eric Snowberg
IEEE 1275-1994 Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices E.3.2.2 Bus-specific methods for bus nodes A package implementing the scsi-2 device type shall implement the following bus-specific method: set-address ( unit# target# -- ) Sets the SCSI

[PATCH 7/7] sparc64: #blocks64 disk node method

2018-02-26 Thread Eric Snowberg
Return the 64bit number of blocks of storage associated with the device or instance. Where a "block" is a unit of storage consisting of the number of bytes returned by the package's "block-size" method. If the size cannot be determined, or if the number of blocks exceeds the range return -1. Signe

[PATCH 0/7] Add additional IEEE1275 methods

2018-02-26 Thread Eric Snowberg
Add additional IEEE1275 methods. This is in preparation for a follow on patch that will make use of all of them. Eric Snowberg (7): ieee1275: decode-unit command for 4 addr cell devs ieee1275: encode-unit command for 4 addr cell devs ieee1275: set-address bus specific method ieee1275: no-

[PATCH 2/7] ieee1275: encode-unit command for 4 addr cell devs

2018-02-26 Thread Eric Snowberg
Convert physical address to text unit-string. Convert phys.lo ... phys-high, the numerical representation, to unit-string, the text string representation of a physical address within the address space defined by this device node. The number of cells in the list phys.lo ... phys.hi is determined by

[PATCH 4/7] ieee1275: no-data-command bus specific method

2018-02-26 Thread Eric Snowberg
IEEE 1275-1994 Standard for Boot (Initialization Configuration) Firmware: Core Requirements and Practices E.3.2.2 Bus-specific methods for bus nodes A package implementing the scsi-2 device type shall implement the following bus-specific method: no-data-command ( cmd-addr -- error? ) Executes a

[PATCH 1/7] ieee1275: decode-unit command for 4 addr cell devs

2018-02-26 Thread Eric Snowberg
decode-unit ( addr len -- phys.lo ... phys.hi ) Convert text unit-string to physical address. Convert unit-string, the text string representation, to phys.lo ... phys.hi, the numerical representation of a physical address within the address space defined by this device node. The number of cells i

Re: [PATCH 00/10] various cleanup

2018-02-26 Thread Leif Lindholm
On Fri, Feb 23, 2018 at 11:11:08PM +0100, Daniel Kiper wrote: > > > 9-10/10 Switches to use the arm/arm64 kernel header structs in the > > > "file" command". > > > > I am OK, excluding patch 9, with this patch series. If there are no > > objections I will apply patches 1-8 and 10 next week.