feedback from RELENG_5 port
This commit is contained in:
parent
a2a90145e8
commit
fa80feee0e
@ -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, \
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user