summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add interface revision field to pci_register_lkm parameter list.pci.c pcibus.hse1997-02-043-3/+11
| | | | | | | This parameter is intended to allow new kernels to work with old LKM binaries, provided the revision ID is incremented whenever the PCI LKM interface is changed. The revision ID does not at all protect against changes in data structures accesses by the driver.
* Changed several configuration options:dg1997-02-042-14/+14
| | | | | | | Disabled the DMA byte counters - I had it this way originally and this is the recommended setting. Set crscdt to CRS only (0) since this is what it should be for an MII PHY. Also fixed some comments.
* Do "selective" reset rather than full reset...the manual specificallydg1997-02-044-6/+16
| | | | | | says not to do the full reset because it can lock up the PCI bus if the chip is active. Added various PORT command definitions to facilitate this.
* Don't include the short-frames counter in with the input errors. Thisdg1997-02-042-6/+2
| | | | | counter is incremented on all short frames, including those that are the result of collisions.
* Make sure we have arguments to pass before calling ifaof_ifpforaddrfenner1997-02-041-3/+3
| | | | | | | and ifa_ifwithroute. This eliminates the panic seen in kern/2647, although it doesn't address the fact that RTM_CHANGE can't change flags.
* Initialization of a variable got lost in the last commit when I movedgibbs1997-02-031-0/+1
| | | | a piece of code into a subroutine.
* Fix an oversight in the handling of non-tagged abort requests. We needgibbs1997-02-031-34/+72
| | | | | | to search the QINFIFO to remove any possible command that is waiting otherwise our abort request may not be held up still waiting for the first command to complete.
* Changed return value of ed_probe (= number of I/O ports). Becausekato1997-02-032-24/+43
| | | | | | | | | I/O port address of most devices is not contiguos, a return value of probe routine is not so useful for detecting conflict. The return value was too big, and kernel sometimes detected conflict even though two devices are not conflict in I/O address between them. Suggested by: Chiharu Shibata <chi@rd.njk.co.jp>
* White space cleanup and other cosmetic style changes.gibbs1997-02-032-25/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a few panics during error recovery: 1) Stupid mistake in the "no SCB match handler" where I was using the wrong variable (busy_scbid instead of scb_index). 2) Unbusy the target of an abort request if the command we are trying to abort is an untagged transaction. If we don't, we get a fatal NO_MATCH_BUSY condition which "should never happen". 3) When an abort completes, turn off ahc->in_timeout or else the next timeout will hit the protective "scb timesout again" panic. 4) Fix a typo that caused the requeued "abort" SCB to have its TAG_ENB and disconnect bits to be cleared (missing ~) so that devices would complain about overlapped commands. Be sure to turn off the unexpected busfree interrupt after we do a bus reset since we are expecting the bus to go free in that case. Return XS_TIMEOUT instead of XS_DRIVERSTUFFUP in certain scenarios. XS_TIMEOUT allows for retries, XS_DRIVERSTUFFUP does not. Allow commands with SDTR and WDTR negotiation to be tagged. The SCSI II spec says that you probably should not do this for fear of hitting bogus devices. The driver did this in the past for almost two years without any problem, and not doing it causes problems during error recovery to a tag capable device as the number of openings is higher than two and we'll start sending it tagged commands causing "overlapped commands attempted" type errors. The real fix needs to happen in the generic SCSI layer which can limit the number and type of transactions to a device during error recovery efficiently. Give ourselves at least 100ms to perform a request sense instead of relying on the original timeout to be long enough to complete this new command as well as the one that generated the condition. Removed some redundant code.
* In dma_finish, don't disturb the direction bit in DFCNTRL when turning offgibbs1997-02-031-6/+3
| | | | | | | host DMAs. The additional test to ensure that the DMA has stopped is also unnecessary since we've already waited for the DMA to complete. Update my copyright for the new year.
* Do not accidentally default a device that failed probing to T_DIRECTjoerg1997-02-021-0/+1
| | | | | | | (since T_DIRECT just incidentally happens to be equal 0). This causes more harm than it would do good. Instead , get it at the uk driver. Reviewed by: obrien@NUXI.com (David O'Brien)
* Reset ip_divert_ignore to zero immediately after use - also,brian1997-02-023-2/+3
| | | | | | | | | | | set it in the first place, independent of whether sin->sin_port is set. The result is that diverted packets that are being forwarded will be diverted once and only once on the way in (ip_input()) and again, once and only once on the way out (ip_output()) - twice in total. ICMP packets that don't contain a port will now also be diverted.
* Make ibcs2 a little bit saver. Add copyright.wosch1997-02-022-6/+70
|
* Deleted i386_cpus[]. i386_cpus[] is a static variable in identcpu.c.kato1997-02-022-2/+0
| | | | Found-by: lint
* Synchronize with sys/i386/isa/sio.c revision 1.158.kato1997-02-022-6/+30
|
* Correct the usage of fea0. It's an EISA driver now, so the ISA usagejoerg1997-02-013-9/+12
| | | | | | is bogus. Also, correct a stale comment about non-existing EISA support.
* Fixed the SMC fifo bug fix. sioopen() hung while input was streaming inbde1997-02-013-9/+45
| | | | | | | | | | with <= 100 usec between each character arrival time. This didn't happen until rev.1.75 of clock.c because DELAY(100) used to delay for closer to 80 usec than 100 usec, and the minimum time between character arrivals is 87.8 usec at the maximum supported speed of 115200 bps 8N1. Clear DCD timestamp flag on close (the input timestamp flag is already cleared).
* - KNFized pc98 specific files.kato1997-01-314-136/+149
| | | | | - Disabled unuseinit_cpu_accel_mem() which doesn't work now. - Deleted extra space at the end of line.
* Synchronize with sys/i386/isa/syscons.c revision 1.200.kato1997-01-311-1/+10
|
* Synchronize with sys/i386/i386/locore.s revision 1.80.kato1997-01-311-1/+1
|
* Another fix to inheriting shared segments. Do the copy on writedyson1997-01-311-1/+9
| | | | | thing if needed. Submitted by: Alan Cox <alc@cs.rice.edu>
* Fix yet another breakage i've missed when committing rev 1.14. It wasjoerg1997-01-301-1/+1
| | | | | | non-obvious to me since my test kernel didn't run NETATALK. Sorry. LINT should compile again now.
* Fix a benign type mismatch i've introduced in rev 1.40.joerg1997-01-301-14/+14
| | | | Pointed out by: bde
* Removed PG_N from here, too. Some machines don't like it and it's unnecessary.dg1997-01-303-3/+3
|
* Removed unnecessary PG_N flag from device memory mappings. This is handleddg1997-01-302-2/+2
| | | | | by the CPU/chipset already and was apparantly triggering a hardware bug that causes strange parity errors.
* Fixed the "switch to next screen" command (normally bound to thesos1997-01-303-3/+30
| | | | | | | key "print scrn". It used to stop at the first non-open vty, now it skips the non-open ones and thereby enable one to cycle around all open vty by pressing "print scrn".
* Removed reference to PSM_NO_RESET which is no longer available.yokota1997-01-303-6/+3
|
* Change space to tab.asami1997-01-301-1/+1
| | | | Pointed out by: bde (this is only one of the four, though)
* Synchronize with sys/i386/isa/sio.c revision 1.157.kato1997-01-302-14/+50
|
* Synchronize with sys/i386/isa/npx.c revision 1.38.kato1997-01-301-2/+6
|
* Synchronize with sys/i386/isa/clock.c revision 1.75.kato1997-01-303-30/+63
|
* Estimate an initial overhead of 0 usec instead of 20 usec in DELAY().bde1997-01-295-50/+105
| | | | | | | | | | | | | | | | | | I have code to calibrate the overhead fairly accurately, but there is little point in using it since it is most accurate on machines where an estimate of 0 works well. On slow machines, the accuracy of DELAY() has a large variance since it is limited by the resolution of getit() even if the initial delay is calibrated perfectly. Use fixed point and long longs to speed up scaling in DELAY(). The old method slowed down a lot when the frequency became variable. Assume the default frequency for short delays so that the fixed point calculation can be exact. Fast scaling is only important for small delays. Scaling is done after looking at the counter and outside the loop, so it doesn't decrease accuracy or resolution provided it completes before the delay is up. The comment in the code is still confused about this.
* Fixes and workarounds for Hayes ESP:bde1997-01-293-21/+75
| | | | | | | | | | | | | | | - don't uselessly initialize the fifo "DMA" bit at attach time. - initialize the fifo "DMA" bit at open time. Without this, the device interrupts for every character received, reducing input performance to that of an 8250. - don't uselessly initialize the fifo trigger level to 8 (scaled to 256) at attach time. - don't scale the fifo trigger level to 512 bytes. The driver's pseudo- dma buffer has size 256, so it can't handle bursts of size 512 or 256. It should be able to handle the second lowest ftl (2 scaled to 64). - don't reset the fifos in siostop(). Reset triggers a hardware bug involving wedging of the output interrupt bit This workaround unfortunately requires ESP support to be configured.
* Removed `Debugger("no slices")'. It's normal and harmless to have nobde1997-01-291-5/+2
| | | | | | slices in sd_open() after a media change when the previous sd_open() discards the previous slices and then fails. sd_open() just handles media changes poorly and fails too often.
* Disabled logging of masked exceptions on exit. Keep the side effect ofbde1997-01-293-6/+18
| | | | saving the state (see rev.1.17).
* Fixed reset port address of PC-9801-108.kato1997-01-291-1/+1
| | | | Submitted by: Chiharu Shibata <chi@rd.njk.co.jp>
* Add 1997 to my copyright.gibbs1997-01-291-5/+7
| | | | | Change the autotermination code slightly to be more careful on narrow adapters.
* Add 1997 to my copyright.gibbs1997-01-292-136/+377
| | | | | | | | | | | | | | | | | | | | If we can, use timeouts instead of DELAYs when dealing with a bus reset. This prevents us from holding up the whole machine for a noticible amount of time (especially for a real time app). Make a pass over the timeout/error handling code. Aborts are more reliable. We actually handle parity errors correctly now instead of locking up the bus. Added code to properly clean up disconnected SCBs down on the card during error handling. Improved robustness in several areas. If we are using defaults, but are an Ultra card, negotiate at 20MHz instead of 10. Don't attempt to handle any commands for 100ms after a reset has occured. This is the minimum time before a target will respond to selection. Also disable the busfree interrupt before doing a bus reset. This prevents the driver from getting confused by an "unexpected busfree".
* Add 1997 to my copyright.gibbs1997-01-292-16/+7
| | | | | | | | | Expand the boundaries of a pause disabled region to close of possible race condition. Revert a portion of the DMA code to fix false overruns. Add a missing "add_scb_to_free_list" so we don't leak SCBs.
* Synchronize with sys/i386/conf/options.i386 revision 1.34.kato1997-01-282-0/+4
|
* Some of these cards are always in promiscous mode :-(phk1997-01-281-15/+12
| | | | | If you enable ip forwarding your net melts down. This is a workaround, probably not the correct fix.
* Fixed EXTRAVNODES ifdef.bde1997-01-271-3/+3
| | | | Updated warnings about obsolete options.
* Set the soft openfiles limit to maxfiles instead of to NOFILE.bde1997-01-271-2/+5
| | | | | | | | | | | | | | | | | | | The limit is now only used by init, so it may as well be "infinite". Don't use RLIM_INFINITY, since setrlimit() doesn't allow setting that value. Use maxfiles instead of RLIM_INFINITY for the hard limit for the same reason. Similarly for the maxprocesses limits (use the "infinite" value of maxproc instead if MAXUPRC and RLIM_INFINITY). NOFILES, MAXUPRC, CHILD_MAX and OPEN_MAX are no longer used in /usr/src and should go away. Their values are almost guaranteed to be wrong now that login.conf exists, so anything that uses the values is broken. Unfortunately, there are probably a lot of ports that depend on them being defined. The global limits maxfilesperproc and maxprocperuid should go away too.
* Removed bogus options CHILD_MAX and OPEN_MAX.bde1997-01-273-39/+0
|
* Removed bogus options CHILD_MAX and OPEN_MAX.bde1997-01-271-4/+5
| | | | | | Put obsolete GATEWAY option back in opt_defunct.h. It's the only significant option that has gone away since 2.1.6, so warning about it might be useful.
* Added KBD_MAXRETRY and PSM_NO_RESET.bde1997-01-272-0/+4
|
* Added lots of undocumented options KBD*, MSG*, NBUF, NMBCLUSTERS, PSM*,bde1997-01-273-0/+84
| | | | | | SEM* and SHM*. These are already supported in the options files. I mostly used the default value plus 1. This ensures that the LINT kernel depends on the options headers.
* Removed non-options MSGMAX, SEMAEM, SEMUSZ and SEMVMX.bde1997-01-271-4/+0
|
* Removed #undef of MSGMAX, so that a warning gets printed if it isbde1997-01-271-1/+0
| | | | (bogusly) defined.
* fix mixleading comment (my error.. I wrote the comment)julian1997-01-261-1/+1
|
OpenPOWER on IntegriCloud