Subject: Re: scsipi change
To: Andrew Doran <ad@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 10/06/2000 21:26:19
On Thu, Oct 05, 2000 at 12:31:22PM +0000, Andrew Doran wrote:
> [...]
> RCS file: /cvsroot/syssrc/sys/dev/scsipi/scsiconf.h,v
> retrieving revision 1.48
> diff -u -r1.48 scsiconf.h
> --- scsiconf.h 1999/10/20 15:22:28 1.48
> +++ scsiconf.h 2000/10/05 12:28:30
> @@ -82,6 +82,21 @@
> /* sc_flags */
> #define SCSIBUSF_OPEN 0x00000001 /* bus is open */
>
> +/*
> + * These entrypoints are called by the high-end drivers to get services from
> + * whatever low-end drivers they are attached to.
> + *
> + * scsi_accesschk optional
> + * scsi_prescan optional
> + */
> +struct scsipi_inquiry_pattern;
> +struct scsi_adapter {
> + struct scsipi_adapter scsipi;
> + int (*scsi_accesschk) __P((struct scsipi_link *,
> + struct scsipi_inquiry_pattern *));
> + int (*scsi_prescan) __P((struct scsipi_link *, int, int, int));
> +};
> +
Why not put theses in scsipi_adapter ? There's nothing scsi-specific in this.
--
Manuel Bouyer <bouyer@antioche.eu.org>
--