summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Another round of merge/updates.asami1996-10-2955-2569/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Add #ifdef PC98: sys/pc98/boot/biosboot/boot2.S (2) Fix bug that made it impossible to boot from sd's other than unit 0: sys/pc98/boot/biosboot/sys.c (3) Delete redundant $Id$: sys/pc98/pc98/clock.c (rejectされるかもしれない) (4) unt -> u_int: sys/pc98/pc98/if_ed.c (5) Add support for rebooting by the hot-key sequence: sys/pc98/pc98/kbdtables.h (6) Display now looks like PC/AT version: sys/pc98/pc98/npx.c (7) Change comment to match that of PC/AT version: sys/pc98/pc98/pc98.c (8) Add function prototypes: sys/pc98/pc98/pc98_machdep.c (9) Include PC98 headers: sys/pc98/pc98/sound/adlib_card.c sys/pc98/pc98/sound/audio.c sys/pc98/pc98/sound/dev_table.c sys/pc98/pc98/sound/dmabuf.c sys/pc98/pc98/sound/midi_synth.c sys/pc98/pc98/sound/midibuf.c sys/pc98/pc98/sound/opl3.c sys/pc98/pc98/sound/oatmgr.c sys/pc98/pc98/sound/sb16_dsp.c sys/pc98/pc98/sound/sb16_midi.c sys/pc98/pc98/sound/sb_card.c sys/pc98/pc98/sound/sb_dsp.c sys/pc98/pc98/sound/sb_midi.c sys/pc98/pc98/sound/sb_mixer.c sys/pc98/pc98/sound/sequencer.c sys/pc98/pc98/sound/sound_config.h sys/pc98/pc98/sound/sound_switch.c sys/pc98/pc98/sound/soundcard.c sys/pc98/pc98/sound/sys_timer.c (10) Merge in PC98 changes: sys/i386/isa/sound/os.h (11) Deleted as result of 9. and 10. above: sys/pc98/pc98/sound/ad1848_mixer.h sys/pc98/pc98/sound/aedsp16.c sys/pc98/pc98/sound/coproc.h sys/pc98/pc98/sound/finetune.h sys/pc98/pc98/sound/gus_hw.h sys/pc98/pc98/sound/gus_linearvol.h sys/pc98/pc98/sound/hex2hex.h sys/pc98/pc98/sound/mad16.h sys/pc98/pc98/sound/midi_ctrl.h sys/pc98/pc98/sound/midi_synth.h sys/pc98/pc98/sound/opl3.h sys/pc98/pc98/sound/os.h sys/pc98/pc98/sound/pas.h sys/pc98/pc98/sound/sb_mixer.h sys/pc98/pc98/sound/soundvers.h sys/pc98/pc98/sound/tuning.h Submitted by: The FreeBSD(98) Development Team
* Add support for the SDL RISCom N2pci cards. Bring in the enhancementsjhay1996-10-298-2439/+6694
| | | | made to the Arnet driver.
* Remove some unnecessary code in the interrupt handler.jhay1996-10-283-36/+45
| | | | | | | Check that a received packet isn't longer than MCLBYTES. This will sometimes happen if a cable is plugged into or removed from a live system. Try to cater better for early receive interrupts.
* A #define really don't need a ; at the end.jhay1996-10-282-4/+4
|
* comaptibles->compatiblesimp1996-10-281-3/+3
|
* In data_phase_reinit when I converted the code to use bcopy, I should havegibbs1996-10-281-3/+3
| | | | | | used mvi instead of mov. Luckily this code is most likely never executed since it is only there for sanity should a target goes into the data phase twice during a single selection or reselection.
* devfs_tree.c: improve our bdevvp() function.phk1996-10-282-4/+8
| | | | devfs_vnops.c: move a debug printf to be consistent.
* init_main.c: pass -d to init if DEVFS_ROOTphk1996-10-284-4/+14
| | | | | kern_conf.c: gd driver is a disk. vfs_subr.c: include opt_devfs.h
* DEVFS_ROOT -> opt_devfs.hphk1996-10-281-1/+3
|
* Kill _OLD_PATH_LOG. It's not needed.joerg1996-10-281-2/+1
|
* Add basic support for the 398X cards as multi-channel SCSI host adapters.gibbs1996-10-281-23/+106
| | | | | | | | | | | | This involves expanding the support of the SEEPROM routines to deal with the larger SEEPROMs on these cards and providing a mechanism to share SCB arrays between multiple controllers. Most of the 398X support came from Dan Eischer. ahc_data -> ahc_softc Clean up some more type bogons I missed from the last pass.
* Add basic support for the 398X cards as multi-channel SCSI host adapters.gibbs1996-10-284-184/+292
| | | | | | | | | | | | | | | This involves expanding the support of the SEEPROM routines to deal with the larger SEEPROMs on these cards and providing a mechanism to share SCB arrays between multiple controllers. Most of the 398X support came from Dan Eischer. ahc_data -> ahc_softc Clean up some more type bogons I missed from the last pass. Be more clear when handing the NO_MATCH condition. NO_MATCH can also happen when the sequencer encounters an SCB we've asked to be aborted.
* Add some code to allow SCB sharing for the 398X cards. This involves passinggibbs1996-10-281-5/+6
| | | | an extra parameter to ahc_alloc.
* Add two new aic7xxx driver options:gibbs1996-10-284-4/+14
| | | | | | | | | | | | | | AHC_FORCE_PIO - This forces the driver to use PIO even on systems that say they have memory mapped the controller's registers. This seems to fix Ken Lam's problems. I've also placed this option in the GENERIC kernel file so that we are guaranteed to install even on these flakey machines. AHC_SHARE_SCBS - This option attempts to share the external SCB SRAM on the 398X controllers allowing a totoll of 255 non-paged SCBs. This doesn't work quite yet, so this option is mostly here to help 398X owners to experiment and give me feedback until this works properly.
* Fix problems dealing with non-tagged devices when SCB paging is enabled.gibbs1996-10-282-48/+53
| | | | | Mostly this involved changing the semantics of the findSCB routine so that it could be used at times other than handling a reconnection.
* The way we get a vnode for swapdev is not quite kosher. In particularphk1996-10-271-4/+18
| | | | | | it breaks in the DEVFS_ROOT case. replicate a bit too much of bdevvp() in here to circumvent the problem. The real problem is the magic that lives in bdevsw[1].
* Move static variable nextpid out from fork1(). Now top(1) can printwosch1996-10-271-2/+3
| | | | last pid value.
* Use the calibrated/adjustable i8254 frequency `timer_freq' instead ofsos1996-10-263-69/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TIMER_FREQ. Fixed missing splx() in scrn_timer(). The bug was harmless because of the undocumented behaviour that the ipl is automatically restored for timeout functions (see softclock()). Perhaps we should depend on this behaviour. Fixed the ddb fix in rev.1.176. The in_debugger flag was no use because it only works when the debugger is entered via the keyboard hotkey. The debugger may be entered for breakpoints and traps, and the console putc routine has no way of knowing when it was, so the console putc routine must (almost?) always remove the cursor image. Not fixed: console switching in ddb doesn't work (ISTR it working), and console 0 shouldn't be switched to for the debugger hotkey unless console 0 is /dev/console. Fixed side effects from calling add_keyboard_randomness() in the console getc routine by not calling it. add_keyboard_randomness() currently always reenables interrupts on 386's and 486's. This is very bad if the console getc routine is called from the debugger and the debugger was entered with interrupts disabled. Fixed preservation of initial screen and now-bogus comment about it. It was broken by setting the initial scr_buf to `buffer' instead of Crtat. `buffer' was full of nulls and the first scroll cleared everything above the things written through syscons. Submitted by: bruce (bde@freebsd.org)
* Removed initialization of a variable that went away. Oops.bde1996-10-265-25/+15
|
* Don't allow reassembly to create packets bigger than IP_MAXPACKET, and countfenner1996-10-255-8/+32
| | | | | | | | | attempts to do so. Don't allow users to source packets bigger than IP_MAXPACKET. Make UDP length and ipovly's protocol length unsigned short. Reviewed by: wollman Submitted by: (partly by) kml@nas.nasa.gov (Kevin Lahey)
* Declare pointers to signal handling functions in full instead of asbde1996-10-253-8/+6
| | | | sig_t's so that <sys/signal.h> isn't a prerequisite.
* Removed unused #includes.bde1996-10-251-14/+14
| | | | | | | | Strength-reduced used #include. Staticized pcaintr(). Fixed some style bugs.
* Use macros from timmerreg.h instead of private ones.bde1996-10-252-56/+14
| | | | | | | | Use global timer_freq instead of private TIMER_CLK. Removed unused #includes. Fixed some comments.
* Print the clock calibration messages all on one (long) line again sobde1996-10-255-105/+90
| | | | | | | | that they are easy to grep for. Removed now-unused i586 counter variables. Fixed some style bugs.
* Improved biasing of i586 clock by adjusting for hardclock() latency.bde1996-10-255-105/+130
| | | | | | | | | | | | | | | | | | | | | I decided to do this for every hardclock() call instead of lazily in microtime(). The lazy method is simpler but has more overhead if microtime() is called a lot. CPU_THISTICKLEN() is now a no-op and should probably go away. Previously it did nothing directly but had the side effect of setting i586_last_tick for CPU_CLOCKUPDATE() and i586_avg_tick for debugging. CPU_CLOCKUPDATE() now uses a better method and i586_avg_tick is too much trouble to maintain. Reduced nesting of #includes in the usual case. Increased nesting of #includes when CLOCK_HAIR is defined. This is a kludge to get typedefs for inline functions only when the inline functions are used. Normally only kern_clock.c defines this. kern_clock.c can't include the i386 headers directly. Removed unused LOCORE support.
* Removed #include of <machine/clock.h>. It is no longer used, and wouldbde1996-10-251-2/+1
| | | | | | break when I remove LOCORE support from clock.h. I586_CTR_MULTIPLIER_SHIFT = 32 from clock.h is actually still used, but 32 is so magic that it doesn't get used explicitly.
* Unremoved used #include of <sys/systm.h> for the !GUPROF case.bde1996-10-251-1/+4
|
* - KNF cleanup.gibbs1996-10-251-170/+143
| | | | - Add support for memory mapped I/O.
* - KNF cleanup.gibbs1996-10-254-1457/+1100
| | | | | | | | | | | | | | | | - Add support for memory mapped I/O. - Use DMA to get SCBs down to the adapters. - Remove old paging code. - Be much smarter about how we allocate SCB space. The old, simple method wasted almost half a page per SCB. Ooops. - Make command complete interrupt processing more efficient. - Break the monolithic ahc_intr into sub-routines. The sub-routines handle rare, special case events so the function call is not a penalty and the removal of the code from the main routine most likely improves performance instruction prefech will work better and less code is pushed into the cache. - Never, ever allow tagged queueing if a device has disconnection disabled. - Clean up and simplify timeout code. Many of the changes are to handle the new DMA scheme.
* KNF cleanup.gibbs1996-10-251-64/+64
| | | | Update to handle new arg to ahc_alloc.
* Go back to using DMA to get SCBs down to the adapter.gibbs1996-10-252-356/+485
| | | | | | | | | | SCB paging is now handled almost entirely by the sequencer and also uses DMA. This should make SCB paging at least an order of magnitude more efficient and vastly simplifies the implementation. Add a few space optimizations so this code still fits on aic7770 chips. Update comments.
* Added a missing break, so all static bins would be missed :(sos1996-10-241-1/+2
|
* Remove a bogus optimization in the mmap code. It is superfluous,dyson1996-10-241-24/+5
| | | | | and at best is the same speed as the unoptimized code. At worst, it slows down trivial programs.
* Fix setting breakpoints in shared regions.dyson1996-10-242-14/+8
|
* Reviewed by: various (mailing list feedback)julian1996-10-231-2/+3
| | | | | | | | Submitted by: whistle communications move the socket from /dev to /var/run by default TRANSITIONALLY make syslog add a symlink.. I PROMISE I'll remove that as soon as I have the makefiles etc fixed as well.
* Give ip_len and ip_off more natural, unsigned types.wollman1996-10-232-6/+6
|
* GNU-style changes:ache1996-10-231-10/+14
| | | | | | | 1) Rename FNM_ICASE to FNM_CASEFOLD 2) Add FNM_LEADING_DIR Add proper (unsigned char) casts to tolower(). Use 'char' function argument for proper sign extension
* Remove SC_KBD_PROBE_WORKS option and replace it with a simple run-time flagpst1996-10-2313-37/+43
| | | | | | | | | bit (0x0008) in the sc driver configuration line. This way it's easy to boink a generic kernel. Also, document and place in an opt_ file the #define's for overriding which serial port is the system console. Approved by: sos
* Another round of merge.asami1996-10-2340-3542/+705
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Bug fix (pass boot drive): pc98/boot/biosboot/boot2.S (2) Delete code for unsupported high-resolution modes and move old Epson notebook code to epsonio.h: pc98/boot/biosboot/io.c pc98/i386/vm_machdep.c pc98/pc98/fd.c pc98/pc98/pc98.c pc98/pc98/pc98.h pc98/pc98/epsonio.h (new) (3) Change aic driver so that PCMCIA cards (I/O port same as PC/AT) and PC-9801-100 cards can be selected with a flag in kernel config file: pc98/pc98/aic6360.c pc98/pc98/aic_98.h (new) (4) Fix wcd entry (it was broken). Delete mcd, it doesn't work on 98. Change aic entry according to above: pc98/conf/GENERIC98 (5) Move pc98_machdep.c to top of files in pc98/pc98: pc98/conf/files.pc98 (6) Delete empty lines: pc98/i386/locore.s (7) Fix (it didn't work if I586 was specified): pc98/pc98/clock.c (8) Staticize: pc98/pc98/pc98_machdep.c (9) Enable workaround for Cyrix bug for 5x86 also: pc98/i386/machdep.c pc98/i386/trap.c All the above deletes this file too: pc98/i386/pmap.c (phew!) Submitted by: The FreeBSD(98) Development Team
* Account for the UPAGES in the same way as before moving the MD codedyson1996-10-232-2/+10
| | | | from vm_glue into pmap.c. Now RSS should appear to be the same as before.
* Changed args to the nat functions.sos1996-10-223-6/+6
|
* Definitions for ioctl() accesses to PCI config space registers.se1996-10-222-0/+72
| | | | Submitted by: wollman
* Add support for ioctl() accesses to PCI config space registers.se1996-10-224-8/+334
| | | | | | | | | Garrett Wollman sent me this code a few weeks ago for review, and I made some significant changes, which he in turn accepted ... In order to make use of these changes, a device entry has to added to /dev. Submitted by: wollman
* close bin/1648 libmd not 64bit safe.phk1996-10-222-5/+6
| | | | | | if something fails to compile now, you need to add #include <sys/types.h> Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
* Fix comments, which appear to have been mangled long ago and far away.fenner1996-10-211-6/+8
|
* When compiling with '-Wall -pedantic', the byte swapping macros gave thenate1996-10-211-3/+3
| | | | | | | | | following warning: warning: ANSI C forbids braced-groups within expressions Adding __extension__ before the statement-expression seems to work right. Submitted by: bde (a *long* time ago)
* If a large (>4096 bytes) directory was modified, the old directorydfr1996-10-214-14/+22
| | | | | | | | | contents are discarded, including the cached seek cookies. Unfortunately, if the directory was larger than NFS_DIRBLKSIZ, then this confused nfs_readdirrpc(), making it appear as if the directory was truncated. Reviewed by: Karl Denninger <karl@Mcs.Net>
* Fix signed/unsigned comparison warnings.alex1996-10-205-14/+14
| | | | Reviewed by: bde
* Removing old isdn stuff.phk1996-10-208-101/+27
|
* Removing old isdn stuff.phk1996-10-2011-4751/+0
|
OpenPOWER on IntegriCloud