diff options
author | Søren Schmidt <sos@FreeBSD.org> | 2001-03-19 12:02:36 +0000 |
---|---|---|
committer | Søren Schmidt <sos@FreeBSD.org> | 2001-03-19 12:02:36 +0000 |
commit | 1ac2b9fe972a0c73729565f8310fa6eba55718c4 (patch) | |
tree | c9ed27614db4c4a7d653f3e1cfaa29d185d5b424 /sys/dev/ata/atapi-cd.h | |
parent | 895fd69a7604e3c8877332ec71c5fd8cdbf4e815 (diff) | |
download | src-1ac2b9fe972a0c73729565f8310fa6eba55718c4.tar.gz src-1ac2b9fe972a0c73729565f8310fa6eba55718c4.zip |
On open create all the CD physical track devices according to the
TOC read from the CD, instead of cloning them when asked to.
Notes
Notes:
svn path=/head/; revision=74461
Diffstat (limited to 'sys/dev/ata/atapi-cd.h')
-rw-r--r-- | sys/dev/ata/atapi-cd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.h b/sys/dev/ata/atapi-cd.h index 2d8ccb307566..dc95e9ecba7d 100644 --- a/sys/dev/ata/atapi-cd.h +++ b/sys/dev/ata/atapi-cd.h @@ -293,6 +293,11 @@ struct acd_track_info { u_int track_length; /* length of this track */ }; +struct acd_devlist { + dev_t dev; + TAILQ_ENTRY(acd_devlist) chain; /* list management */ +}; + /* Structure describing an ATAPI CDROM device */ struct acd_softc { struct atapi_softc *atp; /* controller structure */ @@ -301,6 +306,7 @@ struct acd_softc { #define F_LOCKED 0x0001 /* this unit is locked */ struct bio_queue_head queue; /* queue of i/o requests */ + TAILQ_HEAD(, acd_devlist) dev_list; /* list of "track" devices */ struct toc toc; /* table of disc contents */ struct { u_int32_t volsize; /* volume size in blocks */ |