aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add support for VESA mode 0x102 (800x600x4) in syscons. You can activatePoul-Henning Kamp1998-02-122-60/+104
| | | | | | | | | | | | | | | this using option "-b" to the boot blocks. It is smartest to compile a font into your kernel (See LINT), but not mandatory, but apart from the cursor you will see nothing on the screen until you load a font. This mode allows XF86_VGA16 to run in 800x600 mode on otherwise unsupported graphics hardware. A number of buglets in the cursor handling in syscons may become visible this way. Notes: svn path=/head/; revision=33283
* Fix a white-space nit which I happened to notice.Poul-Henning Kamp1998-02-121-3/+2
| | | | Notes: svn path=/head/; revision=33280
* Oops, sorry, a #define line for my debugging session slipped intoKazutaka YOKOTA1998-02-121-3/+1
| | | | | | | the last commit ;-< Notes: svn path=/head/; revision=33272
* - Move the mouse cursor to the center of the screen after videoKazutaka YOKOTA1998-02-111-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mode switch in ioctl. Possibly related to PR: kern/4271 - A kludge: initialize scp->xpixel and ypixel even in the text mode. If the console enters the `unknown' graphics mode via the ioctl KDSETMODE (KD_GRAPHICS), these fields are not set (because syscons cannot know the correct values), but set_mouse_pos() need to refer to these field to adjust the mouse position. - Turn off MOUSE_VISIBLE when switching video mode by ioctl. - another new option: SC_MOUSE_CHAR Define the first character code of four consecutive codes to be used for the mouse cursor. Default codes are 0xd0 through 0xd3. Beware that if you decide to use any codes outside the range of 0xc0-0xdf, the mouse cursor may not look good, because of the way VGA displays characters in 9-dot-wide character cells. Requested by several people. (This patch was tested by a person who recently reported, in the -current ML, a page fault problem in the kernel (draw_mouse_iamge()) after X server shutdown. The patch cured his problem.) Notes: svn path=/head/; revision=33242
* - A new semaphore: font_loading_in_progress.Kazutaka YOKOTA1998-02-111-9/+27
| | | | | | | | | | | | | | | Don't touch/update the screen while manipulating font data. Possibly related to PR: kern/4271 - Set up VGA in alphanumeric mode rather than graphics mode when loading font into video memory. This will drastically reduce flicker. PR: bin/2977 - Set up scp->font_size properly during video mode switch caused by ioctl. Notes: svn path=/head/; revision=33241
* - Break scrn_timer() into two pieces. Now screen update is done in aKazutaka YOKOTA1998-02-111-85/+97
| | | | | | | | | | | | | | separate routine: scupdate() called from scrn_timer(). - Make sure that the screen is updated for the low-level console routines sccngetc() and sccncheckc(). A new routine, sccnupdate(), is introduced and will call scupdate() above. Requested by: bde and msmith OKed by: sos Notes: svn path=/head/; revision=33240
* - Ignore KBD_RAW_MODE and KBD_CODE_MODE in scgetc() when it's calledKazutaka YOKOTA1998-02-111-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | from the low-level console routines sccngetc() and sccncheckc(). Submitted by: bde (a long time ago) - Don't try to ring bell and immediately return from do_bell() while device probe is in progress at boot time; the timeout queue is not functional yet. PR: kern/2424 - Stop running the screen saver after panic() is called: check if `panicstr' is non-NULL during scrn_timer(). PR: kern/5314 - A new option: SC_DISABLE_REBOOT The reboot key (usually Ctl-Alt-Del) will be ignored if this option is defined. You may still have the reboot key defined in the keymap and it won't cause error when the keymap is loaded, but it will be quietly treated as nop. OKed by: sos Notes: svn path=/head/; revision=33239
* Staticize. (Diffs by me & and Simon in cooperation.)Eivind Eklund1998-02-103-36/+36
| | | | Notes: svn path=/head/; revision=33222
* Support C-NET(98)S ethernet card (PC-98 only).KATO Takenori1998-02-102-0/+105
| | | | | | | Submitted by: Chiharu Shibata <chi@rd.njk.co.jp> Notes: svn path=/head/; revision=33208
* Staticize.Eivind Eklund1998-02-0913-46/+46
| | | | Notes: svn path=/head/; revision=33181
* Add #include "opt_devfs.h".Eivind Eklund1998-02-091-1/+2
| | | | Notes: svn path=/head/; revision=33178
* Back out DIAGNOSTIC changes.Eivind Eklund1998-02-066-9/+3
| | | | Notes: svn path=/head/; revision=33134
* Add PnP support to if_ed.c.Eivind Eklund1998-02-051-4/+113
| | | | Notes: svn path=/head/; revision=33110
* Turn DIAGNOSTIC into a new-style option.Eivind Eklund1998-02-046-3/+9
| | | | Notes: svn path=/head/; revision=33108
* MF22: update to newest version from author.Jordan K. Hubbard1998-02-041-188/+407
| | | | Notes: svn path=/head/; revision=33095
* Re-add my DEVFS changes after they were stomped on. This time, I throw awayEivind Eklund1998-02-042-5/+4
| | | | | | | the DEVFS tokens (as they weren't used anywhere anyway). Notes: svn path=/head/; revision=33066
* Bugs/Enhancements:Amancio Hasty1998-02-023-149/+289
| | | | | | | | | | | | | | | | | | | | 1. Takeshi Ohashi <ohashi@atohasi.mickey.ai.kyutech.ac.jp> submitted code to support bktr_read . /usr/src/share/examples/rgb24.c now works 8) 2. Flemming Jacobsen <fj@schizo.dk.tfs.com> submitted code to support radio available with in some bt848 based cards;additionally, wrote code to correctly recognized his bt848 card. 3. Roger Hardiman <roger@cs.strath.ac.uk> submitted various fixes to smooth out the microcode and made all modes consistent. 4. Added supported for yuv12 so we know can capture raw streams and feed it to mpeg_encoder . The upshot is that we can now mpeg encode more and save nearly 100 percent of the disk requirements previously for programs such as fxtv first save the raw video image to disk then converted to a format suitable for mpeg_encode. Notes: svn path=/head/; revision=33025
* Removed ifdef for <sys/sockio.h> vs <sys/ioctl.h>. <sys/sockio.h> isBruce Evans1998-02-011-20/+5
| | | | | | | | | | | | | | | a BSD4.4Lite1 feature, not a FreeBSD feature. <sys/ioctl.h> is a compatibility misfeature. Moved NPCI ifdef. This file didn't compile if NPCI <= 0. It shouldn't be configured in that case, but it is easy to support (mis)configuration of drivers without buses by generating null objects, and many drivers do it. Removed unused includes. Notes: svn path=/head/; revision=32996
* Make the debug options new-style.Eivind Eklund1998-01-312-2/+6
| | | | | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere. Notes: svn path=/head/; revision=32929
* Attempt at making this use DEVFS properly. (Now it should at least work.)Eivind Eklund1998-01-312-3/+6
| | | | Notes: svn path=/head/; revision=32926
* Make POWERFAIL_NMI, PPS_SYNC and NATM new style options.Eivind Eklund1998-01-311-0/+1
| | | | | | | This also fixes a couple of defunct options; submitted by bde. Notes: svn path=/head/; revision=32925
* Remove unused devfs include. (Julian or Satoshi might want to add properEivind Eklund1998-01-311-4/+1
| | | | | | | | DEVFS support here; just including the header file doesn't do any good, and would make this depend on opt_devfs.h) Notes: svn path=/head/; revision=32921
* Don't clobber pp_flags when PP_KEEPALIVE must be set.John Hay1998-01-302-6/+8
| | | | Notes: svn path=/head/; revision=32904
* Update to version stable-165Jordan K. Hubbard1998-01-291-196/+251
| | | | | | | Submitted by: Ustimenko Semen <semen@iclub.nsu.ru> Notes: svn path=/head/; revision=32869
* Define CTL-ALT-ESC as the `debug' key, CTL-ALT-SPACE as the `suspend'keyKazutaka YOKOTA1998-01-281-5/+5
| | | | | | | in all built-in keymaps. Notes: svn path=/head/; revision=32849
* Add Simon Shapiro's DPT driverJulian Elischer1998-01-264-0/+5321
| | | | | | | | this shouldn't break anything existing. Userland utilities to follow. Notes: svn path=/head/; revision=32801
* Make all file-system (MFS, FFS, NFS, LFS, DEVFS) related option new-style.Eivind Eklund1998-01-2418-14/+40
| | | | | | | | | | | 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
* Driver for the new SMC 9432TX cards.Jordan K. Hubbard1998-01-211-0/+1051
| | | | | | | Submitted by: Ustimenko Semen <semen@iclub.nsu.ru> Notes: svn path=/head/; revision=32679
* - Add binary compatibility support for obsolete console/mouse ioctlsKazutaka YOKOTA1998-01-201-1/+51
| | | | | | | | | | so that existing programs which were compiled before the introduction of the new mouse code and use these ioctls will run unmodified. Suggested by msmith. Notes: svn path=/head/; revision=32633
* Include <machine/pc/display.h>, not <i386/include/pc/display.h>. This isBruce Evans1998-01-163-6/+6
| | | | | | | | | not quite correct, because the Makefiles in lkm/syscons don't set up the `machine' symlink, but other, more volatile headers in <machine> are already used. Notes: svn path=/head/; revision=32571
* Fix illegal numeric expressions: 08 and 09.Kazutaka YOKOTA1998-01-121-10/+10
| | | | Notes: svn path=/head/; revision=32487
* add devfs entries for a few more syscons devices (e.g. sysmouse)Julian Elischer1998-01-121-3/+9
| | | | Notes: svn path=/head/; revision=32457
* - Produce the accent letter if the user hits the accent key twice.Kazutaka 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. Notes: svn path=/head/; revision=32364
* Make INET a proper option.Eivind Eklund1998-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>. Notes: svn path=/head/; revision=32350
* 1. Supporting a bogus 16550A compatible PCMCIA CARD stuffsAtsushi Murai1998-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 Notes: svn path=/head/; revision=32331
* Added accent (dead) key support to syscons and kbdcontrol.Kazutaka 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). Notes: svn path=/head/; revision=32315
* Actually implement the internals of the 'ppi' device.Mike Smith1998-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. Notes: svn path=/head/; revision=32178
* Reviewed by: Amancio HastyAmancio Hasty1997-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. Notes: svn path=/head/; revision=32136
* Fixed initialization of the divisor latch. We depended on siocnopen()Bruce Evans1997-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. Notes: svn path=/head/; revision=32047
* YAMFsio.c (always call ttwwakeup() before returning from comstart()).Bruce Evans1997-12-282-2/+4
| | | | Notes: svn path=/head/; revision=32045
* Always call ttwwakeup() before returning from comstart(). It isn'tBruce Evans1997-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(). Notes: svn path=/head/; revision=32044
* Removed unnecessary (and broken) wakeup code in rpstart(). There is noBruce Evans1997-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 Notes: svn path=/head/; revision=32043
* Change major number to match the one actually used (whoops!).Jordan K. Hubbard1997-12-261-1/+1
| | | | | | | Submitted by: Steve Gericke <steveg@comtrol.com> Notes: svn path=/head/; revision=32007
* Make COMPAT_43 and COMPAT_SUNOS new-style options.Eivind Eklund1997-12-167-5/+18
| | | | Notes: svn path=/head/; revision=31778
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.Eivind Eklund1997-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.) Notes: svn path=/head/; revision=31742
* - Add support for the following mice to psm/moused/sysmouse:Kazutaka YOKOTA1997-12-072-68/+639
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=31603
* Use ENOIOCTL instead of -1 (= ERESTART) for diskslice ioctls that areBruce Evans1997-12-061-2/+2
| | | | | | | not handled at a particular level. Notes: svn path=/head/; revision=31578
* Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that areBruce Evans1997-12-068-22/+22
| | | | | | | | not handled at a particular level. This fixes mainly restarting of interrupted TIOCDRAINs and TIOCSETA{W,F}s. Notes: svn path=/head/; revision=31577
* In all such uses of struct buf: 's/b_un.b_addr/b_data/g'Poul-Henning Kamp1997-12-025-13/+13
| | | | Notes: svn path=/head/; revision=31493
* Shuffle things a bit for better cacheline behavior.David Greenman1997-11-291-6/+6
| | | | Notes: svn path=/head/; revision=31447