summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix illegal numeric expressions: 08 and 09.yokota1998-01-121-10/+10
|
* add devfs entries for a few more syscons devices (e.g. sysmouse)julian1998-01-121-3/+9
|
* - Produce the accent letter if the user hits the accent key twice.yokota1998-01-091-4/+28
| | | | | | | | (accent_key + space does still print the accent letter too, as in the previous commit.) Requested by a couple of users. - Clear the accent flag when the next_screen key is pressed. - Added some comment lines regarding accent key processing.
* Make INET a proper option.eivind1998-01-0820-26/+95
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* 1. Supporting a bogus 16550A compatible PCMCIA CARD stuffsamurai1998-01-081-4/+71
| | | | | | | | | | | | | | | | | | | - IIR_TXRDY is never off even if reading a IIR register. - Know as PIAFS "Palido 321S", "DC-*S" oemed by Sharp corp. 2. Omiting a restrict probing if it's already probed by pccardd. Note: Define a new id_flags as follows 0x40000 - NO PROBE (Already probed as serial) 0x80000 - Has a bogus IIR_TXRDY register Sato Junichi <junichi@astec.co.jp> Nrihiro Kumagai <kuma@slab.tnr.sharp.co.jp> Hirao Tetsuya <ai.cs.fujitsu.co.jp> Toshiharu Asai <asai@mbc.infoshere.or.jp> Shin'ya Kumabuchi <kumabu@t3.rim.or.jp> Freebsd-users-jp@jp.freebsd.org bsd-nomads@ai.cs.fujitsu.co.jp
* Added accent (dead) key support to syscons and kbdcontrol.yokota1998-01-072-6/+356
| | | | | | | | | | | | | | | | | | | | | | | With a keymap with accent key definitions loaded to syscons, you press an accent key followed by a regular letter key to produce an accented letter. Press an accent key followed by the space bar to get the accent letter itself. Code is based on the ideas and work by jmrueda@diatel.upm.es and totii@est.is. PR: i386/4016 console.h - Defined structures and constants for accent (dead) keys. syscons.c, kbdtables.h - When an accent key is pressed, set the corresponding index to `accents'. If the next key is the space key, produce the accent char itself. Otherwise search the accent key map entry, indexed by `accents', for a matching pair of a regular char and an accented char. - Added ioctl functions to set and get the accent key map (PIO_DEADKEYMAP and GIO_DEADKEYMAP).
* Actually implement the internals of the 'ppi' device.msmith1998-01-022-17/+94
| | | | | | It is now possible to control the various parallel port signals from user-space programs without having to resort to opening /dev/io directly.
* Reviewed by: Amancio Hastyahasty1997-12-311-4/+20
| | | | | | Submitted by: Jonathan Hanna <pangolin@rogers.wave.ca> The patch is for a Hauppauge Win/TV dbx with FM. I still need to config OVERRIDE_TUNER, but it works nicely.
* Fixed initialization of the divisor latch. We depended on siocnopen()bde1997-12-281-2/+21
| | | | | | initializing it for the (usual) (siocniobase != 0) case, but siocnopen() doesn't initialize it if the latch registers already have the correct values.
* YAMFsio.c (always call ttwwakeup() before returning from comstart()).bde1997-12-282-2/+4
|
* Always call ttwwakeup() before returning from comstart(). It isn'tbde1997-12-281-1/+2
| | | | | | necessary to call it when the tty layer's output state has not been changed, but siostop() sometimes changes the TS_BUSY state and then calls comstart() mainly for its side effect of calling ttwwakeup().
* Removed unnecessary (and broken) wakeup code in rpstart(). There is nobde1997-12-281-15/+0
| | | | | | | | | | | need to do it directly, since ttwwakeup() is always called just before returning from rpstart(). The brokenness was waking up the wrong address after clearing TS_SO_OLOWAT. It's not clear how processes waiting for output to drain below low water ever got woken up. Found by: when I fixed longstanding warts in output watermark handling, this was the only driver that knew too much (anything) about the watermarks
* Change major number to match the one actually used (whoops!).jkh1997-12-261-1/+1
| | | | Submitted by: Steve Gericke <steveg@comtrol.com>
* Make COMPAT_43 and COMPAT_SUNOS new-style options.eivind1997-12-167-5/+18
|
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.eivind1997-12-155-5/+11
| | | | | | | | The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only). I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.)
* - Add support for the following mice to psm/moused/sysmouse:yokota1997-12-072-69/+640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MS IntelliMouse, Kensington Thinking Mouse, Genius NetScroll, Genius NetMouse, Genius NetMouse Pro, ALPS GlidePoint, ASCII MieMouse, Logitech MouseMan+, FirstMouse+ - The `psm' driver is made to recognize various models of PS/2 mice and enable their extra features so that their additional buttons and wheel/roller are recognized. The name of the detected model will be printed at boot time. - A set of new ioctl functions are added to the `psm', `mse' and `sysmouse' drivers so that the userland program (such as the X server) can query device information and change driver settings. - The wheel/roller movement is handled as the `Z' axis movement by the mouse drivers and the moused daemon. The Z axis movement may be mapped to another axis movement or buttons. - The mouse drivers support a new, standard mouse data format, MOUSE_PROTO_SYSMOUSE format which can encode x, y, and x axis movement and up to 10 buttons. /sys/i386/include/mouse.h - Added some fields to `mousestatus_t' to store Z axis movement and flag bits. - Added the field `model' to `mousehw_t' to store mouse model code. Defined model codes. - Extended `mousemode_t'. - Added new protocols and some constants for them. - Added new ioctl functions and structures. - Removed obsolete ioctl definitions. /sys/i386/include/console.h - Added `dz' field to the structure `mouse_data' to pass Z axis movement to `syscons/sysmouse'. - Removed LEFT_BUTTON, MIDDLE_BUTTON and RIGHT_BUTTON. Use button bits defined in `mouse.h' instead. /sys/i386/isa/psm.c - Added a set of functions to detect various mice which have additional features (wheel and buttons) unavailable in the standard PS/2 mouse. - Refined existing ioctl functions and added new ones. Most important of all is MOUSE_SETLEVEL which manipulates the output level of the driver. While the output level remains zero, the output from the `psm' driver is in the standard PS/2 mouse format (three bytes long). When the level is set to one, the `psm' driver will send data in the extended format. At the level two the driver uses the format which is native to the connected mouse is used. (Meaning that the output from the device is passed to the caller as is, unmodified.) The `psm' driver will pass such extended data format as is to the caller if the output level is two, but emulates the standard format if the output level is zero. - Added kernel configuration flags to set initial resolution (PSM_CONFIG_RESOLUTION) and acceleration (PSM_CONFIG_ACCEL). - Removed the compile options PSM_ACCEL, PSM_CHECKSYNC and PSM_EMULATION. Acceleration ratio is now specified by the kernel configuration flags stated above. Sync check logic is refined and now standard. The sync check can be turned off by the new kernel configuration flags PSM_CONFIG_NOCHECKSYNC (0x100). PSM_EMULATION has been of little use. - Summer clean up :-) Removed unused code and obsolete comments. /sys/i386/isa/mse.c - Created mseioctl() to deal with ioctl functions MOUSE_XXXX. Most importantly, the MOUSE_SETLEVEL ioctl will change the output format from the 5 byte format to the new, extended format so that the caller can take advantage of Z axis movement and additional buttons. - Use constants defined in `mouse.h' rather than magic numbers. /sys/i386/isa/syscons.c - Changed scioctl() to reflect the new `console.h' and some of the new ioctls defined in `mouse.h'. Most importantly, the MOUSE_SETLEVEL ioctl will change the `sysmouse' output format from the MouseSystems 5 byte format to the new, extended format so that the caller can take advantage of Z axis movement and additional buttons. - Added support for double/triple click actions of the left button and single click action of the right button in the virtual console. The left button double click will select a word under the mouse pointer. The triple click will select a line and the single click of the right button will extend the selected region to the current position of the mouse pointer. This will make the cut/paste support more compatible with xterm. /sys/i386/isa/kbdio.h - Added PSM_INTELLI_ID.
* Use ENOIOCTL instead of -1 (= ERESTART) for diskslice ioctls that arebde1997-12-061-2/+2
| | | | not handled at a particular level.
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that arebde1997-12-068-22/+22
| | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s.
* In all such uses of struct buf: 's/b_un.b_addr/b_data/g'phk1997-12-025-13/+13
|
* Shuffle things a bit for better cacheline behavior.dg1997-11-291-6/+6
|
* Recognize 3C569 network interface when `PC98' is defined.kato1997-11-271-2/+7
| | | | Submitted by: HAMADA Naoki <hamada@astec.co.jp>
* Move the hardware currsor off screen when getting back from ansos1997-11-251-2/+9
| | | | | unknown mode. Fix warning on uninitialized var.
* update of Luigi's sound drivers...jmg1997-11-238-316/+690
| | | | this updates to 971117 plus a small sb change that was after that release..
* Ifdefed a conditionally used #include.bde1997-11-221-2/+4
| | | | Staticized.
* Add Winbond W89C940 ID to the list.msmith1997-11-221-1/+2
| | | | Submitted by: Micha Class <michael_class@hpbbse.bbn.hp.com>
* Make comp_vgaregs() less strict about VGA register values whenyokota1997-11-212-145/+232
| | | | | | | | | | | | | | | checking the BIOS video mode paramter table. Now syscons uses the parameter table even if some bits in the table are different from the current VGA register settings. Even if comp_vgaregs() finds that the BIOS video parameter table looks totally unfamiliar to it, syscons allows the user to change the current video mode to some modes which are based on the VGA 80x25 mode. They are VGA 80x30, VGA 80x50, VGA 80x60. In this case the user will be warned, during boot, that video mode switching is only paritally supported on his machine. PR: bin/4477
* - Renamed <pccard/card.h> -> <pccard/cardinfo.h>.nate1997-11-204-8/+8
| | | | | Forgotten by: me Reminded by: Bruce
* Removed unused #includes. Ifdefed a conditionally used #include.bde1997-11-181-14/+7
| | | | | | | | Fixed nonblocking mode. It was per-device instead of per-file. Don't depend on gcc's misfeature of rewriting char args in old-style function definitions to match wrong prototypes. Break K&R1 support to fix this quickly.
* There is no ccdread() nor ccdwrite().phk1997-11-181-3/+1
|
* Get select stuff by #including <sys/select.h> instead of <sys/proc.h>.bde1997-11-181-2/+2
|
* Reviewed by: Amancio Hastyahasty1997-11-162-9/+185
| | | | | | Submitted by: Amancio Hasty <hasty@star-gate.com> Added yuv12 support for mpeg encoding and Randall Hopper's fixed for Temporal Decimation
* Fixed chip_offsets[] which I broke in rev.1.53. The offsets aren'tbde1997-11-102-4/+4
| | | | | | | | | actually offsets, they are offsets scaled by dividing by 2^cy_align. I use different values for cy_align since the -current values are unnaturally scaled, so I need different offsets, and the wrong offsets got committed. Reported by: nnd@itfs.nsk.su (N.Dudorov)
* Merge 971020 stuff.. Check 21142? SROM CRC.peter1997-11-082-7/+13
|
* Rename some local variables to avoid shadowing other local variables.phk1997-11-071-4/+4
| | | | Found by: -Wshadow
* Remove a bunch of variables which were unused both in GENERIC and LINT.phk1997-11-079-31/+18
| | | | Found by: -Wunused
* Rats. Committed the wrong version.markm1997-11-061-5/+11
| | | | Move the declarations to the top of the ioctl() function so this compiles.
* 1) Add the IOCTL for Luigi's BT848 -> I2C bus driver.markm1997-11-061-14/+113
| | | | | | | | 2) Fix temporal decimation, disable it when doing CAP_SINGLEs, and in dual-field capture, don't capture fields for different frames Submitted by: Luigi Rizzo & Randall Hopper
* Add the IOCTL for Luigi's BT848 -> I2C bus driver.markm1997-11-061-1/+8
|
* - MF22: (I reversed these). Simplify code.nate1997-11-021-2/+3
|
* Sigh, kill setting of 0WS...it breaks more machines than it fixes.dg1997-11-021-4/+3
|
* This updates Luigi's sound code to the basic code in snd971023...jmg1997-10-3110-716/+1100
| | | | | | | | | | | | | | changes: o rip the old select from his distribution to prevent extra pollution o the code now uses audio dma, helps reduce clicks o improved card support, should work in full duplex on sb16 cards o add better voxware ioctl support pointed out by Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> o remove an unused file that I included for more complete history o and MANY other changes I have personally tested this code with a CS4237 based card and an AWE32 (non-PnP). Both cards worked fine in 8bit and 16bit mode.
* Improve PAL support and fix mux selector values.eivind1997-10-302-32/+104
| | | | | | | This make the Miro PCTV work for me, including audio, and should hopefully fix the other audio problems some people have been having. Reviewed by: ahasty & Luigi Rizzo (freebsd-multimedia)
* - Make sure we include <sys/kernel.h> to pick up the definitions of DATA_SET()nate1997-10-291-1/+2
| | | | Noticed by: bde
* The previous change added a use of the DATA_SET macro, but forgotjdp1997-10-291-1/+2
| | | | | | | to define it by including <sys/kernel.h>. That broke PC-CARD support for this driver, producing the dreaded "device allocation failed" message. Surprisingly, the missing include caused only two compiler warnings. The compilation still "succeeded" anyway.
* Removed unused #includes.bde1997-10-283-10/+2
|
* Move the EP_ID_PORT out to 0x110, so it doesn't conflict with other portjoerg1997-10-271-2/+16
| | | | | | | | usage at 0x100. Quoted Justin's quotation from the manual as well, to explain the technical background. PR: kern/4559 Submitted by: Stephen J. Roznowski <sjr@home.net>
* Fix a comment about multicast; since the Etherlink III has nofenner1997-10-271-4/+7
| | | | multicast filter the driver will never learn how to program it.
* - Instead of relying on a functional call to register PCARD-capable drivers,nate1997-10-264-37/+13
| | | | | | | | use a Linker Set. Note, if a driver is loaded as an LKM if will have to use the function call, but since none of the existing drivers are loadable, this made things cleaner and boot messages nicer. Obtained from: PAO-970616
* - Slightly change the way the border color register is updated so thatyokota1997-10-261-4/+3
| | | | | | | | | flicker won't occur when set_border() is called. - Properly restore the border color when switching virtual consoles. Pointed out by: tony@dell.com OKed by: sos
* - The daemon might go off the screen and crashed the system if theyokota1997-10-261-35/+148
| | | | | | | | | | | | | | | screen size was changed while the screen saver was inactive. Adjust the positions of the daemon and the text and clip them accordingly each time. - Don't call set_border() too often. Some video chip may produce flicker. Pointed out by tony@dell.com - Don't fill the entire screen with blank char every time the saver is called. Blank only the part of the screen where the daemon and the text was previously printed.
OpenPOWER on IntegriCloud