summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac
Commit message (Collapse)AuthorAgeFilesLines
* Set the rid for any resource obtained from rman_resource_reserve.imp2006-04-204-0/+4
|
* Convert to use the recently introduced set of ofw_bus_gen_get_*() formarius2005-12-032-93/+40
| | | | | | providing the ofw_bus KOBJ interface. Tested by: grehan
* The end values passed to rman_manage_region() for PCI i/o and memgrehan2005-05-291-2/+2
| | | | | | | | spaces were 1 too large. This resulted in the rman list not being sorted correctly, and USB ports not being discovered on older TiBooks. Detective work by: Andreas Tobler <toa at pop dot agri dot ch>
* Remove incorrect configuration setting that limited the Kauai ATA controllergrehan2005-05-141-1/+1
| | | | to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
* Catch up with latest ATA newbus commits.grehan2005-05-012-4/+4
|
* Get order right when initializing task file bus resources. ATA drives aregrehan2005-04-202-4/+4
| | | | | now recognised when booting from the drive, as opposed to net-booting which the previous botched commit was tested with.
* Catch up with ATA mkIII definitions for registers that have differentgrehan2005-04-182-2/+4
| | | | functions for read vs. write.
* Introduce channel-level setmode newbus method.grehan2005-04-012-0/+25
| | | | Thanks to sos for the code re-org that allowed this.
* Catch up with ATA-mkIIIgrehan2005-03-312-36/+2
|
* - allow a device hint to disable probing a slot on a Uninorth PCI bus.grehan2005-01-111-5/+12
| | | | | | | | | | | | | | | | | | e.g. at the loader: set hint.pcib.1.skipslot=26 This allows undocumented and problematic hardware on some systems to be ignored, for instance, the USB keyboard/mouse that shows up on a 12" albook that doesn't exist nor do anything other than eat up the syscons keyboard. Another one is the unused USB cell in the old 366MHz iBook that locks up the machine when probed. In a way this is temporary, since there are better fixes for the above problems, but will be useful in the meantime by allowing a keyboard to be used to help debug said fixes :) - while here remove some trailing white space
* /* -> /*- for license, minor formatting changesimp2005-01-0712-12/+12
|
* Return correct value in the lock routine.grehan2005-01-071-2/+2
|
* Stay up to date with the latest ATA developments, wheressouhlal2004-11-022-2/+4
| | | | | | ata_channel.locking now returns an int. Approved by: grehan (mentor)
* Add sc_iostart to softc and unbreak the build.gallatin2004-09-271-0/+1
| | | | | | This was forgotten in my previous commit to add i/o port to uninorth.c Pointy-hat to: me
* Add support for i/o-ports. This was cut and pasted from grackle.cgallatin2004-09-261-3/+26
|
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-164-5/+5
| | | | | | "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-125-87/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-115-11/+8
| | | | | | | | - 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
* Make this compile: add sys/module.h and KDBify.gallatin2004-07-221-5/+3
|
* Catch up with __RMAN_RESOURCE_VISIBLE changegrehan2004-07-015-0/+15
|
* 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
* Catchup to now-required <sys/module.h> for PowerPCgrehan2004-06-255-0/+5
|
* - Catch up with recent ATA changes.grehan2004-04-232-6/+9
| | | | - Remove trailing space in ata_macio.c
* Match the specific MPC106 host bridge PCI ID rather than allgrehan2004-04-011-6/+3
| | | | | generic host bridges: this avoids a race with the UniNorth generic match.
* The end argument to bus_alloc_resource() should have been ~0 andgrehan2004-03-311-2/+1
| | | | | | | not ~1, but the call has been switched over to bus_alloc_resource_any() which has the same effect. Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-172-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Bring to working PIO state.grehan2004-02-291-3/+12
| | | | | | | | - use correct rid when allocating PCI mem resource - ATA taskfile registers are indeed spaced 0x10 apart just like the Macio ATA cell. Adjust offsets in ATA channel struct. Tested by: Suleiman Souhlal <ssouhlal@vt.edu>
* Work-in-progress for the 'Kauai' ATA device in Mac notebooks. Thegrehan2004-02-121-0/+190
| | | | | device seems to be the macio ATA cell with a PCI front-end, and has no relation to PIIX-style ATA/PCI devices.
* - remove trailing whitespacegrehan2004-02-111-11/+13
| | | | - fix compile warnings. badaddr() will go to a header file soon.
* - removed debug printf that was a false positive on non-OpenPIC systemsgrehan2004-02-041-7/+5
| | | | - white space nits
* Use device alias "mpic" to locate the macio OpenPIC. This worksgrehan2004-02-031-6/+5
| | | | | | on the new 12/15/17" PowerBooks that don't have the "interrupt-controller" property underneath "/chosen", which was the previous way of searching.
* Catch up with ATA UMA changesgrehan2004-01-151-0/+1
|
* Use a device identify entry point to attach to nexus, since thegrehan2004-01-131-9/+27
| | | | nexus code no longer searches for interrupt controllers.
* Make the OpenPic driver bus-independent, with attachments forgrehan2004-01-131-0/+231
| | | | | | | | | | the MacIO chip and PSIM's IOBus. Bus-specific drivers should use the identify method to attach themselves to nexus so interrupt can be allocated before the h/w is probed. The 'early attach' routine in openpic is used for this stage of boot. When h/w is probed, the openpic can be attached properly. It will enable interrupts allocated prior to this.
* Catch up with ATA changes by including <sys/sema.h>grehan2004-01-131-0/+1
|
* imac revA-D and beige G3 OpenFirmware uses the "ide" string forgrehan2003-12-101-1/+2
| | | | ATA drives.
* Widen the enable/disable helper function's argument in line with thepeter2003-11-171-4/+4
| | | | ithread_create() changes etc. This should be mostly a NOP.
* ATAng requires <sys/taskqueue.h>grehan2003-09-221-0/+1
|
* Allow the interrupt controller to be probed - this picks up thegrehan2003-06-291-1/+0
| | | | Heathrow PIC, while not affecting the OpenPIC.
* A module to handle the interrupt controller on Heathrow/Paddingtongrehan2003-06-282-0/+545
| | | | MacIO chips, found on older Mac G3's.
* A module for the Motorola MPC106 system controller aka 'Grackle'grehan2003-06-282-0/+622
| | | | found on older Mac G3's.
* Vastly simplify the macio ATA attachment, now that the register filegrehan2003-04-181-225/+42
| | | | indirection is handled in the ATA common code.
* Remove sparse addressing hack. The macio ATA driver no longer requiresgrehan2003-04-182-5/+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
* Catch up with ATAng changesgrehan2003-02-241-10/+14
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Oops. Include opt_ddb.h.benno2003-02-061-0/+2
|
* Add a driver that attaches to the gpio node of macio and allows you to enterbenno2003-02-062-1/+143
| | | | | | | 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.
OpenPOWER on IntegriCloud