diff options
-rw-r--r-- | sys/cam/scsi/scsi_low_pisa.c | 5 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_low_pisa.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_low_pisa.c b/sys/cam/scsi/scsi_low_pisa.c index 3c530cb..b095a80 100644 --- a/sys/cam/scsi/scsi_low_pisa.c +++ b/sys/cam/scsi/scsi_low_pisa.c @@ -116,7 +116,7 @@ scsi_low_deactivate(dh) #ifdef __FreeBSD__ int -scsi_low_activate(struct scsi_low_softc *sc, struct isa_device *dev) +scsi_low_activate(struct scsi_low_softc *sc, int flags) { #else #ifdef __NetBSD__ @@ -132,7 +132,8 @@ scsi_low_activate(dh) sc->sl_flags &= ~HW_INACTIVE; #ifdef __FreeBSD__ - sc->sl_cfgflags = ((sc->sl_cfgflags << 16) | ((dev->id_flags) & 0xffff)); + sc->sl_cfgflags = ((sc->sl_cfgflags & 0xffff0000) | + (flags & 0x00ff)); #else /* __NetBSD__ */ sc->sl_cfgflags = DVCFG_MKCFG(DVCFG_MAJOR(sc->sl_cfgflags), \ DVCFG_MINOR(PISA_DR_DVCFG(dr))); diff --git a/sys/cam/scsi/scsi_low_pisa.h b/sys/cam/scsi/scsi_low_pisa.h index 551465a..8a8a542 100644 --- a/sys/cam/scsi/scsi_low_pisa.h +++ b/sys/cam/scsi/scsi_low_pisa.h @@ -40,7 +40,7 @@ int scsi_low_deactivate __P((pisa_device_handle_t)); int scsi_low_notify __P((pisa_device_handle_t, pisa_event_t)); #endif #ifdef __FreeBSD__ -int scsi_low_activate __P((struct scsi_low_softc *, struct isa_device *)); +int scsi_low_activate __P((struct scsi_low_softc *, int)); int scsi_low_deactivate __P((struct scsi_low_softc *)); #endif #endif /* !_SCSI_LOW_PISA_H_ */ |