summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/ofw_machdep.h
Commit message (Collapse)AuthorAgeFilesLines
* - Re-write OF_decode_addr() with a bus-neutral approach, adding supportmarius2005-02-121-2/+1
| | | | | | | | | | | | for nodes hanging off of Central (untested), FireHose (untested) and PCI (tested) busses. - Add an additional parameter to OF_decode_addr() which specifies the index of the register bank to decode. These should allow to eventually add support for the Z8530 hanging off of FireHose to uart(4) and to write support for PCI-based graphics adapters. Suggested by: tmm (back in '03)
* - Make OF_getetheraddr() honour the "local-mac-address?" system configmarius2004-08-141-1/+0
| | | | | | | | | | | | | | | variable. If set to "true" OF_getetheraddr() will now return the unique MAC address stored in the "local-mac-address" property of the device's OFW node if present and the host address/system default MAC address if the node doesn't doesn't have such a property. If set to "false" the host address will be returned for all devices like before this change. This brings the behaviour of device drivers for NICs with OFW support/ FCode, i.e. dc(4) for on-board DM9102A on Sun machines, gem(4) and hme(4), regarding "local-mac-address?" in line with NetBSD and Solaris. The man pages of the respective drivers will be updated separately to reflect this change. - Remove OF_getetheraddr2() which was used as a stopgap in dc(4). Its functionality is now part of OF_getetheraddr().
* Some integrated Davicom cards in sparc64 boxes have an all zerosmux2004-01-081-0/+1
| | | | | | | | | | MAC address in the EEPROM, and we need to get it from OpenFirmware. This isn't very pretty but time is lacking to do this in a better way this near 5.2-RELEASE. This is a RELENG_5_2 candidate. Original version by: Marius Strobl <marius@alchemy.franken.de> Tested by: Pete Bentley <pete@sorted.org> Reviewed by: jake
* Add function OF_decode_addr(). This function obtains the physicalmarcel2003-09-021-1/+2
| | | | | | | | | | | | | | | address of the device identified by its phandle_t by traversing OFW's device tree. The space and address returned by this function can subsequently be passed to sparc64_fake_bustag() to construct a valid tag and handle for use by the newbus I/O functions. Use of this function is expected to be limited to pre-newbus access to devices, such as consoles and keyboards. Partially obtained from: tmm Reviewed by: jake, jmg, tmm SBus testing made possible by: jake Tested with: LINT
* Add support for starting and stopping cpus with ipis.jake2002-03-131-1/+1
| | | | | | Stop the other cpus when shutting down or entering the debugger. Submitted by: tmm
* Add some OpenFirmware bus support code and definitions.tmm2001-11-091-0/+38
OpenPOWER on IntegriCloud