summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Introduce NCB_SCRIPT_PHYS and CCB_PHYS macros to find physical addressesse1995-09-111-89/+70
| | | | | | | | of NCR script labels and of command control block structure components. This allows for easy modification of the actual virtual to physical mapping operator used ... Make all applicable references to physical address values use the above macros instead of calls to vtophys().
* Generate prototypes for VOP functions. I decided to keep the old-stylebde1995-09-113-3/+78
| | | | | | definitions even though the functions are inline. If vnode_if.h was compiled by a non-ANSI compiler, then `inline' would be defined away, so vnode_if.h might compile correctly.
* Fix benign type mismatch in a call to VOP_BMAP().bde1995-09-111-2/+2
|
* Put back p_script component into NCR control block.se1995-09-111-3/+11
| | | | | The driver currently doesn't use it, but ncrcontrol needs it to print some script addresses relative to the script start.
* Restore two checks for TS_ISOPEN.. I managed to panic my machinepeter1995-09-112-6/+10
| | | | | without them.. I thought TS_CONNECTED implied TS_ISOPEN, but apparently that's not the case.
* Make sure that the prezero flag is cleared when needed.dyson1995-09-111-1/+2
|
* Fix an error that can cause attempted reading beyond the end of file.dyson1995-09-111-3/+11
|
* Code cleanup and minor performance improvement in the faultin clusterdyson1995-09-111-33/+29
| | | | code.
* Make pcvt and syscons live in the same kernel. If both are enabled, thenbde1995-09-1022-190/+483
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the first one in the config has priority. They can be switched using userconfig(). i386/i386/conf.c: Initialize the shared syscons/pcvt cdevsw entry to `nx'. Add cdevsw registration functions. Use devsw functions of the correct type if they exist. i386/i386/cons.c: Add renamed syscons entry points to constab. i386/i386/cons.h: Declare the renamed syscons entry points. i386/i386/machdep.c: Repeat console initialization after userconfig() in case the current console has become wrong. This depends on cn functions not wiring down anything important. sys/conf.h: Declare new functions. i386/isa/isa.[ch]: Add a function to decide which display driver has priority. Should be done better. i386/isa/syscons.c: Rename pccn* -> sccn*. Initialize CRTC start address in case the previous driver has moved it. i386/isa/syscons.c, i386/isa/pcvt/* Initialize the bogusly shared variable Crtat dynamically in case the stored value was changed by the previous driver. Initialize cdevsw table from a template. Don't grab the console if another display driver has priority. i386/isa/syscons.h, i386/isa/pcvt/pcvt_hdr.h: Don't externally declare now-static cdevsw functions. i386/isa/pcvt/pcvt_hdr.h: Set the sensitive hardware flag so that pcvt doesn't always have lower priority than syscons. This also fixes the "stupid" detection of the display after filling the display with text. i386/isa/pcvt/pcvt_out.c: Don't be confused the off-screen cursor offset 0xffff set by syscons. kern/subr_xxx.c: Add enough nxio/nodev/null devsw functions of the correct type for syscons and pcvt.
* cons.c:bde1995-09-106-58/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split off cdevsw initialization in cninit() into a new function cninit_finish() that isn't called until all hardware device drivers have been attached. The bdevsw entry of the driver for the physical console needs to be hooked after the physical driver has been attached in case the attachment modified the entry. Rearrange cninit() to avoid changing cn_tab until the driver for the physical console has been initialized, so that the previous driver (if any) can be used for debugging. Start removing half-baked lint support. bdevsw functions usually have unused args but /*ARGSUSED*/ was used for only about 5% of them. cons.h: Declare cn_init_finish(). autoconf.c: Call cn_init_finish(). Start adding prototypes. Functions with bogus linkage (extern where static is probably should be static) are explicitly declared as extern so that the can be found easily (extern in a non-header is usually wrong). All: Continue cleaning up init stuff: init functions shall be static; INITs should be at the start of files...
* Call output process in slstart() whether or not there is any output. Asbde1995-09-101-9/+10
| | | | | | | | | | | | | | | in pppstart(), the output process may be overloaded to handle hardware flow control and hardware output completions. Don't wait for output to drain in slclose(). Discard output immediately. New output is not prevented while processes are waiting for output to drain (this is a bug), so the wait was sometimes forever. Infinite waits are also possible when CCTS_OFLOW is enabled and CTS is down. Infinite waits were also caused by the above bug in slstart(). Start changing new init stuff yet again: rename unused arg `dummy'. Reviewed by: davidg
* Fix wakeups for TIOCDRAINWAIT. The conditional wakeups introduced in revbde1995-09-101-2/+3
| | | | | 1.59 defeated the point of doing the wakeups (having reduced timeouts take effect immediately).
* Fixed init functions argument type - caddr_t -> void *. Fixed a couple ofdg1995-09-0941-174/+177
| | | | compiler warnings.
* More hacking on devfs..julian1995-09-093-179/+469
| | | | | | | | | | | | I can now do an mv on devices and directories in devfs This was the hardest part.. link, delete and symlink will follow in short order. This code works but has definitly got vnode locking problems I am electing to get the structure of it working before spending too much time on the vnode confusion so it's probably not reliable at the moment.. never-the less it looks good. :)
* Patch to the atapi driver, by Serge V.Vakulenko, minor changessos1995-09-092-29/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | by me... Original message: This patch upgrades the ATAPI CD-ROM driver to version 1.3. It has three bugs fixed: 1) The `controller not ready' message at startup and later. It was caused by staled media change bit. 2) Incorrect shuffling of model string for some drives (NEC, Mitsumi). 3) Handling of drives which report itself as been of direct-access type, instead of CD-ROM type. There is one known bug which is not fixed yet -- probing in absense of IDE disks. A work-around exists though (thanks Steve!). If you have no IDE disks attached, then remove them from the kernel config file to make the CD-ROM attach correctly. Unfortunately, there is no way to disable them from the kernel interactive config mode. Reviewed by: sos (Soren Schmidt) Submitted by: vak@gw.cronyx.msk.su (Serge V.Vakulenko)
* Obtained from:4.4lite2julian1995-09-091-10/+14
| | | | | | | | | | | | | | | | | | fix a change where a shortcut resulted in teh wrong answer.. e.g. touch a touch b mv a b resulted in b being removed and a being moved to b in the shortcut.. touch a ln a b mv a b the wrong link was removed.. leaving a instead of b, giving a different result to when both files were separate.
* Actually, 97 out of 304 devsw functions had benignly mismatched types.bde1995-09-085-27/+26
|
* Perl script to convert NCR script address into label+offset.se1995-09-081-0/+31
| | | | Useful to find the failed NCR instruction ...
* Don't use vtophys() for constant addresses, cache the translations inse1995-09-081-22/+65
| | | | the NCR control block (ncb) and command control block (ccb) instead.
* d_stop functions always returned void. Fix the declaration of d_stop_tbde1995-09-082-4/+4
| | | | to match.
* Added devfs nodes for other devices.. (didn't read the docs correctly)julian1995-09-081-1/+10
|
* added ID strings so we know what version we have...julian1995-09-082-0/+7
|
* Slight optimization for the standard case of rotdelay=0.dg1995-09-081-11/+11
|
* Declare `geomtab' as static. It was bogusly shared between the asc andbde1995-09-082-2/+2
| | | | the gsc drivers.
* 3 out of 5 new devsw functions had benign type mismatches.bde1995-09-081-5/+5
|
* Applied patches that make the driver compile on NetBSD again.se1995-09-081-30/+83
| | | | | | | | | They shouldn't affect FreeBSD, since they are within #ifdef NETBSD directives. Changed the HAD_ERROR return code into COMPLETE according to a comment in "/sys/scsi/scsiconf.h" Submitted by: Andreas Wrede <andreas@planix.com>
* Fix my copyright.dg1995-09-082-4/+4
|
* Fix benign type mismatches in devsw functions. 82 out of 299 devswbde1995-09-0834-188/+260
| | | | functions were wrong.
* added the dev_link external registrationjulian1995-09-082-8/+48
| | | | | | | | used to produce a second link to an already exixting device e.g. dev_add /disks/sd0 dev_link /scsi/bus0/targ0/lun0 to /disks/sd0 (not real syntax)
* DAng! forgot this as welljulian1995-09-081-2/+21
| | | | cdevsw entry (71) for the asc scanner driver
* Submitted by: Luigi Rizzojulian1995-09-081-0/+52
| | | | | Obtained from: Luigi and gunther yeah I forgot this one....
* Submitted by: Luigi Rizzo (luigi@iet.unipi.it)julian1995-09-085-5/+16
| | | | | Obtained from: Luigi Rizzo and Gunther Schadow config support for the asc driver and an example in LINT
* 1) Really print 'real' memory - use Maxmem, not physmem.dg1995-09-082-28/+8
| | | | | | | 2) Output K bytes instead of pages as this means something to more people. 3) Moved printf of avail memory to after vm_bounce_init() call so that bounce buffers are included in the figure. 4) Killed initcpu(); it's an unused vestige from the VAX.
* Submitted by: Luigi Rizzo (luigi@iet.unipi.it)julian1995-09-084-4/+966
| | | | | Obtained from: Luigi Rizzo and Gunther Schadow Kernel support for the asc scanner driver
* Render devices inactive properly.jkh1995-09-071-3/+4
| | | | | Protect against name overflow. Submitted by: Michael Smith <msmith@atrad.adelaide.edu.au>
* Minor cleanup and (very) small micro optimization to Xsyscall (and thedg1995-09-073-45/+39
| | | | linux one)..
* Killed unnecessary \r.dg1995-09-071-1/+1
|
* Add support for 16 targets on WIDE SCSI bus.se1995-09-071-106/+103
| | | | | | | | | This seems to work fine on my 53c810, but really should be tested on a 53c825 with at least one target set to an ID >= 8. The script is now copied to memory mapped using vm_page_alloc_contig(), since it has to be physically contigous. This must be changed, if the driver is converted into a loadable module ! Two of the probe messages are suppressed, unless "bootverbose" is set.
* Remove support for PCI bridge classes, since thisse1995-09-071-23/+2
| | | | dealt with by code in pci.c now.
* Make mapping messages depend on bootverbose flag.se1995-09-072-134/+364
| | | | Add PCI subclass to unknown device message.
* Add description of Intel 82425EX PCI system controller chip (Aries ?).se1995-09-071-1/+77
| | | | Submitted by: Danny J. Zerkel <dzerkel@feephi.phofarm.com>
* Make files get the NWDC definition from "wdc.h" instead of "wd.h".swallace1995-09-073-4/+9
| | | | | This way, if using wd and/or wcd devices, the wdc controller code will get compiled.
* Change atapi.c to depend on the ATAPI option.swallace1995-09-072-4/+6
| | | | | Add wd.c entry based on the wdc controller. This will enable compilation of wcd device without wd.
* brought the README in to line with present code (still a bit cryptic)julian1995-09-071-24/+15
|
* more cleanups.. lots of code shuffled around toojulian1995-09-074-240/+239
| | | | | routines renamed.. more simplifications, some warnings squashed.
* Correct a case in the ffs_getpages where a page is not found indyson1995-09-071-1/+3
| | | | a sparse file and the page is zeroed but not set valid, clean.
* Suggested by: :) bde of coursejulian1995-09-064-127/+155
| | | | | | | | | | | | | | | | added prototypes for every function and put (void *) as the args to the vop array definitions. can now compile with: CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ -Winline -Wstrict-prototypes and only get errors for files external to this module: namely ./vnode_if.h ../../sys/vnode.h ../../sys/buf.h ../../miscfs/specfs/specdev.h
* Put back the "real memory =" printf() that vanished when the code towpaul1995-09-062-2/+4
| | | | handle holes in memory was added.
* Removed unused local variable from shutdown_nice()nate1995-09-061-3/+1
|
* more devfs cleanups..julian1995-09-065-22/+29
| | | | if this keeps simplifying there won't be any left :)
OpenPOWER on IntegriCloud