summaryrefslogtreecommitdiffstats
path: root/sys/dev/bm
Commit message (Collapse)AuthorAgeFilesLines
* Remove some hacks to handle strange behavior of LXT 970 PHYs now betternwhitehorn2011-05-121-10/+0
| | | | | handled in miibus after r221812. Thanks to marius@ for piecing this together!
* Do not use Open Firmware to open the device and instead program its startnwhitehorn2011-05-061-19/+15
| | | | | | | | on our own. This prevents hangs at boot when using a bm(4) NIC where the cable is not plugged in at boot time. Obtained from: NetBSD MFC after: 1 week
* Convert the PHY drivers to honor the mii_flags passed down and convertmarius2010-10-151-5/+13
| | | | | | | | | | | | | | | | | | | | | | | the NIC drivers as well as the PHY drivers to take advantage of the mii_attach() introduced in r213878 to get rid of certain hacks. For the most part these were: - Artificially limiting miibus_{read,write}reg methods to certain PHY addresses; we now let mii_attach() only probe the PHY at the desired address(es) instead. - PHY drivers setting MIIF_* flags based on the NIC driver they hang off from, partly even based on grabbing and using the softc of the parent; we now pass these flags down from the NIC to the PHY drivers via mii_attach(). This got us rid of all such hacks except those of brgphy() in combination with bce(4) and bge(4), which is way beyond what can be expressed with simple flags. While at it, I took the opportunity to change the NIC drivers to pass up the error returned by mii_attach() (previously by mii_phy_probe()) and unify the error message used in this case where and as appropriate as mii_attach() actually can fail for a number of reasons, not just because of no PHY(s) being present at the expected address(es). Reviewed by: jhb, yongari
* Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/rwatson2009-06-261-2/+2
| | | | | | | | | | | | | IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface. For two wireless drivers, remove unnecessary locking, since they don't actually access the multicast address list. Approved by: re (kib) MFC after: 6 weeks
* Fix bm_shutdown() KOBJ method to correspond to return int, as it should.nwhitehorn2009-02-041-2/+4
| | | | Found by: Andriy Gapon
* Change the way we enable the BMAC cell in macio. Instead of calling thenwhitehorn2008-10-131-9/+13
| | | | | | | | macio's enable-enet word, which apparently does nothing on some machines, open an OF instance of the ethernet controller. This fixes cold booting from disk on my Blue & White G3. MFC after: 3 days
* Change the DBDMA API to allow DBDMA registers in a subregion of a resource. ↵nwhitehorn2008-09-231-2/+2
| | | | | | This is necessary to allow future support of DMA for the various Apple on-board ATA controllers. MFC after: 1 week
* Fix a multiple locking bug in bm(4) that could cause panics on a ↵nwhitehorn2008-09-021-1/+1
| | | | | | | WITNESS-enabled kernel. Approved by: marcel (mentor) MFC after: 1 day
* Fix some locking and logic bugs pointed out by jhb. These fix driver detach ↵nwhitehorn2008-07-033-40/+26
| | | | | | and speed up data transfer by nearly a factor of 2. Approved by: marcel (mentor)
* Add support for the Apple Big Mac (BMAC) Ethernet controller,marcel2008-06-073-0/+1755
found on various Apple G3 models. Submitted by: Nathan Whitehorn
OpenPOWER on IntegriCloud