summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/macio.c
Commit message (Collapse)AuthorAgeFilesLines
* Set the rid for any resource obtained from rman_resource_reserve.imp2006-04-201-0/+1
|
* Convert to use the recently introduced set of ofw_bus_gen_get_*() formarius2005-12-031-88/+39
| | | | | | providing the ofw_bus KOBJ interface. Tested by: grehan
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-161-1/+1
| | | | | | "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended). Ok'ed by: tmm
* - Introduce an ofw_bus kobj-interface for retrieving the OFW node and amarius2004-08-121-53/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* - Use the rman_get_* functions instead of reaching into struct resource.marius2004-08-111-1/+0
| | | | | | | | - Remove __RMAN_RESORUCE_VISIBLE again. It's no longer required either because of the above change or because struct rman is no longer hidden. Reviewed by: grehan Tested by: cross-compile on i386
* Catch up with __RMAN_RESOURCE_VISIBLE changegrehan2004-07-011-0/+11
|
* Catchup to now-required <sys/module.h> for PowerPCgrehan2004-06-251-0/+1
|
* Allow the interrupt controller to be probed - this picks up thegrehan2003-06-291-1/+0
| | | | Heathrow PIC, while not affecting the OpenPIC.
* Remove sparse addressing hack. The macio ATA driver no longer requiresgrehan2003-04-181-3/+0
| | | | this.
* - Add PCI ID for Paddington i/o controller, used in old G3'sgrehan2003-03-201-2/+4
| | | | | - Add ID for the Intrepid i/o controller, used in new 12"/17" PowerBooks - put IDs in chronological order
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Add a driver that attaches to the gpio node of macio and allows you to enterbenno2003-02-061-1/+0
| | | | | | | DDB when the interrupt button (aka the "programmer's switch") is pressed. This isn't unfortunately an NMI, but it's a handy way to get into DDB quickly if needed.
* Add a cast to silence a warning.benno2003-02-061-1/+1
|
* If a device tries to allocate an interrupt that's not on it's resource list,benno2003-02-061-0/+16
| | | | assume that the child knows what it's doing and add it to the resource list.
* Rework of how memory resources are discovered and dealt with in macio.benno2003-01-301-35/+65
| | | | | | | | | - 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 M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Allocate interrupts from the resource list.benno2003-01-091-2/+4
|
* - Remove the ignore list and replace it with a quirk list of sorts.benno2003-01-091-22/+56
| | | | | | | | - 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/+484
Approved by: benno
OpenPOWER on IntegriCloud