summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-cd.h
Commit message (Collapse)AuthorAgeFilesLines
* GEOM'ify atapi-cd. Original patch by phk, subtle changes by me.sos2003-11-011-11/+3
|
* Fix inverted BURN_BRIDGES and GONE_IN_5 #ifdefs.tmm2003-09-221-1/+1
|
* Make the clone handler BURN_BRIDGES but the actual 'a' and 'c' partitionphk2003-09-211-1/+1
| | | | | | check GONE_IN_5: We need the clone handler for root filesystem case. Once under GEOM, we can remove the clone handler as GEOM provides one.
* Disable the use of cloning use in floppy and CD drivers.phk2003-09-111-1/+1
| | | | | | | | | | This commit puts the relevant code snippets under #ifdef GONE_IN_5 (rather than #ifndef BURN_BRIDGES) thereby disabling the code now. The code wil be entirely removed before 5.2 unless we find reasons why this would be a bad idea. Approach suggested by: imp
* Add support of the DIOCGSECTORSIZE & DIOCGMEDIASIZE ioctl'ssos2003-09-111-2/+2
| | | | so that newfs works on dvd-rw/dvd-ram again..
* Forgotten in previous commit to atapi-cd.c: Add #ifndef BURN_BRIDGESphk2003-09-051-0/+2
| | | | around cloning routines.
* This is a major rework of the ATA driver (ATAng)sos2003-08-241-127/+55
| | | | | | | | | | | | | | | | | | | | | | Restructure the way ATA/ATAPI commands are processed, use a common ata_request structure for both. This centralises the way requests are handled so locking is much easier to handle. The driver is now layered much more cleanly to seperate the lowlevel HW access so it can be tailored to specific controllers without touching the upper layers. This is needed to support some of the newer semi-intelligent ATA controllers showing up. The top level drivers (disk, ATAPI devices) are more or less still the same with just corrections to use the new interface. Pull ATA out from under Gaint now that locking can be done in a sane way. Add support for a the National Geode SC1100. Thanks to Soekris engineering for sponsoring a Soekris 4801 to make this support. Fixed alot of small bugs in the chipset code for various chips now we are around in that corner anyways.
* First round off updates/fixes to the ATA driver.sos2003-02-201-2/+2
| | | | | | | | | | | | This moves all chipset specific code to a new file 'ata-chipset.c'. Extensive use of tables and pointers to avoid having the same switch on chipset type in several places, and to allow substituting various functions for different HW arch needs. Added PIO mode setup and all DMA modes. Support for all known SiS chipsets. Thanks to Christoph Kukulies for sponsoring a nice ASUS P4S8X SiS648 based board for this work! Tested on: i386, PC98, alpha and sparc64
* Remove the fake disklabel, no longer needed.sos2003-01-211-1/+0
| | | | | | Fix potential malloc panic. Prodded by: phk
* use __packed.alfred2002-09-231-1/+1
|
* Add DVD+RW support to the ATA driver and burncd. This also closessos2002-08-081-2/+2
| | | | | | | | | PR40430 by "Peter Haight <peterh@sapros.com>" that has semilar patches included and which I merged with my own work. HW sponsored by: FreeBSD Foundation & FreeBSD Mall Inc Enjoy!
* Make the ATA driver compile & work on the sparc64 platform.sos2002-04-051-22/+92
| | | | | | | Initial work & code by tmm. Lots of changes and rearrangements by yours truely to make busdma be a little less a PITA (but I still dont like it).
* Add more functionality to the CDIOCREADSUBCHANNEL ioctl.sos2002-03-161-11/+1
| | | | PR: 26644
* Major update of the ATA RAID code, part 1:sos2002-02-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overhaul of the attach/detach code and structures, there were some nasty bugs in the old implementation. This made it possible to collapse the ATA/ATAPI device control structures into one generic structure. A note here, the kernel is NOT ready for detach of active devices, it fails all over in random places, but for inactive devices it works. However for ATA RAID this works, since the RAID abstration layer insulates the buggy^H^H^H^H^H^Hfragile device subsystem from the physical disks. Proberly detect the RAID's from the BIOS, and mark critical RAID1 arrays as such, but continue if there is enough of the mirror left to do so. Properly fail arrays on a live system. For RAID0 that means return EIO, and for RAID1 it means continue on the still working part of the mirror if possible, else return EIO. If the state changes, log this to the console. Allow for Promise & Highpoint controllers/arrays to coexist on the same machine. It is not possible to distribute arrays over different makes of controllers though. If Promise SuperSwap enclosures are used, signal disk state on the status LED on the front. Misc fixes that I had lying around for various minor bugs. Sponsored by: Advanis Inc.
* Make an ATAPI CD device appear as /dev/acdN and the individualsos2001-10-191-1/+1
| | | | | | | | | tracks as /dev/acdNtY. This solves the problems with having to deal with howmany and which devices are open. For hysterical reasons ONLY, make a link to both the acdNa & acdNc devices.
* Overhaul to minimize stack usage, in some places >2K was usedsos2001-09-201-1/+8
| | | | on the stack *blush*...
* Fix for the fixate problem on the Yamaha burners.sos2001-05-291-2/+0
|
* The size of the disk can't be gotten reliably with the read capacitysos2001-03-211-4/+1
| | | | command, so use the info from the TOC instead.
* On open create all the CD physical track devices according to thesos2001-03-191-0/+6
| | | | TOC read from the CD, instead of cloning them when asked to.
* Refine the detach/attach code.sos2001-03-141-1/+3
| | | | | | | | | | Proberly fail outstanding bio requests on devices that are detached. This makes it possible to change between disk/cdrom/dvd/whathaveyou in a notebook, just by suspending it, changing the device in the bay (or what you model calls it), unsuspend and the ATA driver will figure out what disappeared and properly fail those, and attach any new devices found.
* Add session argument to *close_disk, allowing to set session type on fixate.sos2001-01-101-24/+7
| | | | | | Add support for different blank/erase types. Update headers.
* Add support for using BurnProff(tm) on drives that support it.sos2001-01-041-2/+4
| | | | This is experimental as I dont have such a drive, reports welcome!!
* Add support for tagged queuing on ATA drives. There is only support forsos2000-09-191-4/+4
| | | | | | | | | | | | | | | | | | IBM's DPTA and DTLA series of drives (no other disk vendors are known to support this) on non-Promise controllers (promise controllers lockup when given the tagged queuing specific commands). It gives especially master/slave comboes about 5% better performance. Add support for the Promise ATA100 OEM chip (pdc20265) Add support for the Cyrix 5530 Change the way status is read from the drives, use the alternate status reg when possible. Better support for DEVFS, the acdXtY devices are now created when needed. Lots of little cleanups.
* Remove sequence checking in the burner support.sos2000-08-061-3/+0
| | | | | This was really a leftover from the wormcontrol days, it is no longer needed when using burncd.
* Fix alignment problem on the alpha reported by several parties.sos2000-05-281-1/+1
|
* Complete the bio/buf divorce for all code below devfs::strategyphk2000-04-151-1/+1
| | | | | | | | | | Exceptions: Vinum untouched. This means that it cannot be compiled. Greg Lehey is on the case. CCD not converted yet, casts to struct buf (still safe) atapi-cd casts to struct buf to examine B_PHYS
* Make ATAPI CD changer devices work, hopefully better than before.sos2000-03-211-1/+3
|
* Add DVD-RAM support.sos2000-02-291-4/+4
| | | | | | | | | | | | The driver constructs a fake disklabel that makes the 'a' partition cover the entire DVD-RAM disk. This cannot be changed from the user side. This solution was chosen because most DVD-RAM will have a UDF (or until we have that CD9660) filesystem on it covering the entire disk, its not really thought as a real random access device. This might change over time, but for now this is what we have, and it is compatible with CDROM's etc, that makes using the minidisk subsystem less than ideal, because of !modulo BDEV_SIZE blocks.
* Update the ata driver to take more advantage of newbus, thissos2000-02-181-0/+1
| | | | | | | | | | | | | | | | was needed to make attach/detach of devices work, which is needed for the PCCARD support. (PCCARD support is still not working though, more to come on that) Support the CMD646 chip which is used on many alphas, sadly only in WDMA2 mode, as the silicon is broken beyond belief for UDMA modes. Lots of cosmetic fixes here and there. Sorry for the size of this megapatchfromhell but it was not possible otherwise... newbus patches based on work from: dfr (Doug Rabson)
* Do refcounting of open devices (more) correctly.sos2000-02-071-1/+0
| | | | count_dev funtion by phk.
* General cleanup.sos2000-01-241-1/+0
| | | | | | | | | | | | | | | | | | | Dont be so verbose in the probe, only ONE line printed now, to get more info boot verbose. Centralise most printf's in ata-all & ata-dma to use the ata_printf function, it saves alot of codelines. Repeat the identify command if drive fails the first. Protect the timeout functions with splbio. Dont update the transfer details before we are sure the transfer succeded, this way they are proberly retried on errors. Move the handling of next_writeable to userland. Use the READ_CD command to read CD's. That enables us to read _anything_ via the normal read/write interface. This kindof obsoletes the READAUDIO ioctl, but we keep that for now.
* Rearrange the probecode, so that 80pin cables can be identifiedsos2000-01-181-6/+5
| | | | | | | correctly on both master and slave. Smash together the ata_params & atapi_params structures as they are more or less equal anyways. Get rid of the last SYSINIT's in here.
* New ATAPI burner utility API, replaces the wormio API.sos2000-01-061-8/+5
|
* Add support for VIA 82C596 controllersos2000-01-031-1/+1
| | | | | | | | Better shared irq handeling for Promise & HPT366 controllers Setup prober PIO mode timings on Promise & HPT366 controllers Update Copyright headers to be Y2K compliant :)
* Use the sys/wormio.h definitions of the CDRIOCNEXTWRITEABLEADDR andpeter1999-10-011-3/+0
| | | | CDRIOCBLANK ioctls rather than duplicating them.
* Fix timeout handeling and add retry counts.sos1999-09-241-6/+6
| | | | | | Add HPT366 probe message (but no real support yet), Add CDR support for several diffenrent blocktypes, also close disk as a multisession CD.
* Support quad & max speeds in wormcontrol.sos1999-09-221-1/+0
| | | | A bit more general cleanup.
* Ten'th update to the new ATA/ATAPI driver:sos1999-09-211-100/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It been awhile since the last major update, as a benefit there are some cool things in this one (and new bugs probably :) )... The ATA driver has grown "real" timeout support for all devices. This means that it should be possible to get in contact with (especially) lost ATAPI devices. It also means that the ATA driver is now usable on notebooks as it will DTRT on resume. An experimental hack at utilizing the Promise66's at UDMA66 is in there, but I cant test it. If someone feels like sending me one, give me a ping. The ATAPI DMA enableling scheme has been changed, also better DMA support for the Aladdin chipset has been implemented for ATAPI devices. Note that the Aladdin apparently only can do DMA reads on ATAPI devices, and the Promise cant do ATAPI DMA at all. I have seen problems on some ATAPI devices that should be able to run in DMA mode, so if you encounter problems with hanging atapi devices during the probe, or during access, disable DMA in atapi-all.c, and let me know. It might be nessesary to do this via a "white list" for known good devices... The ATAPI CDROM driver can now use eject/close without hanging and the bug that caused reading beyond the end of a CD has been fixed. Media change is also handled proberly. DVD drives are identified and are usable as CDROM devices at least, I dont have the HW to test this further, see above :). The ATAPI tape driver has gotten some support for using the DSC method for not blocking the IDE channel during read/write when the device has full buffers. It knows about the OnStream DI-30 device, support is not completed yet, but it can function as a primitive backup medium, without filemarks, and without bad media handeling. This is because the OnStream device doesn't handle this (like everybody else) in HW. It also now supports getting/setting the record position on devices that supports it. Some rather major cleanups and rearrangements as well (cvs -b diff is your freind). I'm closing in on declaring this for beta code, most of the infrastruture is in place by now. As usual USE AT YOUR OWN RISK!!, this is still alpha level code. This driver can hose your disk real bad if anything goes wrong, but now you have been warned :) But please tell me how it works for you! Enjoy! -Søren
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-7/+1
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* Added driver to support ATAPI floppies ie LS-120 & ZIP drives.sos1999-03-031-139/+127
| | | | | | | | | | | | | | | 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.
* Finally!!sos1999-03-011-0/+358
The much roumored replacement for our current IDE/ATA/ATAPI is materialising in the CVS repositories around the globe. So what does this bring us: A new reengineered ATA/ATAPI subsystem, that tries to overcome most of the deficiencies with the current drivers. It supports PCI as well as ISA devices without all the hackery in ide_pci.c to make PCI devices look like ISA counterparts. It doesn't have the excessive wait problem on probe, in fact you shouldn't notice any delay when your devices are getting probed. Probing and attaching of devices are postponed until interrupts are enabled (well almost, not finished yet for disks), making things alot cleaner. Improved performance, although DMA support is still WIP and not in this pre alpha release, worldstone is faster with the new driver compared to the old even with DMA. So what does it take away: There is NO support for old MFM/RLL/ESDI disks. There is NO support for bad144, if your disk is bad, ditch it, it has already outgrown its internal spare sectors, and is dying. For you to try this out, you will have to modify your kernel config file to use the "ata" controller instead of all wdc? entries. example: # for a PCI only system (most modern machines) controller ata0 device atadisk0 # ATA disks device atapicd0 # ATAPI CDROM's device atapist0 # ATAPI tapes #You should add the following on ISA systems: controller ata1 at isa? port "IO_WD1" bio irq 14 controller ata2 at isa? port "IO_WD2" bio irq 15 You can leave it all in there, the system knows how to manage. For now this driver reuses the device entries from the old system (that will probably change later), but remember that disks are now numbered in the sequence they are found (like the SCSI system) not as absolute positions as the old system. Although I have tested this on all the systems I can get my hands on, there might very well be gremlins in there, so use AT YOU OWN RISK!! This is still WIP, so there are lots of rough edges and unfinished things in there, and what I have in my lab might look very different from whats in CVS at any given time. So please have all eventual changes go through me, or chances are they just dissapears... I would very much like to hear from you, both good and bad news are very welcome. Enjoy!! -Søren
OpenPOWER on IntegriCloud