Add $FreeBSD$.

Remove some minphys related cruft.
This commit is contained in:
Poul-Henning Kamp 1999-10-06 07:26:48 +00:00
parent 3e2c6ca3b9
commit 07d6a0622c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51959

View File

@ -25,6 +25,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
*/ */
#if 0 #if 0
@ -81,8 +83,6 @@ static int bsprobe __P((struct isa_device *));
static void bs_poll(struct cam_sim *sim); static void bs_poll(struct cam_sim *sim);
static int bsattach(struct isa_device *); static int bsattach(struct isa_device *);
static ointhand2_t bsintr; static ointhand2_t bsintr;
static int bsprint __P((void *, const char *));
static void bs_scsi_minphys __P((struct buf *));
static int bs_dmarangecheck __P((caddr_t, unsigned)); static int bs_dmarangecheck __P((caddr_t, unsigned));
struct isa_driver bsdriver = { struct isa_driver bsdriver = {
@ -207,11 +207,8 @@ bad:
} }
#endif /* __FreeBSD__ */ #endif /* __FreeBSD__ */
#ifdef __FreeBSD__ #ifdef __NetBSD__
static int
#else /* __NetBSD__ */
int int
#endif /* __NetBSD__ */
bsprint(aux, name) bsprint(aux, name)
void *aux; void *aux;
const char *name; const char *name;
@ -221,6 +218,7 @@ bsprint(aux, name)
printf("%s: scsibus ", name); printf("%s: scsibus ", name);
return UNCONF; return UNCONF;
} }
#endif
#ifdef __FreeBSD__ #ifdef __FreeBSD__
static void static void
@ -235,7 +233,6 @@ bsattach(dev)
{ {
int unit = dev->id_unit; int unit = dev->id_unit;
struct bs_softc *bsc = bscdata[unit]; struct bs_softc *bsc = bscdata[unit];
struct scsibus_data *scbus;
struct cam_devq *devq; struct cam_devq *devq;
dev->id_ointr = bsintr; dev->id_ointr = bsintr;
@ -294,6 +291,7 @@ bsintr(unit)
/***************************************************************** /*****************************************************************
* JULIAN SCSI <=> BS INTERFACE * JULIAN SCSI <=> BS INTERFACE
*****************************************************************/ *****************************************************************/
#ifndef __FreeBSD__
static void static void
bs_scsi_minphys(bp) bs_scsi_minphys(bp)
struct buf *bp; struct buf *bp;
@ -303,6 +301,7 @@ bs_scsi_minphys(bp)
bp->b_bcount = BSDMABUFSIZ; bp->b_bcount = BSDMABUFSIZ;
minphys(bp); minphys(bp);
} }
#endif
#if 0 #if 0
XSBS_INT32T XSBS_INT32T
bs_target_open(sc, cf) bs_target_open(sc, cf)