1 /* @(#)scsicmds.h 1.4 01/06/21 Copyright 1996 J. Schilling */ 2 /* 3 * Copyright (c) 1996 J. Schilling 4 */ 5 /* 6 * The contents of this file are subject to the terms of the 7 * Common Development and Distribution License, Version 1.0 only 8 * (the "License"). You may not use this file except in compliance 9 * with the License. 10 * 11 * See the file CDDL.Schily.txt in this distribution for details. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file CDDL.Schily.txt from this distribution. 15 */ 16 17 /* 18 * scsicmds.c: 19 */ 20 extern BOOL unit_ready __PR((SCSI *scgp)); 21 extern BOOL wait_unit_ready __PR((SCSI *scgp, int secs)); 22 extern int test_unit_ready __PR((SCSI *scgp)); 23 extern int rezero_unit __PR((SCSI *scgp)); 24 extern int mode_select __PR((SCSI *scgp, u_char *dp, int cnt, int smp, int pf)); 25 extern int mode_sense __PR((SCSI *scgp, u_char *dp, int cnt, int page, int pcf)); 26 extern int format_unit __PR((SCSI *scgp, struct scsi_format_data *fmt, int ndefects, int list_format, int dmdl, int dgdl, int interlv, int pattern, int timeout)); 27 extern int inquiry __PR((SCSI *scgp, caddr_t bp, int cnt)); 28 extern int read_capacity __PR((SCSI *scgp)); 29 extern int reassign_block __PR((SCSI *scgp, struct scsi_def_list *bad, int nbad)); 30 extern int read_scsi __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 31 extern int read_g0 __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 32 extern int read_g1 __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 33 extern int write_scsi __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 34 extern int write_g0 __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 35 extern int write_g1 __PR((SCSI *scgp, caddr_t bp, long addr, int cnt)); 36 extern int seek_scsi __PR((SCSI *scgp, long addr)); 37 extern int seek_g0 __PR((SCSI *scgp, long addr)); 38 extern int seek_g1 __PR((SCSI *scgp, long addr)); 39 extern int translate __PR((SCSI *scgp, struct scsi_def_bfi *dp, long lba)); 40 extern int qic02 __PR((SCSI *scgp, int cmd)); 41 extern int start_stop_unit __PR((SCSI *scgp, int flg)); 42 extern int receive_diagnostic __PR((SCSI *scgp, caddr_t bp, int len)); 43 extern int send_diagnostic __PR((SCSI *scgp, caddr_t bp, int len)); 44 extern int write_verify __PR((SCSI *scgp, caddr_t bp, long start, int count, long *bad_block)); 45 extern int verify __PR((SCSI *scgp, long start, int count, long *bad_block)); 46 extern int write_verify_split __PR((SCSI *scgp, caddr_t bp, long start, int count, long *bad_block)); 47 extern int read_defect_list __PR((SCSI *scgp, int list_type, int list_format, BOOL print)); 48 extern void xclear_phys_null __PR((SCSI *scgp)); 49 extern void clear_phys_null __PR((SCSI *scgp)); 50 extern void read_phys_null __PR((SCSI *scgp, int ccs)); 51 extern void md21_read_phys_null __PR((SCSI *scgp)); 52 extern void ccs_read_phys_null __PR((SCSI *scgp)); 53 extern void damage_phys_blk __PR((SCSI *scgp)); 54 55