aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* A workaround for screen flicker; eliminate some I/O access to the VGAKazutaka YOKOTA1998-08-101-1/+17
| | | | | | | | | | | | | | | chip. It has been observed that the problem is most apparent: a) in notebook computers, b) and/or in the systems with C&T video chips. Define the new configuration option SC_BAD_FLICKER in the kernel configuration file to remove outb()/outw() calls in question. Notes: svn path=/head/; revision=38216
* Support the PAL version of the BT878 based Haupauge WinTV/PCI.Søren Schmidt1998-08-101-0/+1
| | | | | | | Submitted by: Matthias Scheler <tron@netbsd.org> Notes: svn path=/head/; revision=38211
* MF22: Shut this thing up by default.Jordan K. Hubbard1998-08-091-2/+2
| | | | Notes: svn path=/head/; revision=38197
* Updated Hauppauge detection code for Tuner ID 0x0a for newer NTSCSøren Schmidt1998-08-081-5/+13
| | | | | | | | | WinCastTV 404 with Bt878 chipset. Tidied up PAL default in video_open() Submitted by: Roger Hardiman <roger@cs.strath.ac.uk> Notes: svn path=/head/; revision=38184
* Fix some things Simon had broken, basically making LINT compile again.Eivind Eklund1998-08-061-9/+3
| | | | | | | | Submitted by: Simon Shapiro <shimon@simon-shapiro.org> Pointed out by: bde Notes: svn path=/head/; revision=38147
* The daemon, snake and star savers should refuse to load if the currentKazutaka YOKOTA1998-08-063-3/+12
| | | | | | | | video mode is the VESA mode, because they cannot work properly under the VESA mode support as in the current form. Notes: svn path=/head/; revision=38137
* Add Id keywordBrian Somers1998-08-053-2/+9
| | | | Notes: svn path=/head/; revision=38131
* Update DPT driver from 1.4.3 to 1.4.5Eivind Eklund1998-08-053-159/+294
| | | | | | | Submitted by: Simon Shapiro <shimon@simon-shapiro.org> Notes: svn path=/head/; revision=38115
* Add driver dgm - for the Digiboard PC/XemBrian Somers1998-08-044-0/+7023
| | | | | | | | Submitted by: "IBS / Andre Oppermann" <andre@pipeline.ch> DEVFS additions: brian Notes: svn path=/head/; revision=38107
* Implemented a more sophisticated mechanism for handling transmitterDavid Greenman1998-08-041-45/+103
| | | | | | | | | | | interrupts which now defers them until the transmit queue if filled up with completed buffers. This has two advantages: first, it reduces the number of transmitter interrupts to just 1/120th of the rate that they occured previously, and two, running down many buffers at once has much improved cache effects. Notes: svn path=/head/; revision=38066
* Major ppbus updates from the author.Mike Smith1998-08-0315-978/+3056
| | | | | | | | | | | | | | | | | | | | - ppbus now supports PLIP via the if_plip driver - ieee1284 infrastructure added, including parallel-port PnP - port microsequencer added, for scripting the sort of port I/O that is common with parallel devices without endless calls up and down through the driver structure. - improved bus ownership behaviour among the ppbus-using drivers. - improved I/O chipset feature detection The vpo driver is now implemented using the microsequencer, leading to some performance improvements as well as providing an extensive example of its use. Reviewed by: msmith Submitted by: Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr> Notes: svn path=/head/; revision=38061
* 1. Reorganized screen saver related code so that both the LKM screenKazutaka YOKOTA1998-08-032-146/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | saver and splash screen can all work properly with syscons. Note that the splash screen option (SC_SPLASH_SCREEN) does not work yet, as it requires additional code from msmith. - Reorganized the splash screen code to match the latest development in this area. - Delay screen switch in `switch_scr()' until the screen saver is stopped, if one is running, - Start the screen saver immediately, if any, when the `saver' key is pressed. (There will be another commit for `kbdcontrol' to support this keyword in the keymap file.) - Do not always stop the screen saver when mouse-related ioctls are called. Stop it only if the mouse is moved or buttons are clicked; don't stop it if any other mouse ioctls are called. 2. Added provision to write userland screen savers. (Contact me if you are interested in writing one.) - Added CONS_IDLE, CONS_SAVERMODE, and CONS_SAVERSTART ioctls to support userland screen savers. 3. Some code clean-ups. Notes: svn path=/head/; revision=38052
* - When the system is shut down, switch to the vty0 if possible.Kazutaka YOKOTA1998-08-031-3/+17
| | | | | | | | | - Don't try to ring bell when system is going down. Beacuse the clock code is about to be stopped, the timeout routine won't be called anymore. Notes: svn path=/head/; revision=38047
* Fix the bug which always reallocated the cut buffer wheneverKazutaka YOKOTA1998-08-031-7/+18
| | | | | | | | | the screen mode is changed even if another vty has larger size. Reallocate the buffer only when the new screen size is larger than the current cut buffer size. Notes: svn path=/head/; revision=38046
* Don't accept the blank time value, if it is too big.Kazutaka YOKOTA1998-08-031-2/+4
| | | | | | | PR: bin/6188 Notes: svn path=/head/; revision=38045
* - Add new bell types: "quiet.normal" and "quiet.visual".Kazutaka YOKOTA1998-08-032-4/+12
| | | | | | | | | | | | | | | When bell is of "quiet" types, the console won't ring (or flush) if the ringing process is in a background vty. PR: i386/2853 - Modify the escape sequence 'ESC[=%d;%dB' so that bell pitch and duration are set in hertz and msecs by kbdcontrol(1). There will be a corresponding kbdcontrol patch. PR: bin/6037 Submitted by: Kouichi Hirabayashi (kh@eve.mogami-wire.co.jp) Notes: svn path=/head/; revision=38043
* Added 82555B support for media status.David Greenman1998-08-021-1/+2
| | | | Notes: svn path=/head/; revision=38007
* Reordered fxp_softc for optimal cacheline behavior.David Greenman1998-08-021-8/+10
| | | | Notes: svn path=/head/; revision=38006
* Killed unused variable/assignment.David Greenman1998-08-021-2/+1
| | | | Notes: svn path=/head/; revision=38005
* Added a flags arg to dsopen() and updated drivers. The DSO_ONESLICEBruce Evans1998-07-301-3/+3
| | | | | | | | | | | | | | and DSO_NOLABELS flags prevent searching for slices and labels respectively. Current drivers don't set these flags. When DSO_NOLABELS is set, the in-core label for the whole disk is cloned to create an in-core label for each slice. This gives the correct result (a good in-core label for the compatibility slice) if DSO_ONESLICE is set or only one slice is found, but usually gives broken labels otherwise, so DSO_ONESLICE should be set if DSO_NOLABELS is set. Notes: svn path=/head/; revision=37974
* Typo fix: teh --> (the|they)Alexander Langer1998-07-301-2/+2
| | | | Notes: svn path=/head/; revision=37965
* Fixed sign extension bugs awoken by changing speed_t to an unsignedBruce Evans1998-07-292-4/+8
| | | | | | | | | | type. 19200, 1200 and other relatively uninteresting speeds were broken. Submitted by: Rob Mallory <rmallory@qualcomm.com> Notes: svn path=/head/; revision=37959
* Fixed error handling:Bruce Evans1998-07-291-56/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Call isa_dmadone() whenever necessary to stop DMA and/or free bounce buffers. Undead DMA corrupted the malloc freelist fairly consistently in the following configuration: SLICE kernel, 2 floppy drives, no disk in fd0, disk in fd1. - Don't call fdc_reset() from fd_timeout(). Doing so gave an "extra" interrupt which was usually misinterpreted as being for completion of the next FDC command; the interrupt for completion of the next FDC command was then usually misinterpreted... There were further complications for interrupts latched by the soft-spl mechanism so that they were delivered after all the h/w interrupts went away. This caused at least wrong head settle delays and may be why the FreeBSD floppy driver seems to munch floppies more than most floppy drivers. The reset was unnecessary anyway in cases that didn't have the bug described next, since is was repeated a little later for the IOTIMEDOUT state. The state machine has complications to handle resets correctly, so just use it. - Don't call retrier() from fd_timeout(). The IOTIMEDOUT state needs to be processed next, and it isn't valid to set to that state if retrier() has aborted the current transfer. Doing so caused null pointer panics after the previous bug was fixed. Improved error handling: - If an i/o is aborted, arrange to reset in the state machine before doing the next i/o. New fdc flag for this. This fixes spurious warnings and lengthy busy-waiting for the next i/o. - Split STARTRECAL into RESETCOMPLETE and STARTRECAL and only check for the results from reset if we actually reset. This fixes spurious warnings for other paths to STARTRECAL. [Oops, it may break reset handling for motor-off resets.] Cleanups in fd_timeout(): - Renamed to fd_iotimeout() to make it clearer that it is only used for i/o. - Don't handle the bp == 0 case. This case can't happen for i/o. - Don't check for controller-busy. We know it must be. - Don't print anything. retrier() already prints too much for normal errors. - Fudge the state differently so that the state machine advances fdc->retry and the status is invalid (perhaps this should fudge a valid state like the one for WP). - Style fixes. Notes: svn path=/head/; revision=37945
* update ATM driver. (base version: midway.c 1.67 --> 1.68)Kenjiro Cho1998-07-293-141/+641
| | | | | | | | | | | | | | | | | | | | | | | | | | several new features are added: - support vc/vp shaping - support pvc shadow interface code cleanup: - remove WMAYBE related code. ENI WMAYBE DMA doen't work. - remove updating if_lastchange for every packet. - BPF related code is moved to midway.c as it should be. (bpfwrite should work if atm_pseudohdr and LLC/SNAP are prepended.) - BPF link type is changed to DLT_ATM_RFC1483. BPF now understands only LLC/SNAP!! (because bpf can't handle variable link header length.) It is recommended to use LLC/SNAP instead of NULL encapsulation for various reasons. (BPF, IPv6, interoperability, etc.) the code has been used for months in ALTQ and KAME IPv6. OKed by phk long time ago. Notes: svn path=/head/; revision=37939
* minphys means something different in FreeBSD than in NetBSD- not needed here ↵Matt Jacob1998-07-251-2/+1
| | | | | | | and in the way Notes: svn path=/head/; revision=37858
* Don't return an error if the magic number is not present.Julian Elischer1998-07-221-7/+14
| | | | | | | Failing to probe is not an error, just a negative result. Notes: svn path=/head/; revision=37845
* Add a call to a platform-specific irq remapping function for alpha platformsDoug Rabson1998-07-221-1/+4
| | | | | | | | | which don't record the correct irqs in PCI config space. Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=37842
* On the alpha, ports may be allocated above 64k.Doug Rabson1998-07-221-2/+8
| | | | | | | | | | | Change the port address argument to pci_map_port to pci_port_t* which is defined as u_int on the alpha, u_short on i386. This is a stopgap with a hopefully limited lifetime. Discussed with: Stefan Esser <se@freebsd.org> Notes: svn path=/head/; revision=37841
* Add the 'cs' driver for Crystal Semiconductor CS89x0 devices. ThisMike Smith1998-07-202-0/+1950
| | | | | | | | | supports PnP and if_media. I've been running a slightly older version here for several weeks now. Submitted by: Maxim Bolotin <max@rsu.ru> Notes: svn path=/head/; revision=37785
* Add support for PCNet PCI chips that only work when we talk to them as ISAMike Smith1998-07-203-4/+25
| | | | | | | | | | devices. Specifically fix the case for the Hitachi version as used in their VisionBook models. Submitted by: Ted Faber <faber@isi.edu> Notes: svn path=/head/; revision=37782
* Start cleaning up the aynchronous probing code for SLICE handlers.Julian Elischer1998-07-203-72/+106
| | | | Notes: svn path=/head/; revision=37768
* Fixed error handling after a seek error that can't happen. When theBruce Evans1998-07-181-1/+3
| | | | | | | | | | | | | | | | | | | controller reports a successful seek, it is very unlikely to report seeking to a cylinder other than the one requested, but we check for this, and botched the error handling for the requested_cylinder != 0 case. This error happened when the bug fixed in rev.1.52 of <sys/buf.h> caused the head of buffer queue to change to one starting on a different cylnder - the requested cylinder was found, but it wasn't what we thought we requested. The fix is simply to arrange to reset the state machine. Corruption of the buffer queue seems to only have been a problem in the floppy driver. Other drivers dequeue the head of the queue before doing physical i/o on it, so the corruption at worse broke the elevator sort order. Dequeueing breaks it anyway. Notes: svn path=/head/; revision=37733
* Changed %n to %r in devfs name format strings. %n has almost gone away.Bruce Evans1998-07-155-25/+25
| | | | Notes: svn path=/head/; revision=37683
* The ioctl request arg is unsigned long, so don't attempt to pass itBruce Evans1998-07-151-2/+2
| | | | | | | around as signed int. Notes: svn path=/head/; revision=37677
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,Bruce Evans1998-07-151-2/+2
| | | | | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types. Notes: svn path=/head/; revision=37649
* Add support for the AVer Media range of cards.Søren Schmidt1998-07-141-9/+13
| | | | Notes: svn path=/head/; revision=37646
* Don't pretend to support ix86's with 16-bit ints by using longsBruce Evans1998-07-141-8/+8
| | | | | | | | just to ensure 32-bit variables. Doing so broke i386's with 64-bit longs. Notes: svn path=/head/; revision=37639
* I checked in the wrong version yesterday . The correct version is 1.38Amancio Hasty1998-07-141-12/+32
| | | | | | | Amancio Notes: svn path=/head/; revision=37631
* Fixed printf format errors (only 1 left in GENERIC now).Bruce Evans1998-07-138-50/+53
| | | | Notes: svn path=/head/; revision=37618
* SLICE probing becomes asynchronous. It can now be triggered byJulian Elischer1998-07-136-922/+701
| | | | | | | | | | | interupt level events. This needs a lot of cleanup, but has been working here for a month or two.. originally needed for CAM integration but that hasn't happenned yet. The probing state machines for each handler should be replaced by a more generic state-service. It's still quite messy in there.. Notes: svn path=/head/; revision=37616
* Improved Hauppauge's tuner detection and bt878 supportAmancio Hasty1998-07-132-36/+145
| | | | | | | Amancio Notes: svn path=/head/; revision=37611
* Fixed printf format errors.Bruce Evans1998-07-111-12/+15
| | | | Notes: svn path=/head/; revision=37555
* Don't pretend to support ix86's with 7-bit ints by using longs just toBruce Evans1998-07-111-4/+4
| | | | | | | ensure 8-bit variables. Doing so mainly bogotified some printf formats. Notes: svn path=/head/; revision=37554
* Merge changes from vendor branch.Peter Wemm1998-07-081-2/+11
| | | | Notes: svn path=/head/; revision=37492
* Add the ability to suspend as well as hibernate to the system. ThisWarner Losh1998-07-061-2/+21
| | | | | | | | | | is the kernel part of my commits, the userlevel stuff will be done in a separate commit. Add the ability to suspend as well as hibernate to syscons. Create a new virtual key like hibernate for suspend. Update apm_bios.h to define more apm bios goodies. Notes: svn path=/head/; revision=37414
* There is no such thing any more as "struct bdevsw".Julian Elischer1998-07-046-56/+135
| | | | | | | | | | | | | | | | | | | | | 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
* VOP_STRATEGY grows an (struct vnode *) argumentJulian Elischer1998-07-042-6/+6
| | | | | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org> Notes: svn path=/head/; revision=37384
* Fix some strange errors of shutting transmitter up when startSemen Ustimenko1998-07-041-575/+558
| | | | | | | | | | transmition after software reset with no link estabilished yet. Fix TX DMA stop method (queue last packet to stop). PR: i386/6578 Notes: svn path=/head/; revision=37372
* Don't use a struct buf (malloc'd) without first initialising all the fieldsJulian Elischer1998-07-041-1/+5
| | | | | | | | to some known value! (probable cause of soft updates exploding with vn devices) Notes: svn path=/head/; revision=37366
* Some revisions of the aic7880 have a problem where, if theJustin T. Gibbs1998-06-281-2/+10
| | | | | | | | | | | | | data fifo is full, but the PCI input latch is not empty, HDMAEN cannot be cleared. The fix used here is to attempt to drain the data fifo until there is space for the input latch to drain and HDMAEN de-asserts. This is a 1 instruction fix, so it should have no performance impact. Notes: svn path=/head/; revision=37223