]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: 1.69
authormarius <marius@FreeBSD.org>
Fri, 30 May 2008 20:02:06 +0000 (20:02 +0000)
committermarius <marius@FreeBSD.org>
Fri, 30 May 2008 20:02:06 +0000 (20:02 +0000)
commit9465c3db95c89b4481125d74b01bdade68c94c2e
tree6d9593b8504f629600e78670b8564eac5684e89a
parent322021f0389f192db95f3b12d23d51a16f5cbd4e
MFC: 1.69

- Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9)
  in order to get rid of bus space handle and tag in struct sym_hcb.
- Remove unused members related to bus addresses in struct sym_hcb.
- sym(4) takes care of allocating an instance of struct sym_hcb
  itself so don't let newbus allocate it as an unused softc also.
- Add basic MPSAFE locking. This includes changing the sym(4) CCBs
  to be allocated up-front instead of on demand as needed. Besides
  making these allocations more likely to succeed, this also solves
  the problem of calling bus_dmamap_create(9) with the SIM mutex
  held.
sys/dev/sym/sym_hipd.c