summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/maciovar.h
Commit message (Collapse)AuthorAgeFilesLines
* Take into account the size of the interrupt cell. It's determinedmarcel2008-04-261-1/+1
| | | | | | | | | | | by the parent for interrupt resources. This corrects parsing of the interrupts property. With parsing of the property fixed, add all interrupts to the resource list. Bump the max. number of interrupts from 5 to 6 as scc(4) attached to macio(4) has 6 interrupts (3 per channel). Submitted by: Nathan Whitehorn <nathanw@uchicago.edu>
* Convert to use the recently introduced set of ofw_bus_gen_get_*() formarius2005-12-031-5/+1
| | | | | | providing the ofw_bus KOBJ interface. Tested by: grehan
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* - Introduce an ofw_bus kobj-interface for retrieving the OFW node and amarius2004-08-121-27/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subset ("compatible", "device_type", "model" and "name") of the standard properties in drivers for devices on Open Firmware supported busses. The standard properties "reg", "interrupts" und "address" are not covered by this interface because they are only of interest in the respective bridge code. There's a remaining standard property "status" which is unclear how to support properly but which also isn't used in FreeBSD at present. This ofw_bus kobj-interface allows to replace the various (ebus_get_node(), ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type() vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one. This in turn allows to simplify and remove code-duplication in drivers for devices that can hang off of more than one OFW supported bus. - Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the drivers for their children to use the ofw_bus kobj-interface. The IVAR- interfaces of the Central, EBus and FHC are entirely replaced by this. The PCI bus driver used its own kobj-interface and now also uses the ofw_bus one. The IVARs special to the SBus, e.g. for retrieving the burst size, remain. Beware: this causes an ABI-breakage for modules of drivers which used the IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be recompiled. The style-inconsistencies introduced in some of the bus drivers will be fixed by tmm@ in a generic clean-up of the respective drivers later (he requested to add the changes in the "new" style). - Convert the powerpc MacIO bus driver and the drivers for its children to use the ofw_bus kobj-interface. This invloves removing the IVARs related to the "reg" property which were unused and a leftover from the NetBSD origini of the code. There's no ABI-breakage caused by this because none of these driver are currently built as modules. There are other powerpc bus drivers which can be converted to the ofw_bus kobj-interface, e.g. the PCI bus driver, which should be done together with converting powerpc to use the OFW PCI code from sparc64. - Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take advantage of the ofw_bus kobj-interface and simplify them a bit. Reviewed by: grehan, tmm Approved by: re (scottl) Discussed with: tmm Tested with: Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386
* Move soft structs back to C files to avoid exposing rman fieldsgrehan2004-07-011-11/+1
| | | | to clients now that it's protected with __RMAN_RESOURCE_VISIBLE
* Rework of how memory resources are discovered and dealt with in macio.benno2003-01-301-7/+10
| | | | | | | | | - Store the OpenFirmware "reg" property in the macio ivars. - Use a struct to define the structure of a "reg" property entry. - Discover all memory ranges, not just the first. - In ata_macio, manage our own range and hand out our own allocations using bus_space_subregion. - Fix bus_space_subregion to handle subregions of sparse maps.
* - Remove the ignore list and replace it with a quirk list of sorts.benno2003-01-091-1/+2
| | | | | | | | - Add a quirk type for devices whose interrupt properties are actually attached to their children. - Flag the "escc" (zs-alike serial controller) device as having this quirk. - Rework the interrupt discovery code to deal with devices that have more than one interrupt.
* Driver for the macio south bridge, and ATA cell contained within.grehan2002-09-191-0/+92
Approved by: benno
OpenPOWER on IntegriCloud