Deleted Added
full compact
1c1
< /* $FreeBSD: head/sys/dev/mpt/mpt.c 102304 2002-08-23 06:56:31Z mjacob $ */
---
> /* $FreeBSD: head/sys/dev/mpt/mpt.c 102822 2002-09-01 23:07:09Z mjacob $ */
512,515d511
< static int
< mpt_read_cfg_page(mpt_softc_t *, int, fCONFIG_PAGE_HEADER *);
< static int
< mpt_write_cfg_page(mpt_softc_t *, int, fCONFIG_PAGE_HEADER *);
568c564
< static int
---
> int
640c636
< static int
---
> int
887a884,886
> mpt->mpt_disc_enable = 0xff;
> mpt->mpt_tag_enable = 0;
>
909,911d907
< #if 1
< i = i;
< #else
936c932,960
< #endif
---
>
> /*
> * If the BIOS hasn't been enabled, the SCSI Port Page2 device
> * parameter are apparently complete nonsense. I've had partially
> * sensible Page2 settings on *one* bus, but nothing on another-
> * it's ridiculous.
> *
> * For that matter, the Port Page 0 parameters are *also* nonsense,
> * so the offset and period and currently connected physical interface
> * is also nonsense.
> *
> * This makes it very difficult to try and figure out what maximum
> * settings we could have. Therefore, we'll synthesize the maximums
> * here.
> */
> for (i = 0; i < 16; i++) {
> mpt->mpt_port_page2.DeviceSettings[i].DeviceFlags =
> MPI_SCSIPORTPAGE2_DEVICE_DISCONNECT_ENABLE |
> MPI_SCSIPORTPAGE2_DEVICE_TAG_QUEUE_ENABLE;
> }
> mpt->mpt_port_page0.Capabilities =
> MPI_SCSIPORTPAGE0_CAP_IU |
> MPI_SCSIPORTPAGE0_CAP_DT |
> MPI_SCSIPORTPAGE0_CAP_QAS |
> MPI_SCSIPORTPAGE0_CAP_WIDE |
> (31 << 16) | /* offset */
> (8 << 8); /* period */
> mpt->mpt_port_page0.PhysicalInterface =
> MPI_SCSIPORTPAGE0_PHY_SIGNAL_LVD;
1064d1087
<