On SPARCbook systems, the ledma device node has a `cable-selection' property
authormiod <miod@openbsd.org>
Mon, 28 Jul 2014 18:31:39 +0000 (18:31 +0000)
committermiod <miod@openbsd.org>
Mon, 28 Jul 2014 18:31:39 +0000 (18:31 +0000)
commit09b3691db13c9f77d6839213ee221a34f7ecbcf8
tree6e1527635cf716a65f6e03e7fa271529e917e6c5
parent027ef565c406bcfc83360665973e8eac7b5bfbb5
On SPARCbook systems, the ledma device node has a `cable-selection' property
specifying which media the on-board interface uses. We already query it to
set up proper register values; extend this to be able to pass a default
media to the le(4) child.

This makes SPARCbook system default to AUI without needing for a manual media
change.

tested by sebastia@
sys/arch/sparc/dev/dma.c
sys/arch/sparc/dev/dmavar.h
sys/arch/sparc/dev/if_le.c