From 051d5ca2a06fa52c1798925f4489474fa4a292a7 Mon Sep 17 00:00:00 2001 From: scottl Date: Fri, 3 Sep 2004 08:44:23 +0000 Subject: 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. --- sys/dev/iir/iir.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sys') 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; -- cgit v1.1