summaryrefslogtreecommitdiffstats
path: root/sys/dev/mcd
Commit message (Collapse)AuthorAgeFilesLines
...
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.eivind1998-01-241-1/+3
| | | | | | | | This introduce an xxxFS_BOOT for each of the rootable filesystems. (Presently not required, but encouraged to allow a smooth move of option *FS to opt_dontuse.h later.) LFS is temporarily disabled, and will be re-enabled tomorrow.
* In all such uses of struct buf: 's/b_un.b_addr/b_data/g'phk1997-12-021-2/+2
|
* Remove a bunch of variables which were unused both in GENERIC and LINT.phk1997-11-071-1/+5
| | | | Found by: -Wunused
* aha1542.c aic6360.c cy.c fd.c ft.cgibbs1997-09-211-17/+19
| | | | | | | | | | | | if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support.
* Removed unused #includes.bde1997-07-201-8/+1
|
* on second thoughts, it doesn't even need <machine/ipl.h> either.peter1997-06-011-2/+1
|
* <machine/spl.h> -> <machine/ipl.h>peter1997-06-011-2/+2
|
* Add the D_DISK flag to the cdevsw structs of various CD-ROM drivers.joerg1997-05-101-2/+2
|
* This mega-commit brings the following:joerg1997-05-041-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . It makes cd9660 root f/s working again. . It makes CD9660 a new-style option. . It adds support to mount an ISO9660 multi-session CD-ROM as the root filesystem (the last session actually, but that's what is expected behaviour). Sigh. The CDIOREADTOCENTRYS did a copyout() of its own, and thus has been unusable for me for this work. Too bad it didn't simply stuff the max 100 entries into the struct ioc_read_toc_entry, but relied on a user supplied data buffer instead. :-( I now had to reinvent the wheel, and created a CDIOREADTOCENTRY ioctl command that can be used in a kernel context. While doing this, i noticed the following bogosities in existing CD-ROM drivers: wcd: This driver is likely to be totally bogus when someone tries two succeeding CDIOREADTOCENTRYS (or now CDIOREADTOCENTRY) commands with requesting MSF format, since it apparently operates on an internal table. scd: This driver apparently returns just a single TOC entry only for the CDIOREADTOCENTRYS command. I have only been able to test the CDIOREADTOCENTRY command with the cd(4) driver. I hereby request the respective maintainers of the other CD-ROM drivers to verify my code for their driver. When it comes to merging this CD-ROM multisession stuff into RELENG_2_2 i will only consider drivers where i've got a confirmation that it actually works.
* Fixed the type of timeout functions and removed casts that hid thebde1997-04-201-10/+17
| | | | | | | | | type mismatches. mcd and scd were/are particularly bogus. They used a general purpose function taking 2 args for the timeout function and fudged varargs stuff to supply the second arg for the timeout case. This broke `cc -mrtd'. Bounce through a timeout function instead. The timeout arg still gets bogusly cast from int to `void *' and back.
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-241-2/+1
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-231-2/+2
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-222-2/+2
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove devconf, it never grew up to be of any use.phk1996-09-061-30/+1
|
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.phk1996-07-231-13/+3
| | | | | | | | | Saves about 280 butes of source per driver, 56 bytes in object size and another 56 bytes moves from data to bss. No functional change intended nor expected. GENERIC should be about one k smaller now :-)
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hbde1996-06-181-3/+1
| | | | | | | is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient).
* Clean up -Wunused warnings.gpalmer1996-06-121-2/+2
| | | | Reviewed by: bde
* Fixed group and permissions for devfs devices (group operator was games;bde1996-06-081-11/+13
| | | | permissions 0640 was 0600).
* Forget that TAILQ's must be init'ed.phk1996-05-031-1/+2
|
* Move from the old buf.b_actf to the new TAILQ(buf.b_act).phk1996-05-031-8/+8
|
* Removed now-unused #includes of <machine/cpu.h>. They were for bootverbosebde1996-04-071-2/+1
| | | | being declared in the wrong place.
* Switched from using devfs_add_sw() to using devfs_add_swf()scrappy1996-03-281-21/+13
| | | | Reviewed by: julian@freebsd.org
* Fix/cleanup raw partition open/close codeache1996-03-171-23/+20
|
* Fix re-sense codeache1996-02-271-4/+6
| | | | Remove unused part of close code
* rmcd0c: now several ioctls (eject/close/debug/reset/etc.) worksache1996-02-271-58/+71
| | | | | even not CD sensed. Open of this device without CD sensed allowed too. Other ioctls re-sense CD for this device.
* Implement CDIOCSTARTache1996-02-131-2/+4
|
* Implement CD_MEDIA_CATALOG request for read_subchannelache1996-02-031-27/+38
| | | | Obtained from: NetBSD
* Detect yet one kind of device (taken from NetBSD)ache1996-02-031-9/+13
| | | | Use more accurate TOC size calculation
* Implement PREVENT & CLOSE ioctlsache1996-02-021-2/+19
|
* Remove close tray on open - works very bad with xcdplayerache1996-02-021-2/+2
|
* Calculate TOC size to match what scsi cd says.ache1996-02-022-4/+4
| | | | Exchange control<->addr_type fields
* Implement PLAYBLOCKS ioctl, add argument checking to other PLAY* ioctlsache1996-02-011-10/+53
| | | | Obtained from: NetBSD (partially)
* Return to #pragma pack(4) after header is doneache1996-02-011-1/+6
| | | | Obtained from: NetBSD
* Fix TOC size calculation: old code assing volume size hereache1996-02-011-2/+4
|
* Audio part: various improvements from NetBSD driverache1996-01-301-19/+32
| | | | Convert LBA to network order now
* READTOCENTRYS: protect against stack overflow when incorrect dataache1996-01-301-7/+13
| | | | stored in CD's TOC
* Don't generate EINVAL for data_len too big in READTOCENTRYS, itache1996-01-301-4/+3
| | | | reduces automatically to reasonable value in the code below
* Fix audio part, especially READTOCENTRYS inspired by NetBSD driverache1996-01-302-48/+58
| | | | and my own ideas
* Hide the probe warnings behind `bootverbose'.joerg1996-01-231-2/+4
|
* Make bin2bcd and bcd2bin global macroes instead of having localphk1996-01-151-15/+1
| | | | implementations all over the place.
* Typo in my last commit.phk1995-12-221-2/+2
|
* Remove crufty "pg" function.phk1995-12-221-2/+2
|
* Replaced nxdump by nodump (if the dump function gets called, then thebde1995-12-101-2/+2
| | | | | | device must be configured, so ENXIO is a bogus errno). Replaced zerosize by nopsize. zerosize was a temporary alias.
* Staticize and cleanup.phk1995-12-101-2/+2
|
* Julian forgot to make the *devsw structures static.phk1995-12-081-3/+3
|
* Pass 3 of the great devsw changesjulian1995-12-081-38/+59
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
* If you're going to mechanically replicate something in 50 filesjulian1995-11-291-2/+2
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-291-15/+30
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* the second set of changes in a move towards getting devices to bejulian1995-11-281-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | totally dynamic. this is only the devices in i386/isa I'll do more tomorrow. they're completely masked by #ifdef JREMOD at this stage... the eventual aim is that every driver will do a SYSINIT at startup BEFORE the probes, which will effectively link it into the devsw tables etc. If I'd thought about it more I'd have put that in in this set (damn) The ioconf lines generated by config will also end up in the device's own scope as well, so ioconf.c will eventually be gutted the SYSINIT call to the driver will include a phase where the driver links it's ioconf line into a chain of such. when this phase is done then the user can modify them with the boot: -c config menu if he wants, just like now.. config will put the config lines out in the .h file (e.g. in aha.h will be the addresses for the aha driver to look.) as I said this is a very small first step.. the aim of THIS set of edits is to not have to edit conf.c at all when adding a new device.. the tabe will be a simple skeleton.. when this is done, it will allow other changes to be made, all teh time still having a fully working kernel tree, but the logical outcome is the complete REMOVAL of the devsw tables. By the end of this, linked in drivers will be exactly the same as run-time loaded drivers, except they JUST HAPPEN to already be linked and present at startup.. the SYSINIT calls will be the equivalent of the "init" call made to a newly loaded driver in every respect. For this edit, each of the files has the following code inserted into it: obviously, tailored to suit.. ----------------------somewhere at the top: #ifdef JREMOD #include <sys/conf.h> #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 static void sd_devsw_install(); #endif /*JREMOD */ ---------------------somewhere that's run during bootup: EVENTUALLY a SYSINIT #ifdef JREMOD sd_devsw_install(); #endif /*JREMOD*/ -----------------------at the bottom: #ifdef JREMOD struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0 }; struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty,/* sd */ seltrue, nommap, sdstrategy }; static sd_devsw_installed = 0; static void sd_devsw_install() { dev_t descript; if( ! sd_devsw_installed ) { descript = makedev(CDEV_MAJOR,0); cdevsw_add(&descript,&sd_cdevsw,NULL); #if defined(BDEV_MAJOR) descript = makedev(BDEV_MAJOR,0); bdevsw_add(&descript,&sd_bdevsw,NULL); #endif /*BDEV_MAJOR*/ sd_devsw_installed = 1; } } #endif /* JREMOD */
OpenPOWER on IntegriCloud