aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mcd
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix up a few easy 'assignment used as truth value' and 'suggest parensPeter Wemm1999-05-061-3/+3
| | | | | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately. Notes: svn path=/head/; revision=46571
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-281-2/+2
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* Initialize isa_devtab entries for interrupt handlers in individualBruce Evans1998-10-221-2/+4
| | | | | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato Notes: svn path=/head/; revision=40565
* Fixed printf format errors (only 1 left in GENERIC now).Bruce Evans1998-07-131-3/+3
| | | | Notes: svn path=/head/; revision=37618
* There is no such thing any more as "struct bdevsw".Julian Elischer1998-07-041-8/+20
| | | | | | | | | | | | | | | | | | | | | There is only cdevsw (which should be renamed in a later edit to deventry or something). cdevsw contains the union of what were in both bdevsw an cdevsw entries. The bdevsw[] table stiff exists and is a second pointer to the cdevsw entry of the device. it's major is in d_bmaj rather than d_maj. some cleanup still to happen (e.g. dsopen now gets two pointers to the same cdevsw struct instead of one to a bdevsw and one to a cdevsw). rawread()/rawwrite() went away as part of this though it's not strictly the same patch, just that it involves all the same lines in the drivers. cdroms no longer have write() entries (they did have rawwrite (?)). tapes no longer have support for bdev operations. Reviewed by: Eivind Eklund and Mike Smith Changes suggested by eivind. Notes: svn path=/head/; revision=37389
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-2/+2
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund1998-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. Notes: svn path=/head/; revision=32726
* In all such uses of struct buf: 's/b_un.b_addr/b_data/g'Poul-Henning Kamp1997-12-021-2/+2
| | | | Notes: svn path=/head/; revision=31493
* Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp1997-11-071-1/+5
| | | | | | | Found by: -Wunused Notes: svn path=/head/; revision=31016
* aha1542.c aic6360.c cy.c fd.c ft.cJustin T. Gibbs1997-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. Notes: svn path=/head/; revision=29677
* Removed unused #includes.Bruce Evans1997-07-201-8/+1
| | | | Notes: svn path=/head/; revision=27555
* on second thoughts, it doesn't even need <machine/ipl.h> either.Peter Wemm1997-06-011-2/+1
| | | | Notes: svn path=/head/; revision=26348
* <machine/spl.h> -> <machine/ipl.h>Peter Wemm1997-06-011-2/+2
| | | | Notes: svn path=/head/; revision=26346
* Add the D_DISK flag to the cdevsw structs of various CD-ROM drivers.Joerg Wunsch1997-05-101-2/+2
| | | | Notes: svn path=/head/; revision=25657
* This mega-commit brings the following:Joerg Wunsch1997-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. Notes: svn path=/head/; revision=25460
* Fixed the type of timeout functions and removed casts that hid theBruce Evans1997-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. Notes: svn path=/head/; revision=25056
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includeBruce Evans1997-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. Notes: svn path=/head/; revision=24203
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.Bruce Evans1997-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. Notes: svn path=/head/; revision=24131
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-222-2/+2
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Remove devconf, it never grew up to be of any use.Poul-Henning Kamp1996-09-061-30/+1
| | | | Notes: svn path=/head/; revision=18084
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.Poul-Henning Kamp1996-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 :-) Notes: svn path=/head/; revision=17264
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hBruce Evans1996-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). Notes: svn path=/head/; revision=16471
* Clean up -Wunused warnings.Gary Palmer1996-06-121-2/+2
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=16322
* Fixed group and permissions for devfs devices (group operator was games;Bruce Evans1996-06-081-11/+13
| | | | | | | permissions 0640 was 0600). Notes: svn path=/head/; revision=16210
* Forget that TAILQ's must be init'ed.Poul-Henning Kamp1996-05-031-1/+2
| | | | Notes: svn path=/head/; revision=15577
* Move from the old buf.b_actf to the new TAILQ(buf.b_act).Poul-Henning Kamp1996-05-031-8/+8
| | | | Notes: svn path=/head/; revision=15574
* Removed now-unused #includes of <machine/cpu.h>. They were for bootverboseBruce Evans1996-04-071-2/+1
| | | | | | | being declared in the wrong place. Notes: svn path=/head/; revision=15116
* Switched from using devfs_add_sw() to using devfs_add_swf()Marc G. Fournier1996-03-281-21/+13
| | | | | | | Reviewed by: julian@freebsd.org Notes: svn path=/head/; revision=14873
* Fix/cleanup raw partition open/close codeAndrey A. Chernov1996-03-171-23/+20
| | | | Notes: svn path=/head/; revision=14654
* Fix re-sense codeAndrey A. Chernov1996-02-271-4/+6
| | | | | | | Remove unused part of close code Notes: svn path=/head/; revision=14286
* rmcd0c: now several ioctls (eject/close/debug/reset/etc.) worksAndrey A. Chernov1996-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. Notes: svn path=/head/; revision=14285
* Implement CDIOCSTARTAndrey A. Chernov1996-02-131-2/+4
| | | | Notes: svn path=/head/; revision=14074
* Implement CD_MEDIA_CATALOG request for read_subchannelAndrey A. Chernov1996-02-031-27/+38
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=13886
* Detect yet one kind of device (taken from NetBSD)Andrey A. Chernov1996-02-031-9/+13
| | | | | | | Use more accurate TOC size calculation Notes: svn path=/head/; revision=13874
* Implement PREVENT & CLOSE ioctlsAndrey A. Chernov1996-02-021-2/+19
| | | | Notes: svn path=/head/; revision=13866
* Remove close tray on open - works very bad with xcdplayerAndrey A. Chernov1996-02-021-2/+2
| | | | Notes: svn path=/head/; revision=13864
* Calculate TOC size to match what scsi cd says.Andrey A. Chernov1996-02-022-4/+4
| | | | | | | Exchange control<->addr_type fields Notes: svn path=/head/; revision=13862
* Implement PLAYBLOCKS ioctl, add argument checking to other PLAY* ioctlsAndrey A. Chernov1996-02-011-10/+53
| | | | | | | Obtained from: NetBSD (partially) Notes: svn path=/head/; revision=13833
* Return to #pragma pack(4) after header is doneAndrey A. Chernov1996-02-011-1/+6
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=13824
* Fix TOC size calculation: old code assing volume size hereAndrey A. Chernov1996-02-011-2/+4
| | | | Notes: svn path=/head/; revision=13822
* Audio part: various improvements from NetBSD driverAndrey A. Chernov1996-01-301-19/+32
| | | | | | | Convert LBA to network order now Notes: svn path=/head/; revision=13770
* READTOCENTRYS: protect against stack overflow when incorrect dataAndrey A. Chernov1996-01-301-7/+13
| | | | | | | stored in CD's TOC Notes: svn path=/head/; revision=13743
* Don't generate EINVAL for data_len too big in READTOCENTRYS, itAndrey A. Chernov1996-01-301-4/+3
| | | | | | | reduces automatically to reasonable value in the code below Notes: svn path=/head/; revision=13738
* Fix audio part, especially READTOCENTRYS inspired by NetBSD driverAndrey A. Chernov1996-01-302-48/+58
| | | | | | | and my own ideas Notes: svn path=/head/; revision=13732
* Hide the probe warnings behind `bootverbose'.Joerg Wunsch1996-01-231-2/+4
| | | | Notes: svn path=/head/; revision=13598
* Make bin2bcd and bcd2bin global macroes instead of having localPoul-Henning Kamp1996-01-151-15/+1
| | | | | | | implementations all over the place. Notes: svn path=/head/; revision=13438
* Typo in my last commit.Poul-Henning Kamp1995-12-221-2/+2
| | | | Notes: svn path=/head/; revision=12966
* Remove crufty "pg" function.Poul-Henning Kamp1995-12-221-2/+2
| | | | Notes: svn path=/head/; revision=12960
* Replaced nxdump by nodump (if the dump function gets called, then theBruce Evans1995-12-101-2/+2
| | | | | | | | | device must be configured, so ENXIO is a bogus errno). Replaced zerosize by nopsize. zerosize was a temporary alias. Notes: svn path=/head/; revision=12736