diff options
author | sos <sos@FreeBSD.org> | 1999-03-03 21:10:29 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1999-03-03 21:10:29 +0000 |
commit | fb974f8ed94734f43dfc82e27445b482593a491d (patch) | |
tree | d5601f3a4d38e27cf2213659e87de8c365373d5a /sys/dev/ata/ata-disk.h | |
parent | ee38b913245110a5902f02f489c58c5b31c1cb92 (diff) | |
download | FreeBSD-src-fb974f8ed94734f43dfc82e27445b482593a491d.zip FreeBSD-src-fb974f8ed94734f43dfc82e27445b482593a491d.tar.gz |
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.
Diffstat (limited to 'sys/dev/ata/ata-disk.h')
-rw-r--r-- | sys/dev/ata/ata-disk.h | 14 |
1 files changed, 8 insertions, 6 deletions
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 *); |