From fb974f8ed94734f43dfc82e27445b482593a491d Mon Sep 17 00:00:00 2001 From: sos Date: Wed, 3 Mar 1999 21:10:29 +0000 Subject: Added driver to support ATAPI floppies ie LS-120 & ZIP drives. Added "options ATA_STATIC_ID" that wires ATA disks like the old wd driver. Fixed problems: Dont use more sectors/intr than the drive supports. Fix announce of > 8.4G disks. Dont call ad_interrupt/ad_transfer when no disks config'd. Use the right page# for CDR write mode params. Fix breakage when no PCI support in kernel. Implement DEVFS stuff. General code clenaup. --- sys/dev/ata/ata-disk.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/dev/ata/ata-disk.h') diff --git a/sys/dev/ata/ata-disk.h b/sys/dev/ata/ata-disk.h index 618b8e2..3da1752 100644 --- a/sys/dev/ata/ata-disk.h +++ b/sys/dev/ata/ata-disk.h @@ -25,17 +25,16 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ata-disk.h,v 1.5 1999/03/01 12:11:01 sos Exp $ + * $Id: ata-disk.h,v 1.1 1999/03/01 21:19:18 sos Exp $ */ -/* - * Structure describing an ATA disk - */ +/* Structure describing an ATA disk */ struct ad_softc { struct ata_softc *controller; /* ptr to parent ctrl */ struct ata_params *ata_parm; /* ata device params */ struct diskslices *slices; int32_t unit; /* ATA_MASTER or ATA_SLAVE */ + int32_t lun; /* logical unit number */ u_int16_t cylinders; /* disk geometry (probed) */ u_int8_t heads; u_int8_t sectors; @@ -47,9 +46,12 @@ struct ad_softc { u_int32_t donecount; /* bytes transferred */ u_int32_t active; /* active processing request */ u_int32_t flags; /* drive flags */ -#define AD_F_LABELLING 0x0001 - struct devstat stats; /* devstat entry */ +#define AD_F_LABELLING 0x0001 +#ifdef DEVFS + void *cdevs_token; + void *bdevs_token; +#endif }; void ad_transfer(struct buf *); -- cgit v1.1