summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix is_splxxx() warnings when not compiled with INVARIANT_SUPPORT.peter2000-02-141-16/+14
| | | | Approved by: jkh
* Avoid a panic in __getcwd(2) when combined with umount -f.peter2000-02-141-0/+2
|
* Initial importdmlb2000-02-132-0/+0
|
* Simplifications:groudier2000-02-132-584/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove all the code intended to deal with experimental C1010 revisions. This code got useless due to commercial chip revisions having been fixed. Fixes: - Rewrite/rework the WSR condition handling. Previous drivers snooped on the BUS through the SBDL IO register and this has been discovered to trigger a spurious SCSI parity error when WSR had been set by chip and cleared by SCRIPTS prior to reading SBDL bit [0...7]. On the other hand, the C1010 does not use the SWIDE register when synchronous data transfers are taking place and requires a CHMOV (1) WHEN DATA_IN to be performed in order to move to memory the residual byte when WSR is set and the residual byte is useful data. BTW, the new WSR handling by the driver is simpler. - No longer attempt to read from SCRIPTS the SBDL register. This is intended to avoid to be victimized again by any other issue regarding the handling of this register by 8xx chips. Miscellaneous: - The driver is now able to handle the WSR + IGN RESIDUE condition at the end of a DATA IN I/O without need of a programmed interrupt. It is a minor? optimization. - A few other minor cosmetic changes. This driver version fixes notably a permanent SCSI parity error condition at boot that can be triggerred due to recent changes in cam_xpt.c between 1.79 and 1.80. Changes in CAM/XPT are fine, but the new handling of the full INQUIRY may trigger the driver problem when a target returned an odd value in the `additionnal length' field of the INQUIRY response. The diff against previous driver version is large, but it consists approximatively in: - 350 lignes removed and not compiled in previous drivers (They addressed experimental C1010 revisions) - 250 lignes added or changed, half being comments or empty lines. So, in fact, the real changes are about 120 lines of source. About 80 lines address SCRIPTS changes and about 40 lines address C code changes. Approved by: jkh New WSR handling reviewed by Pamela Delaney <pam.delaney@lsil.com> (For back-porting to Linux sym53c8xx driver 1.6x series)
* Fix sign reversal in adjtime(2).phk2000-02-132-2/+2
| | | | Approved by: jkh
* Fix an uninitialised variable which affected probing on some machines.dfr2000-02-136-0/+6
| | | | | Approved by: jkh Reviewed by: gallatin
* Oops, forgot this from the previous commit. Remove obsolete #ifdef ISO.peter2000-02-131-3/+0
| | | | Approved by: jkh
* Clean up some loose ends in the network code, including the X.25 and ISOpeter2000-02-1336-637/+62
| | | | | | | #ifdefs. Clean out unused netisr's and leftover netisr linker set gunk. Tested on x86 and alpha, including world. Approved by: jkh
* Fix two warnings.peter2000-02-132-2/+2
|
* Document the support in the kernel for hardware debug registers on theobrien2000-02-122-0/+6
| | | | | | ix86 platform which allows for hardware watchpoints, etc... Submitted by: Brian Dean <brdean@unx.sas.com>
* Add functions which allow i/o memory to be accessed without forcing adfr2000-02-121-0/+19
| | | | | | memory barrier (needed for XFree86 4.0). Approved by: jkh
* Yet-another-update: rename ``kern.prison'' to a new sysctl root entry,rwatson2000-02-123-10/+11
| | | | | | | | | | ``jail'', and move the set_hostname_allowed sysctl there, as well as fixing a bug in the sysctl that resulted in jails being over-limited (preventing them from reading as well as writing the hostname). Also, correct some formatting issues, courtesy bde :-). Reviewed by: phk Approved by: jkh
* The Leadtek Winfast TV2000 has one of the FM capable Tuners. Don'tpeter2000-02-121-0/+8
| | | | | | default to a non-FM tuner or FM radio is non-functional. Approved by: jkh
* Do a trivial conversion of xrpu to newbus.peter2000-02-121-50/+62
| | | | | Reviewed by: phk ("commit it!" :-) Pre-Approved by: jkh
* Add in 12160 (Ultra3) support. Redo things to use the newbus code.mjacob2000-02-112-282/+392
| | | | | | Approved: jkh@freebsd.org PR: 16141
* Turn back on fast posting- the code that turns it off (for 1020/1040) ismjacob2000-02-111-5/+0
| | | | | | now in isp.c Approved: jkh@freebsd.org
* Correct a minor typo in error message.mjacob2000-02-111-1/+1
| | | | Approved: jkh@freebsd.org
* Add in new async mbox defines for 2200- point to point stuff.mjacob2000-02-111-0/+23
| | | | | | | Add in definitions for the extended initialization control block (2200 only again). Approved: jkh@freebsd.org
* Add in 12160 (Ultra3) NVRAM definitions.mjacob2000-02-111-2/+76
| | | | Approved: jkh@freebsd.org
* Add in 12160 (Ultra3) firmware. Gawd, this file is bulky.mjacob2000-02-111-0/+4037
| | | | Approved: jkh@freebsd.org
* Restructure nvram reading routine to split out to separate functionsmjacob2000-02-111-362/+584
| | | | | | | | | | | | | for 1020/1X80/12160/2X00- for readability. Add in 12160 (Ultra3) support- but not with PPR just yet. Fix and clarify fetching of return parameter for getting firmware rev which for the 2200 contains the connection topology (Private Loop (NL-port), N-port, FL-port, F-port). Synthesize the connection topology for the 2100 which can only be Private Loop or FL-port. Handle a couple of new async mailbox commands which signify connection in Point-to-Point mode (N-port or F-port) or indicate various toe stubbing getting to same. Approved: jkh@freebsd.org
* Add 12160 (Ultra3) defines. Add config option flag for forcing point-to-pointmjacob2000-02-111-5/+12
| | | | | | instead of FC-AL (2200 only). Approved: jkh@freebsd.org
* Forgot one line: don't try to match flags when looking for a flow.luigi2000-02-111-0/+1
| | | | Approved-by: jordan
* Synced with sys/dev/syscons/syscons.c rev 1.336.kato2000-02-111-3/+5
|
* Synced with sys/dev/syscons/scterm-sc.c rev 1.4.kato2000-02-112-4/+8
|
* That "NO DRIVER" panic fix wasn't good enough...sos2000-02-111-1/+1
|
* When allocating resources in the following cases:msmith2000-02-111-5/+5
| | | | | | | | | | | | | | | | | | | | - trying for a fit for a PnP configuration from a device - soaking up resources from a configuration that were not allocated by the driver do not attempt to activate them. Only a device driver that is aware of the nature of the resource and its suitability can be certain that activating a resource, particularly a memory resource, is a safe thing to do. This was prompted by the discovery that many systems report all physical memory through a PNP0c02 device; activating this resource maps all physical memory into the kernel's virtual space, either blowing out the kernel pagetable or in the worst case causing a panic in pmap_mapdev() if the system has too much physical memory. Authorised by: jkh Reviewed by: dfr
* - Be slightly more cautious and try to make more sure the keyboardyokota2000-02-112-8/+18
| | | | | | | input queue is emptied when initializing the keyboard controller. - Remove an unnecessary `if' statement. Approved by: jkh
* - Don't reset text colors when changing the video mode.yokota2000-02-111-0/+2
| | | | Approved by: jkh
* - Fix text cursor logic so that multiple instances of the "normal" cursoryokota2000-02-112-5/+7
| | | | | | | won't appear on the screen, and "blinking" and "destructive" cursor won't appear in the vty for which the text cursor is currently hidden. Approved by: jkh
* Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefineguido2000-02-1036-16/+58
| | | | | | | CVS_FUBAR (which no longer exists) and thus forgot to add $FreeBSD's. Add them. Approved by: jkh (is part of ipfilter upgrade)
* Prototype fix for IPsec authentication related functionsshin2000-02-104-13/+15
| | | | | | | | | | | | Some of IPsec authentication related functions should have 'const' for its 2nd argument, but not now. But if someone try to use them, and passed const data for those functions, then much bogus compile warnings will be generated. So those funcs prototype should be modified. Requested by: archie Approved by: jkh
* Forbid include of soem inet6 header files from wrong placeshin2000-02-106-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KAME put INET6 related stuff into sys/netinet6 dir, but IPv6 standard API(RFC2553) require following files to be under sys/netinet. netinet/ip6.h netinet/icmp6.h Now those header files just include each following files. netinet6/ip6.h netinet6/icmp6.h Also KAME has netinet6/in6.h for easy INET6 common defs sharing between different BSDs, but RFC2553 requires only netinet/in.h should be included from userland. So netinet/in.h also includes netinet6/in6.h inside. To keep apps portability, apps should not directly include above files from netinet6 dir. Ideally, all contents of, netinet6/ip6.h netinet6/icmp6.h netinet6/in6.h should be moved into netinet/ip6.h netinet/icmp6.h netinet/in.h but to avoid big changes in this stage, add some hack, that -Put some special macro define into those files under neitnet -Let files under netinet6 cause error if it is included from some apps, and, if the specifal macro define is not defined. (which should have been defined if files under netinet is included) -And let them print an error message which tells the correct name of the include file to be included. Also fix apps which includes invalid header files. Approved by: jkh Obtained from: KAME project
* Fix sysctl namespace for jail: move the kern.jailcansethostname torwatson2000-02-103-8/+11
| | | | | kern.prison.set_hostname_allowed, off of the kern.prison node. Future jail twiddles should be placed in this namespace.
* Correctly handle the conversion from virtual to physical addresses. Then_hibma2000-02-106-48/+77
| | | | | | | | | | | | problem was basically (for offset > 4096): vtophys(addr) + offset != vtophys(addr + offset) Also, use TD's with a maximum size of 4k instead of 8kb for OHCI controllers. This problem occurs in drivers that use large transfer sizes: umass, host2host and ethernet with jumbo frames.
* Move definition of fw_enable from ip_fw.c to ip_input.cluigi2000-02-102-1/+1
| | | | | | | so we can compile kernels without IPFIREWALL . Reported-by: Robert Watson Approved-by: jordan
* Whoops... forgot braces in a conditionalluigi2000-02-101-6/+7
| | | | | | Revealed-by: diff with -STABLE version (the advantage of having multiple lines of development...) Approved-by: jordan
* Support the net.inet.ip.fw.enable variable, part ofluigi2000-02-102-3/+3
| | | | | | the recent ipfw modifications. Approved-by: jordan
* Support for stateful (dynamic) ipfw rules. They are veryluigi2000-02-104-65/+525
| | | | | | | | similar to ipfilter's keep-state. Look at the updated ipfw(8) manpage for details. Approved-by: jordan
* Introduce a new sysctl, kern.jailcansethostname, which determines whetherrwatson2000-02-102-3/+12
| | | | | | | | | | | | or not a process in a jail, with privilege, may set the jail's hostname. Defaults to 1, which permits this. May be set to 0 by a process with appropriate privilege outside of jail. Preventing hostname renaming from within a jail is currently required to make jails manageable, as they a currently identifiable only by hostname using /proc, which may be modified without this sysctl being set to 0. This will be documented in upcoming man commits. Authorized by: jkh, the ever-patient
* kbdcontrol isn't in everyones path(read: non-root people), so specifybillf2000-02-103-5/+5
| | | | | | an absolute path for us mere mortals. Approved by: jkh
* Update the Tigon driver to use the 12.3.18 firmware release from Alteon.wpaul2000-02-106-7208/+7476
| | | | | | (No changes to the driver code itself.) Approved by: jkh
* Kill the "unpause_always" argument to unpause_sequencer(). The reasonsgibbs2000-02-094-178/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for optimizing the unpause operation no-longer exist, and this is much safer. When restarting the sequencer, reconstitute the free SCB list on the card. This deals with a single instruction gap between marking the SCB as free and actually getting it onto the free list. Reduce the number of transfer negotiations that occur. In the past, we renegotiated after every reported check condition status. This ensures that we catch devices that have unexpectidly reset. In this situation, the target will always report the check condition before performing a data-phase. The new behavior is to renegotiate for any check-condition where the residual matches the orginal data-length of the command (including 0 length transffers). This avoids renegotiations during things like variable tape block reads, where the check condition is reported only to indicate the residual of the read. Revamp the parity error detection logic. We now properly report and handle injected parity errors in all phases. The old code used to hang on message-in parity errors. Correct the reporting of selection timeout errors to the XPT. When a selection timeout occurs, only the currently selecting command is flagged with SELTO status instead of aborting all currently active commands to that target. Fix flipped arguments in ahc_match_scb and in some of the callers of this routine. I wish that gcc allowed you to request warnings for enums passed as ints. Make ahc_find_msg generically handle all message types. Work around the target mode data-in wideodd bug in all non-U2 chips. We can now do sync-wide target mode transfers in target mode across the hole product line. Use lastphase exclusively for handling timeouts. The current phase doesn't take the bus free state into account. Fix a bug in the timeout handler that could cause corruption of the disconnected list. When sending an embedded cdb to a target, ensure that we start on a quad word boundary in the data-fifo. It seems that unaligned stores do not work correctly.
* Fix parity error detection logic for aic7880 and aic7895 chips duringgibbs2000-02-091-8/+22
| | | | | | the probe of external SRAM. Approved by: jkh@FreeBSD.org
* Bring over ipfilter v3_3_8 kernel sources, including merging theguido2000-02-0940-186/+216
| | | | | | | | local modifications. Also fix initializing fr_running in KLD case. Rename ipl_inited to fr_runninhg in mlfk_ipl Approved by: jkh
* Allow allows peer pci buses which are directly connected to the RCC host pcigallatin2000-02-096-42/+132
| | | | | | | | | chipset to be probed & attached on newer Dell PowerEdge servers, such as the 2400 and 4400. Reviewed by: dfr, msmith, jlemon Tested by: hnokubi@yyy.or.jp (in a previous incantation) Approved by: jkh
* Support the new ata(4) syntax, while providing backward compatibility for wd(4).ru2000-02-092-20/+26
| | | | | Reviewed by: jkh, msmith, sos Approved by: jkh
* Remove the old copy of this file. It is now active in its new location.mdodd2000-02-091-186/+0
| | | | Implicit Approval by: jkh
* Complete the repo-copy of ida_pci.c to sys/dev/ida/mdodd2000-02-091-1/+1
| | | | Implicit Approval by: jkh
* Correct an oversight in jail() that allowed processes in jail to accessrwatson2000-02-091-1/+8
| | | | | | | | | ptys in ways that might be unethical, especially towards processes not in jail, or in other jails. Submitted by: phk Reviewed by: rwatson Approved by: jkh
OpenPOWER on IntegriCloud