Commit Graph

7 Commits

Author SHA1 Message Date
Weongyo Jeong
87ecd62c3d MFC r205003:
Revert r204992 and just wrap it all in ifdef INVARIANTS to fix the debug
  and non-debug cases

MFC r204992:
  fixes a compile error if INVARIANTS is disabled.

  Pointy hat to: me
  Submitted by: Michael Butler <imb at protected-networks dot net>

MFC r204983:
  Fix build breakage introduced in r204922.

MFC r204923:
  uses KOBJMETHOD_END macro to indicate the end of method table.

  Submitted by: yongari

MFC r204922:
  o uses bus accessor macros to read values from ivar so no more values
    are referenced directly from ivar pointer.  It's to do like what other
    buses do. [1]
  o changes exported prototypes.  It doesn't use struct siba_* structures
    anymore that instead of it it uses only device_t.
  o removes duplicate code and debug messages.
  o style(9)

  Pointed out by:        imp [1]
2010-04-21 00:22:16 +00:00
Weongyo Jeong
489d21bb61 MFC r204657:
fixes an attached-at-boot issue that bwn(4) using device_identify
  interface didn't be attached automatically at boot time so changes a
  approach to attach children based on leveraging some newbus niceties.

  Submitted by: nwhitehorn
2010-04-21 00:13:44 +00:00
Weongyo Jeong
a9a1ff5e80 MFC r203944:
supports SPROM rev8 informations properly which are used to support
  low-power PHY of bwn(4) and LDO voltage adjustments.
2010-04-20 21:37:47 +00:00
Weongyo Jeong
4b1a8666b9 MFC r203319:
Adds siba_bwn module which is used with bwn(4).  Main purpose of this
  module is to distinguish parts of Silicon Backplane and of Broadcom
  Wireless.
2010-04-20 21:29:53 +00:00
Weongyo Jeong
5c07bd7cf5 MFC r201978:
Merge from projects/mips to head by hand:

  Merge the siba bus device.  This was moved from mips to dev because
  siba bus can be in other architectures, like ARM.

MFC r202056:
  Move this to the right location.  Grump.

MFC r202057:
  This was somehow copied to the wrong place :(.  Remove the spare copy.

Approved by:	imp
2010-04-20 21:24:32 +00:00
Warner Losh
767b32095f Use some casting to get the right addresses. This is likely unwise
code, but will be OK until there's a 64-bit siba...

With this change, SENTRY5 kernel now compiles for mips, the last of
the holdouts.
2008-09-26 05:40:56 +00:00
Warner Losh
fefa89c863 Support for the siba bus found in many broadcom products.
Submitted by:	bms@
Obtained from:	p4 mips branch
2008-09-26 03:57:23 +00:00