]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9)
authorMarius Strobl <marius@FreeBSD.org>
Thu, 24 Apr 2008 22:48:34 +0000 (22:48 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Thu, 24 Apr 2008 22:48:34 +0000 (22:48 +0000)
commit82897554f5e88752948491b038357b453068ba2b
treec9b22bff32de3c305796a17f17f2080f5f61e021
parent6b0c4e979ec5bb43ded2dab22c49290097ae5898
- 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.

Reviewed by: scottl
MFC after: 1 month
sys/dev/sym/sym_hipd.c