summaryrefslogtreecommitdiffstats
path: root/sys/dev/iir
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-09-03 08:44:23 +0000
committerscottl <scottl@FreeBSD.org>2004-09-03 08:44:23 +0000
commit051d5ca2a06fa52c1798925f4489474fa4a292a7 (patch)
treed1683c26b29a3213bc315bfbbd02d1fc35f85b1c /sys/dev/iir
parent05ea18e82c96a7b38b1caa8607a54db6251de7c2 (diff)
downloadFreeBSD-src-051d5ca2a06fa52c1798925f4489474fa4a292a7.zip
FreeBSD-src-051d5ca2a06fa52c1798925f4489474fa4a292a7.tar.gz
Panic if given a CAM_DATA_PHYS pointer from CAM instead of trying to handle it.
It makes no sense in a PAE environment and is impossible to handle correctly. This case is also never used right now. This should make the iir(4) driver ready for PAE.
Diffstat (limited to 'sys/dev/iir')
-rw-r--r--sys/dev/iir/iir.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c
index 0cedf4d..b1c9992 100644
--- a/sys/dev/iir/iir.c
+++ b/sys/dev/iir/iir.c
@@ -874,13 +874,7 @@ gdt_raw_cmd(struct gdt_softc *gdt, union ccb *ccb, int *lock)
}
splx(s);
} else {
- struct bus_dma_segment seg;
-
- /* Pointer to physical buffer */
- seg.ds_addr =
- (bus_addr_t)ccb->csio.data_ptr;
- seg.ds_len = ccb->csio.dxfer_len;
- gdtexecuteccb(gccb, &seg, 1, 0);
+ panic("iir: CAM_DATA_PHYS not supported");
}
} else {
struct bus_dma_segment *segs;
@@ -989,13 +983,7 @@ gdt_cache_cmd(struct gdt_softc *gdt, union ccb *ccb, int *lock)
}
splx(s);
} else {
- struct bus_dma_segment seg;
-
- /* Pointer to physical buffer */
- seg.ds_addr =
- (bus_addr_t)ccb->csio.data_ptr;
- seg.ds_len = ccb->csio.dxfer_len;
- gdtexecuteccb(gccb, &seg, 1, 0);
+ panic("iir: CAM_DATA_PHYS not supported");
}
} else {
struct bus_dma_segment *segs;
OpenPOWER on IntegriCloud