summaryrefslogtreecommitdiffstats
path: root/sys/dev/mcd
Commit message (Collapse)AuthorAgeFilesLines
* Newly implemented ioctls list:ache1994-09-032-246/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DIOCGDINFO, DIOCGPART, DIOCWDINFO, DIOCSDINFO, CDIOCPLAYMSF, CDIOCRESET, CDIOCEJECT. CDIOCPLAYBLOCKS removed (old implementation completely wrong and I don't know how to implement it correctly). All routines now detects media change correctly. DELAY_GETREPLAY increased for long time access from first track to last. mcd_waitrdy() now use MIN_DELAY=15 as minimal delay which independs of machine speed. mcd_doread() now uses real status (old code uses obsoleted soft copy of it). clear XBSY on error in mcd_doread() mcd_statrt(): add missing splx(s), cause dead hang with unmatched slpbio() optimize mcd_doread(), don't set CD mode each time, keep soft copy of mode. call getdisklabel() _after_ mcdsize() for proper sizes mcdopen(): old code forget to set MCDREADRAW in flags when open RAW partition, doread check it for setting RAW CD mode. Do nothing on stray interrupt (which sometimes occurse, because driver read data block too slow, DOS driver use 'insb' here). Old stray code cause timeouts. Read toc entries code rewritten to return many requested entries (as supposed) instead of one entry with incorrect structure. CMDREAD2 requests covered with disable_intr()/enable_intr() (from DOS driver) Read junk code added after read block code in doread (from DOS driver) mcd_read_toc() code fixed to read all needed entries, old code cause some audio tracks is not played. mcd_playtracks() code fixed to proper check valid track range. New binary read modes implemented (from DOS driver).
* Raw partition is 2 nowache1994-08-291-2/+2
|
* Bruce was right, stupid device returns non-busy state too early,ache1994-08-281-8/+6
| | | | add only one DELAY(10) after inb(non_busy) now
* Continue previous fix:ache1994-08-271-3/+5
| | | | Add MIN_DELAY definition instead of hard-coded 10
* 1) Raw partition number was incorrectly 0, changed to 3ache1994-08-271-5/+22
| | | | | | 2) DELAY(1) does nothing, it affects audio playing f.e: driver can't play second half of disk, changed to DELAY(10) 3) Debugging messages #ifdef DEBUGed
* Change all #includes to follow the current Berkeley style. Some of thesewollman1994-08-131-17/+17
| | | | | | | | | | | | | | | | | | | | | ``changes'' are actually not changes at all, but CVS sometimes has trouble telling the difference. This also includes support for second-directory compiles. This is not quite complete yet, as `config' doesn't yet do the right thing. You can still make it work trivially, however, by doing the following: rm /sys/compile mkdir /usr/obj/sys/compile ln -s M-. /sys/compile cd /sys/i386/conf config MYKERNEL cd ../../compile/MYKERNEL ln -s /sys @ rm machine ln -s @/i386/include machine make depend make
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-1/+1
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* Change old alias b_cylin to b_residgclarkii1994-04-301-2/+2
|
* Bug fixes and performance improvements from John Dyson and myself:dg1994-04-201-1/+4
| | | | | | | | | | | | | | | 1) check va before clearing the page clean flag. Not doing so was causing the vnode pager error 5 messages when paging from NFS. (pmap.c) 2) put back interrupt protection in idle_loop. Bruce didn't think it was necessary, John insists that it is (and I agree). (swtch.s) 3) various improvements to the clustering code (vm_machdep.c). It's now enabled/used by default. 4) bad disk blocks are now handled properly when doing clustered IOs. (wd.c, vm_machdep.c) 5) bogus bad block handling fixed in wd.c. 6) algorithm improvements to the pageout/pagescan daemons. It's amazing how well 4MB machines work now.
* Changed the raw partition number from 3 to 0. This change lets us useats1994-03-211-2/+2
| | | | | | /dev/mcd0a instead of /dev/mcd0d. This is more conforming to the /dev/cd0a for the SCSI cdrom drives. It breaks the convention d the whole drive. But the question is, do we really need partitions on cdrom drives ?
* Used definable status codes (some may be sharable, esp the door open codes, butjkh1994-03-061-8/+8
| | | | | | it still looks a little suspicious that so many of the status codes are missing so I'm not going to adopt all of the existing ones yet. Try to be more descriptive in the use of hex constants.
* Added more status bytes for the mitsumi drive. This is only an uglyats1994-03-051-2/+7
| | | | | | | | | | | | | hack in the moment for testing purposes and to get the drive going again. 0x20 means empty drive. 0x30 means closed drive with CDROM inserted. 0x80 means drive pulled out, but door closed. 0xa0 means drive pulled out and door open. Luckily none of these values are the same as that reported for Ethernet cards ( 0 for WD8003E, 0x40 for WD8013EPC, 0x60 for NE2000). The bad part is, the probe code gets the WD8003E so hosed, that it is no longer usable after it. No problem with the WD8013EPC.
* This should stop the false probes in their slimey little tracks.jkh1994-03-051-2/+5
|
* This is Jordans probe code fixes. Tested on LU002, FX001D. Then I wentrgrimes1994-02-222-130/+220
| | | | | in and cleaned the spaces vs tabs up, and made the code a little closer to KNF.
* Fixed bug in probe that was causing it to always probe true.dg1994-02-071-2/+2
|
* Update for new format of cd_toc_entry that was changed in sys/cdio.h.rgrimes1994-02-061-4/+4
|
* Added the correct typecast's to the untimeout calls. Added a missingats1994-01-221-4/+5
| | | | return statement in the probe. This should have fixed all compiler warnings.
* Reduced the delay amounts per patch submitted by gclarkii@netport.neosoft.comnate1994-01-181-4/+4
|
* From Gary Clark II:jkh1994-01-162-72/+46
| | | | | | 1. Fixed probe to work with FX mitsumi's. 2. Added some defines in prep for adding interupts and dma
* Make everything compile with -Wtraditional. Make it easier to distributewollman1993-12-191-8/+13
| | | | | | | | | | | a binary link-kit. Make all non-optional options (pagers, procfs) standard, and update LINT to reflect new symtab requirements. NB: -Wtraditional will henceforth be forgotten. This editing pass was primarily intended to detect any constructions where the old code might have been relying on traditional C semantics or syntax. These were all fixed, and the result of fixing some of them means that -Wall is now a realistic possibility within a few weeks.
* Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, andwollman1993-11-251-10/+13
| | | | add same (sans -Werror) to Makefile for future compilations.
* Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, somergrimes1993-10-161-2/+1
| | | | minor cleanup. Added $Id$ to files that did not have any version info, etc
* Mitsumi cd rom driver from Holger Viet as fixed up by Gary Clark II.rgrimes1993-10-122-0/+1411
Still a little rought, but it seems to be working.
OpenPOWER on IntegriCloud