summaryrefslogtreecommitdiffstats
path: root/sys/isa/sio.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-33/+13
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* make alpha compile again.phk1999-08-091-16/+5
|
* Merge the cons.c and cons.h to the best of my ability. alpha may orphk1999-08-091-2/+2
| | | | may not compile, I can't test it.
* Allocate and register struct tty on the fly.phk1999-08-081-13/+3
|
* Remove cmaj and bmaj args from DEV_DRIVER_MODULE.phk1999-07-041-3/+2
|
* Skip the device if it is disabled, when searching for a serial portyokota1999-06-291-0/+5
| | | | to be used for the kernel console in sccnprobe().
* The second phase of syscons reorganization.yokota1999-06-221-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Split syscons source code into manageable chunks and reorganize some of complicated functions. - Many static variables are moved to the softc structure. - Added a new key function, PREV. When this key is pressed, the vty immediately before the current vty will become foreground. Analogue to PREV, which is usually assigned to the PrntScrn key. PR: kern/10113 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de> - Modified the kernel console input function sccngetc() so that it handles function keys properly. - Reorganized the screen update routine. - VT switching code is reorganized. It now should be slightly more robust than before. - Added the DEVICE_RESUME function so that syscons no longer hooks the APM resume event directly. - New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING, SC_NO_HISTORY and SC_NO_SYSMOUSE. Various parts of syscons can be omitted so that the kernel size is reduced. SC_PIXEL_MODE Made the VESA 800x600 mode an option, rather than a standard part of syscons. SC_DISABLE_DDBKEY Disables the `debug' key combination. SC_ALT_MOUSE_IMAGE Inverse the character cell at the mouse cursor position in the text console, rather than drawing an arrow on the screen. Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG) SC_DFLT_FONT makeoptions "SC_DFLT_FONT=_font_name_" Include the named font as the default font of syscons. 16-line, 14-line and 8-line font data will be compiled in. This option replaces the existing STD8X16FONT option, which loads 16-line font data only. - The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c. - The video driver provides a set of ioctl commands to manipulate the frame buffer. - New kernel configuration option: VGA_WIDTH90 Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These modes are mot always supported by the video card. PR: i386/7510 Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx. - The header file machine/console.h is reorganized; its contents is now split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h (another new file). machine/console.h is still maintained for compatibility reasons. - Kernel console selection/installation routines are fixed and slightly rebumped so that it should now be possible to switch between the interanl kernel console (sc or vt) and a remote kernel console (sio) again, as it was in 2.x, 3.0 and 3.1. - Screen savers and splash screen decoders Because of the header file reorganization described above, screen savers and splash screen decoders are slightly modified. After this update, /sys/modules/syscons/saver.h is no longer necessary and is removed.
* Use the proper interfaces to find if a device is enabled, don't dig intopeter1999-06-201-3/+2
| | | | the bus mechanism's private internals!
* sioprobe: Don't try to initialize disabled ports. In particular,grog1999-06-191-2/+4
| | | | | | | attempting to initialize sio3 caused problems with ATI video boards, which cleverly share the I/O space. PR: kern/12295
* COM_LLCONSOLE should over-ride COM_DEBUGGER request.mckusick1999-06-151-2/+2
|
* The PPSAPI group defines the polarity in draft 3, we guessed it wrong.phk1999-05-311-2/+2
|
* This commit should be a extensive NO-OP:phk1999-05-301-7/+21
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* Simplistic pnp support. Needs more ids to be added.dfr1999-05-301-1/+8
|
* Allow a sio port with its flags set to DEBUGGER+LLCONSOLE to be used fordfr1999-05-281-2/+2
| | | | | gdb. This allows the sio probe for that port to be disabled which stops it from confusing the debugger.
* Use the resource apis to manipulate resources.dfr1999-05-221-6/+21
|
* Adjust console stuff now that makedev is no longer a macro.dfr1999-05-101-2/+3
|
* Make COM_ESP and COM_MULTIPORT compile for LINT. It might even work..peter1999-05-091-6/+6
|
* Optimize out a couple of places where com_addr() is used twice in a row,peter1999-05-091-27/+9
| | | | | | | although this is pretty trivial. devclass_get_softc() is a tad more expensive than the old com_addr() implementation. If Bruce is really worried about the cost of this, it could always be changed so that the softc pointer is stored in a local array again.
* Move opt_sio.h options to conf/options and activate in isa/sio.cpeter1999-05-091-2/+2
|
* Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference betweenphk1999-05-091-2/+2
| | | | a major number for a dev_t.
* add some amount of sanity to the way the gdb stuff finds its device.phk1999-05-091-9/+10
| | | | | | | | I'm not too happy about the result either, but at least it has less chance of backfiring. This particular feature could be called "a mess" without offending anybody.
* siocngetc & putc can be staticized.phk1999-05-091-7/+3
|
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-4/+4
| | | | to the BUS_SETUP_INTR call.
* Get rid of extern declarations on gdb stuff so systems compiled withoutmckusick1999-05-071-6/+9
| | | | | DDB will compile. Warn users that try to use GDB without specifying a GDB port in their configuration file.
* fix it so it compiles on alpha againmjacob1999-05-071-1/+5
|
* Continue where Julian left off in July 1998:phk1999-05-071-3/+3
| | | | | | | | | | | | | | Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline) function. Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention to the order of the cmaj/bmaj arguments!) Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE (ditto!) (Next step will be to convert all bdev dev_t's to cdev dev_t's before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
* Generalize to allow any serial port to be used as the GDB port.mckusick1999-05-071-21/+65
| | | | | | | | | Mark the GDB port in the config file with flags 0x80. Currently only the sio driver checks these flags and sets up a GDB port, but adding similar code to other serial drivers would be easy. For backward compatibility, if an sio port is marked as the console and no port is marked as the gdb port, the GDB port will be mapped to the console port. This hack should go away at some point.
* Fix up a few easy 'assignment used as truth value' and 'suggest parenspeter1999-05-061-5/+5
| | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately.
* Suser() simplification:phk1999-04-271-4/+4
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Modify the non-i386 version of disable_intr() and enable_intr() so that theydt1999-04-241-3/+3
| | | | don't produce a warning on every use.
* Tidy up a few things left over from the conversion from i386/isa/sio.c.peter1999-04-181-4/+21
| | | | Leave two #if 0'd notes about the way things used to be done for reference.
* Register sio interrupts as fast (fixing some silo overflow messages).dfr1999-04-181-2/+2
|
* Merge up to rev 1.234 (nice revision number!) of i386/isa/sio.c.peter1999-04-171-115/+206
|
* Merge up to rev 1.226 of i386/isa/sio.cpeter1999-04-171-210/+14
|
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-16/+39
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* Use suser() to check for super user rather than examining cr_uid directly.phk1999-01-301-2/+3
| | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles.
* Update the pccard hooks to use a module style declaration instead.peter1999-01-191-12/+3
|
* Add support for another 3COM/USR PNP modem, USR3031.steve1998-12-131-1/+2
|
* * Add hooks to allow the X server to access I/O ports and memory.dfr1998-11-151-8/+9
| | | | | | | | | * Update drivers to the latest version of the bus interface. The ISA drivers' use of the new resource api is minimal. Garrett has some much cleaner drivers which should be more easily shared between i386 and alpha. This has only been tested on cia based machines. It should work on lca and apecs but I might have broken something.
* Merge changes from i386/isa/sio.c up to revision 1.215.dfr1998-09-261-46/+42
|
* Underlying ,v files were copied and detagged. Re-commit old versionspeter1998-09-261-166/+333
| | | | onto the head revision. (mainly using sys/bus.h etc for alpha)
* Support PnP compatibility IDs. This allow e.g. the ed driver to pickeivind1998-09-131-19/+17
| | | | | | | up any PnP NE2000 compatible card, instead of forcing us to always update ID lists. Submitted by: Ugo Paternostro <paterno@dsi.unifi.it>
* Fixed printf format errors.bde1998-08-231-2/+2
|
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-231-4/+5
| | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes.
* Fixed devfs initialization which I broke in the previous commit.bde1998-08-201-7/+7
|
* Enabled dynamically sized tty input buffers (with enough bufferingbde1998-08-191-9/+10
| | | | | | | | | | | | for 1 second's worth of input) and larger tty output buffers. The interrupt-level buffers are still too small for speeds above 115200 bps (only a little too small for 230400 bps if RTS flow control is enabled). Don't call ttsetwater() explicitly in open(). It is now called for the TTYDISC l_open() and should be static. Don't attempt to register the cdevsw more than once.
* Register tty software interrupt handlers at run time using register_swi()bde1998-08-111-15/+10
| | | | | | | instead of at compile time using ifdefs. Use _swi_null instead of dummycamisr. CAM and dpt should call register_swi() instead of hacking on ihandlers[] directly.
* Changed %n to %r in devfs name format strings. %n has almost gone away.bde1998-07-151-7/+7
|
* Avoid some panics in sio_unload which gets called with various dirtphk1998-06-241-1/+9
| | | | if the attach of a modem card failed.
* Don't log "unexpected" events on never-opened devices. Events leftbde1998-06-161-11/+4
| | | | | | | | over from the probe are now expected for incompatible UARTs that deliver IRQs as a strobe (low) instead of a level (high). Discard events on going-away devices too. Endless loops may have been possible when an active pccard was removed.
OpenPOWER on IntegriCloud