Sync with FreeBSD:
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 5 Jan 2008 22:24:08 +0000 (22:24 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 5 Jan 2008 22:24:08 +0000 (22:24 +0000)
commitf4c64bbb814c6b44e65947371eae5fabdbe8d460
tree97cbfb091bf8f29aec93a41f284833cfa8341098
parent4c6a37399a7c9a81f97f656807348b51e3da7311
Sync with FreeBSD:

CAM_NEW_TRAN_CODE fixes.

Remove unneeded includes and add missing ones.

Use BUS_PROBE_DEFAULT in preference to 0.

Call trm_Interrupt() in trm_poll(). This fixes the lock at reboot time some
people reported in FreeBSD.

Use bus_alloc_resource_any(9).

Use one bus_dma_tag_t for all pSRB instead of creating one for each.
Free what is allocated for pSRBs at unload time or if something bad happens.

Do not test if pDCB is not NULL, we dereference it before anyway, and it
should not happen. Add a KASSERT instead.

Mark trm as depending on cam.

Use PCIR_BAR(x) instead of PCIR_MAPS.

Remove two useless bzero() calls.

Use cam_calc_geometry.

Indentation/style fixes.

Add support for Tekram DC395U2W cards.

Obtained-from: FreeBSD
sys/dev/disk/trm/trm.c
sys/dev/disk/trm/trm.h