summaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fixed pedantic semantics errors (bitfields not of type int, signed intBruce Evans1998-06-084-30/+30
| | | | | | | | | | or unsigned int (this doesn't change the struct layout, size or alignment in any of the files changed in this commit, at least for gcc on i386's. Using bitfields of type u_char may affect size and alignment but not packing)). Notes: svn path=/head/; revision=36767
* Correct even more ioctl breakage :(Søren Schmidt1998-06-086-6/+6
| | | | | | | | Doesn't people check their code before committing anymore, it could at least compile ???? Notes: svn path=/head/; revision=36764
* Fix spelling in printf().Joseph Koshy1998-06-081-2/+2
| | | | Notes: svn path=/head/; revision=36757
* Fixed an ioctl which grew overnight.Bruce Evans1998-06-081-2/+2
| | | | Notes: svn path=/head/; revision=36748
* Fix another DEVFS/SLICE ioctl.Doug Rabson1998-06-071-2/+2
| | | | Notes: svn path=/head/; revision=36740
* This is a prototype implementation of the draft-mogul-pps-api-##.txtPoul-Henning Kamp1998-06-072-50/+62
| | | | | | | | | | | | paper. It will be updated along with the draft and possible subsequent standard. The ppbus based pps driver is updated to implement this API. Notes: svn path=/head/; revision=36739
* Fix some more ioctls which I missed becausese they were hidden by optionsDoug Rabson1998-06-074-10/+10
| | | | | | | which were not in LINT. Notes: svn path=/head/; revision=36738
* Fix the retyping of the ioctl cmd parm from int to u_long.Søren Schmidt1998-06-071-2/+2
| | | | Notes: svn path=/head/; revision=36737
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-0739-85/+92
| | | | | | | | | | | | | 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
* keymap -> key_map so that the kernel will compile withSteve Price1998-06-061-2/+2
| | | | | | | | | | -DESKEYMAP. PR: 6864 Submitted by: Javier Rueda <jmrueda@diatel.upm.es> Notes: svn path=/head/; revision=36704
* Reviewed by: hasty@star-gate.comAmancio Hasty1998-06-051-0/+2
| | | | | | | | | Submitted by: Roger Hardiman <roger@cs.strath.ac.uk> I left out a line of code from Roger's last patch :( Notes: svn path=/head/; revision=36663
* Force success of the probe (after doing it as before except in oneBruce Evans1998-06-031-4/+5
| | | | | | | | | | | | | | | | | miscconfigured case) if the port is the console. This fixes several bugs: - if all sioprobe()s failed, then the console driver followed null pointers in cdevsw[]. - if the sioprobe() for the console failed but another sioprobe() succeeded, then init hung early when the console couldn't be opened. - it was silly for the console to not be there after printing boot messages on it. Bugs introduced by this are hopefully no worse than old ones caused by forcing the success of the `cn' level probe. Notes: svn path=/head/; revision=36613
* Fixed a printf() arg botch in the previous commit.Bruce Evans1998-06-031-7/+6
| | | | | | | | | | | | Only complain about an irq mismatch in the probe if the configured irq doesn't become active, and then print the bitmap of irqs that became active (including clock irqs) instead of just the first (not including clock irqs). Bugs reported by: msmith Notes: svn path=/head/; revision=36611
* o Return error when the controller can't accept commands.Eivind Eklund1998-06-023-12/+11
| | | | | | | | | | o Make driver less chatty on boot (only announce version under bootverbose) Submitted by: Simon Shapiro <shimon@simon-shapiro.org> Notes: svn path=/head/; revision=36579
* Converted the ICU-level interrupt tests (3, 5 and 8) in sioprobe() intoBruce Evans1998-05-311-22/+27
| | | | | | | | | | | | a test of the irq number, and made failure of this test non-fatal. Removed related unused complications for the APIC_IO case. Removed the no-test3 flag. Deverbosified the failure messages for the other tests. Removed the per-port verbose flag - just use the general verbose flag. Notes: svn path=/head/; revision=36492
* Fix some bitrot in the multicast support, the move from TAILQ macros wasn't ↵Paul Richards1998-05-271-2/+2
| | | | | | | implemented fully. Notes: svn path=/head/; revision=36413
* This time add an Id string that'll actually get expanded :-)Paul Richards1998-05-271-1/+1
| | | | Notes: svn path=/head/; revision=36412
* Add an ID string (can't believe it never had one!)Paul Richards1998-05-271-0/+1
| | | | Notes: svn path=/head/; revision=36411
* Reviewed by: hasty@freebsd.orgAmancio Hasty1998-05-241-7/+0
| | | | | | | | | Submitted by: hasty@star-gate.com Eliminate NTSC default setting if user choses a different video format. Notes: svn path=/head/; revision=36334
* LoadSoftModem() routine at sio.c does not trap general serial I/Os.Poul-Henning Kamp1998-05-201-2/+2
| | | | | | | | | | | It fauls to probe eather DSI Modem or others. PR: 4657 Reviewed by: phk Submitted by: Kenji Saito <marukun@mx2.nisiq.net> Notes: svn path=/head/; revision=36246
* Reviewed by: ahasty@freebsd.orgAmancio Hasty1998-05-191-6/+35
| | | | | | | | | | | | | | | Submitted by: Roger Hardiman <roger@cs.strath.ac.uk> options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL in the kernel config file makes the driver's video_open() function select PAL rather than NTSC. This fixed all the hangs on my Dual Crystal card when using a PAL video signal. As a result, you can loose the tsleep (of 2 seconds - now 0.25!!) which I previously added. (Unless someone else wanted the 0.25 second tsleep). Notes: svn path=/head/; revision=36172
* Include "eisa.h" and only provide code if NEISA > 0.Justin T. Gibbs1998-05-171-1/+4
| | | | Notes: svn path=/head/; revision=36129
* s/nanoruntime/nanouptime/gPoul-Henning Kamp1998-05-171-9/+9
| | | | | | | | | s/microruntime/microuptime/g Reviewed by: bde Notes: svn path=/head/; revision=36119
* 1.31 Randall Hopper <rhh@ct.picker.com>Amancio Hasty1998-05-163-279/+441
| | | | | | | | | | | | | | | | | | | | | | submitted ioctl to clear the video buffer prior to starting video capture Amancio : clean up yuv12 so that it does not affect rgb capture. Basically, fxtv after capturing in yuv12 mode , switching to rgb would cause the video capture to be too bright. 1.32 disable inverse gamma function for rgb and yuv capture. fixed meteor brightness ioctl it now converts the brightness value from unsigned to signed. 1.33 added sysctl: hw.bt848.tuner, hw.bt848.reverse_mute, hw.bt848.card card takes a value from 0 to bt848_max_card tuner takes a value from 0 to bt848_max_tuner reverse_mute : 0 no effect, 1 reverse tuner mute function some tuners are wired reversed :( Notes: svn path=/head/; revision=36090
* Fix list corruption and memory leak that could occur whenJustin T. Gibbs1998-05-141-2/+6
| | | | | | | releasing EISA irqs. Notes: svn path=/head/; revision=36041
* The PnP code in 2.2.6 detects the Motorola ModemSurfer 56K,Poul-Henning Kamp1998-05-131-1/+2
| | | | | | | | | | | | but doesn't do much of anything with it. I added it to siopnp_ids[] and it was found and recognized as a serial port. PR: 6605 Reviewed by: phk Submitted by: Dave Marquardt <marquard@zilker.net> Notes: svn path=/head/; revision=36004
* Add support for the Yamaha YMF-719.Steve Price1998-05-102-2/+8
| | | | | | | | PR: 6348 Submitted by: Yoshiak Uchikawa <yoshiaki@kt.rim.or.jp> Notes: svn path=/head/; revision=35927
* There is no dump routine for fd so give it an explicit NULL entryJulian Elischer1998-05-061-2/+3
| | | | | | | in the SLICE table. Notes: svn path=/head/; revision=35815
* Don't call a dump routine if there isn't one. (e.g. in floppy driver)Julian Elischer1998-05-062-4/+12
| | | | Notes: svn path=/head/; revision=35814
* Add dump support to the DEVFS/slice code.Julian Elischer1998-05-066-14/+88
| | | | | | | | | now we can actually catch our crashes :-) Submitted by: Luoqi Chen <luoqi@chen.ml.org> (the man who's everywhere) Notes: svn path=/head/; revision=35812
* Detect USR PnP x2 modem.Poul-Henning Kamp1998-05-041-1/+2
| | | | | | | | | PR: 6496 Reviewed by: phk Submitted by: Kurt D. Zeilenga <Kurt@Boolean.NET> Notes: svn path=/head/; revision=35686
* Support compiling with `gcc -ansi'. Just use __inline instead of inline.Bruce Evans1998-05-011-2/+5
| | | | | | | | | | [__]inline is only used to bloat the code here. It gives a separate copy of all the strings for each time this header is included... Fixed misuse of __P(()). Notes: svn path=/head/; revision=35597
* Oops- osreldate.h is not around like I thought it would be... hmmm.. quick ↵Matt Jacob1998-04-241-2/+8
| | | | | | | fix to get around this Notes: svn path=/head/; revision=35429
* slice_device.c: permissions changes for SLICE devicesJulian Elischer1998-04-242-6/+5
| | | | | | | | | vn.c: change time of SYSINIT scheduling. wd.c don't revert to fully closed state. ( may require more) all in SLICE mode only. Notes: svn path=/head/; revision=35418
* Bad144 support for the slice system (!)Julian Elischer1998-04-223-23/+143
| | | | | | | | | Submitted by: luoqi@watermarkgroup.com (Luoqi Chen) I'm amazed by this. Slice has only been checked in for 2 days.. Notes: svn path=/head/; revision=35391
* Add support for the Qlogic ISP SCSI && FC/AL AdaptersMatt Jacob1998-04-221-0/+559
| | | | Notes: svn path=/head/; revision=35389
* Add support for the Qlogic ISP SCSI && FC/AL AdaptersMatt Jacob1998-04-228-0/+8325
| | | | Notes: svn path=/head/; revision=35388
* close() is no longer a SLICE method.Julian Elischer1998-04-226-38/+64
| | | | | | | | Close is simply an open with no-read and no-write once internal to SLICE (it still exports a close to the rest of the kernel) Notes: svn path=/head/; revision=35386
* Don't allow an open to succeed if the device is invalidated during theJulian Elischer1998-04-221-1/+3
| | | | | | | open process. Notes: svn path=/head/; revision=35376
* - breakage of the warnings about pessimized i/o port types.Brian Somers1998-04-212-31/+12
| | | | | | | | | | | | | - pessimized i/o port types. - other pessimized types. - Don't use DEBUG (causes LINT warnings). Use DGB_DEBUG instead. - commented out code. - cloned code that doesn't apply ("Smarts" is for the cy driver only). Submitted by: bde Notes: svn path=/head/; revision=35372
* Correct the digiboard device names in agreementBrian Somers1998-04-211-11/+16
| | | | | | | with the man page (POLA). Notes: svn path=/head/; revision=35371
* o Move debug stuff down a bit so that it doesn't try toBrian Somers1998-04-211-31/+38
| | | | | | | | | | | dereference uninitialized pointers. o Fix DEVFS permissions o Fix DEVFS minor numbers o Add initial & lock devices for cua device. o Fix permissions in line with sio. Notes: svn path=/head/; revision=35365
* Add changes and code to implement a functional DEVFS.Julian Elischer1998-04-199-52/+3777
| | | | | | | | | | | | | | | | | | | | | | | | This code will be turned on with the TWO options DEVFS and SLICE. (see LINT) Two labels PRE_DEVFS_SLICE and POST_DEVFS_SLICE will deliniate these changes. /dev will be automatically mounted by init (thanks phk) on bootup. See /sys/dev/slice/slice.4 for more info. All code should act the same without these options enabled. Mike Smith, Poul Henning Kamp, Soeren, and a few dozen others This code does not support the following: bad144 handling. Persistance. (My head is still hurting from the last time we discussed this) ATAPI flopies are not handled by the SLICE code yet. When this code is running, all major numbers are arbitrary and COULD be dynamically assigned. (this is not done, for POLA only) Minor numbers for disk slices ARE arbitray and dynamically assigned. Notes: svn path=/head/; revision=35319
* Forgot to add opt_bktr.hAmancio Hasty1998-04-191-0/+1
| | | | Notes: svn path=/head/; revision=35313
* Reviewed by: AmancioAmancio Hasty1998-04-181-21/+97
| | | | | | | | | | | | | | Submitted by: Roger Hardiman <roger@cs.strath.ac.uk> Roger Hardiman <roger@cs.strath.ac.uk> : Revised autodetection code to correctly handle both old and new VideoLogic Captivator PCI cards. Added tsleep of 2 seconds to initialistion code for PAL users. Corrected clock selection code on format change. --- Amancio Notes: svn path=/head/; revision=35259
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-1713-26/+26
| | | | Notes: svn path=/head/; revision=35256
* Stop the screensaver before switching consoles.Dag-Erling Smørgrav1998-04-171-1/+7
| | | | Notes: svn path=/head/; revision=35248
* Swapped "should we just return" and "should we stop the screensaver"Dag-Erling Smørgrav1998-04-161-8/+11
| | | | | | | in scrn_timer() to avoid deadlock with graphical screensavers. Notes: svn path=/head/; revision=35223
* Support compiling with `gcc -ansi'.Bruce Evans1998-04-1511-73/+75
| | | | Notes: svn path=/head/; revision=35210
* Fixed autonegotiation. Card registers are now accessed via memorySemen Ustimenko1998-04-131-143/+218
| | | | | | | not i/o space. Notes: svn path=/head/; revision=35170