feedback from RELENG_5 port

This commit is contained in:
Matt Jacob 2007-03-11 01:59:44 +00:00
parent a2a90145e8
commit fa80feee0e
2 changed files with 8 additions and 0 deletions

View File

@ -230,6 +230,9 @@ int mpt_modevent(module_t, int, void *);
#define bus_dmamap_sync_range(dma_tag, dmamap, offset, len, op) \
bus_dmamap_sync(dma_tag, dmamap, op)
#if __FreeBSD_version < 600000
#define bus_get_dma_tag(x) NULL
#endif
#if __FreeBSD_version >= 501102
#define mpt_dma_tag_create(mpt, parent_tag, alignment, boundary, \
lowaddr, highaddr, filter, filterarg, \

View File

@ -2083,6 +2083,7 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *req,
break;
case MPI_EVENT_RESCAN:
#if __FreeBSD_version >= 600000
{
union ccb *ccb;
uint32_t pathid;
@ -2121,6 +2122,10 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *req,
CAMLOCK_2_MPTLOCK(mpt);
break;
}
#else
mpt_prt(mpt, "Rescan Port: %d\n", (data0 >> 8) & 0xff);
break;
#endif
case MPI_EVENT_LINK_STATUS_CHANGE:
mpt_prt(mpt, "Port %d: LinkState: %s\n",
(data1 >> 8) & 0xff,