joyent/illumos-joyent — pull request #5 by richlowe (2012-09-08 23:25:44+00:00)
Title: Rename ipmi devlink for stricter openipmi-ness, allow possible attach failure

These are some changes put together when getting ready to try to get the
ipmi stuff into illumos.

- Rename /dev/ipmi to /dev/ipmi0 to match other openipmi devnames

This is one @rmustacc and @jjelinek brought up to make things mildly more
compatible for ipmitool, etc. When this change is applied, you'll need
to delete the '*-devname' patch from the illumos-extra openipmi too.

- Delete bmc_intf.h

That's the interface to the old bmc(7D) which no longer exists, and it
seems best to stop using it/delete it.

- Allow attaching ipmi(7D) to fail if necessary.

Previously we'd attach but with the softc half-initialized, then bad
things would happen.

@jjelinek looked at this a week or so ago, @jclulow has looked at it and
tested it for me smartos-ishly. I'd still suggest excercising some
caution when pulling it, however, and of course it will flag-day against
illumos-extra, as described above.