diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2002-04-04 23:46:01 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2002-04-04 23:46:01 +0000 |
| commit | 029f13c6714669bf95d48a9152392049a526da21 (patch) | |
| tree | 58b8cc455f67309f7a70758f449ddc01e0ded92b /sys/dev/isp/isp_pci.c | |
| parent | 635435f4f64fd6c0c2fa52ceda27d474589944cc (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 65aa923ba82a..66a95345c2ba 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -241,16 +241,6 @@ static struct ispmdvec mdvec_2300 = { ((PCI_PRODUCT_QLOGIC_ISP2312 << 16) | PCI_VENDOR_QLOGIC) /* - * I/O Mapping Stuff - */ -#if _MACHINE_ARCH == SPARC64 -/* An IOMMU means that we only will ever need one descriptor. */ -#define ISP_NSEG 2 -#else -#define ISP_NSEG ((MAXPHYS/PAGE_SIZE) + 1) -#endif - -/* * Odd case for some AMI raid cards... We need to *not* attach to this. */ #define AMI_RAID_SUBVENDOR_ID 0x101e @@ -1031,7 +1021,10 @@ imc(void *arg, bus_dma_segment_t *segs, int nseg, int error) } } -#define ISP_NSEGS ((BUS_SPACE_MAXSIZE / PAGE_SIZE) + 1) +/* + * Should be BUS_SPACE_MAXSIZE, but MAXPHYS is larger than BUS_SPACE_MAXSIZE + */ +#define ISP_NSEGS ((MAXPHYS / PAGE_SIZE) + 1) static int isp_pci_mbxdma(struct ispsoftc *isp) |
