Date: Thu, 24 Apr 2008 22:48:34 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sym sym_hipd.c Message-ID: <200804242248.m3OMmYar042554@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2008-04-24 22:48:34 UTC
FreeBSD src repository
Modified files:
sys/dev/sym sym_hipd.c
Log:
- 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
Revision Changes Path
1.69 +157 -120 src/sys/dev/sym/sym_hipd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804242248.m3OMmYar042554>
