summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add structures and function definitions pertinent for hardware locate support.mjacob1998-12-181-1/+51
|
* Add references to test(1) and expr(1).jkoshy1998-12-181-1/+4
|
* Add cross-references to test(1) and expr(1) respectively.jkoshy1998-12-182-2/+8
| | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net>
* Fix spelling nits.jkoshy1998-12-181-5/+5
| | | | | PR: docs/9115 Submitted by: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
* 1) Clarify that a weof count of zero is allowed (flush buffers).mjacob1998-12-181-1/+30
| | | | | 2) Add in the set of {sethpos,setspos,rdhpos,rdspos) commands to implement the Hardware && SCSI Logical Block position ioctls.
* Enable building libio on the alpha.dfr1998-12-171-2/+6
|
* Move some compile flags from the kernel makefile to bsd.kern.mk so thatdfr1998-12-174-6/+22
| | | | | | kernel modules are built with the right flags. Suggested by: Andrew Gallatin <gallatin@cs.duke.edu>
* Correct the definition of the changer device capabilities page. Thegibbs1998-12-171-1/+1
| | | | previous definition confused some reserved bytes for exchange capabilities.
* import logical/hardware block locate ioctls from NetBSDmjacob1998-12-171-1/+11
|
* Flush the tx fifo in cystop(). Now ttyflush() (and thus tcflush(3))bde1998-12-173-9/+12
| | | | | | | | | | almost works properly. Unfortunately, there is no way to flush the rx fifo without resetting the channel, which also flushes the tx fifo. We avoid resetting even when both fifos need to be flushed, since resetting seems to cause the rx to lose sync if it is done while data is arriving. Reminded by: NIST-PCTS
* Add some tape specific density codes- only enough of them here to recognizemjacob1998-12-171-1/+17
| | | | | some specific older units so we can choose 2FM@EOD or FIXED blocksize quirks.
* Several changes having to do blocksize- mostly to force variable as the default.mjacob1998-12-171-51/+268
| | | | | | | | | | Attempt to determine (at mount time if not done so already) via density code whether a device should default to fixed mode or not. Attempts to set to variable that fail will cause fixed to be selected. Similarly, the '2 filemarks at EOM' quirk is now determined (or attempted to be determined) via density code. Some as yet not entirely tested code for coping with 2FM@EOD position is now also in place.
* Fixed handling of BREAK in input. BREAK was not being converted into anbde1998-12-173-9/+21
| | | | | | escape sequence in the `-ignbrk -brkint parmrk' case. Found by: NIST-PCTS
* Oops, this should have been in the previous commit (ensure atomic updatebde1998-12-173-3/+9
| | | | of com->cor[1]).
* Implemented sending of BREAKs. This is quite complicated because thebde1998-12-175-44/+507
| | | | | | | | hardware is interrupt-driven to a fault and sending a BREAK requires mode switching. Always running in the BREAK-capable mode as in PR 8318 would double the overhead for sending \0's. Reminded by: PR 8318
* Note that dying on NULL is an implementation detail.eivind1998-12-171-5/+7
|
* Look for boot blocks in new default location.jkh1998-12-176-72/+36
|
* Restore old semantics (broken in rev 1.47's buffer overflow fix).eivind1998-12-171-1/+3
|
* Actually document my last addition.cracauer1998-12-172-4/+9
| | | | | | General cosmetics. Add a note that scsi-defects has not been ported to CAM. Submitted by: BDE
* Add an option for insecure mode, in which rwhod does not discard packetsdes1998-12-172-4/+16
| | | | from incorrect source ports.
* Sync with sys/i386/isa/clock.c revision 1.129.kato1998-12-173-66/+66
|
* The fe driver has been merged into sys/i386/isa/if_fe.c.kato1998-12-171-3826/+0
| | | | Forgotten by: kato
* Sync with sys/i386/isa/wd.c revision 1.181.kato1998-12-171-3/+3
|
* Sync with sys/i386/isa/npx.c revision 1.64.kato1998-12-171-2/+2
|
* Sync with sys/i386/isa/fd.c revision 1.129.kato1998-12-172-12/+12
|
* Don't return stack-based data. This may have causedbrian1998-12-171-2/+2
| | | | server-side CHAP authentication problems in the past :-/
* Fix a few problems with handling rejected transfer negotiation messages.gibbs1998-12-173-91/+72
| | | | | | | | | | | | | Use the host message loop for any unknown message types instead of performing a reject message in the sequencer. Pass reject messages to the host message loop too which frees up a sequencer interrupt type slot. Default to issuing a bus reset if initiator mode is enabled. It seems that the reset scsi bus bit is not defined in the same location for all aic78xx BIOSes, so attempting to honor this setting will have to wait until I get more information on how to detect it. Nuke some unused variables.
* Correctly track allocated accept target I/O ccbs so that they can begibbs1998-12-171-15/+17
| | | | | | | aborted prior to disabling our lun. This requires a second set of links since we use the ones in the ccb_hdr during normal operations. Nuke some unused variables.
* At Justin's request, limit the size of buffers that can be mapped intoken1998-12-161-4/+4
| | | | | | | | | | and out of kernel address space (via the pass(4) and xpt(4) peripheral drivers) to 64K (DFLTPHYS). Some controllers, like the Adaptec 1542, don't support more than 64K transactions. We plan on eventually having the capability of limiting this size based on min(MAXPHYS, controller max), but since that capability isn't here yet, limit things to the lowest common denominator.
* <sys/types.h> isn't a prerequisite for <kvm.h>.bde1998-12-161-1/+0
|
* The previous commit was bogus. <stdlib.h> was never a prerequisitebde1998-12-161-2/+0
| | | | | for <kvm.h> or kvm_getloadavg(), and <sys/types.h> was only a prerequisite for <kvm.h> when <kvm.h> was broken.
* Declare size_t and ssize_t if they are not already declared, so thatbde1998-12-162-12/+30
| | | | | | | | | | | | | | | <kvm.h> is self-sufficient again. Moved typedefs and forward struct declarations out of __BEGIN_DECLS/ __END_DECLS. Don't comment out the prototype for kvm_uread(). This was a 4 year old kludge for previous breakage of self-sufficiency. The prototypwe was broken instead. Fixed bitrot (const poisoning) in the type of kvm_uread(). Fixed order of the declaration of kvm_uread().
* Straigthen out the use of the tls and tlf callbacks.phk1998-12-168-84/+20
| | | | | | | | | Not tested on the if_sr, if_cx and if_ar drivers, but expected to work just the same as it used to. Any users of these drivers (or even better: donors of hardware for them) please contact phk@freebsd.org so we can test the next batch of changes to if_sppp.
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. Thisbde1998-12-161-17/+12
| | | | | | | | | | fixes a type mismatch in the call to kvm_uread(). The bug has gone undetected for almost 3 years because kvm_uproc()'s protoype has been disabled for almost 4 years. Trust sysctlbyname() to work properly if it succeeds. Fixed style bugs in revs. 1.19 and 1.22.
* Generalize the if_up() and if_down() functions under the namesphk1998-12-162-15/+42
| | | | | | if_route() and if_unroute(). This is first step towards sanitizing IFF_UP and IFF_RUNNING
* Add missing "break"s to allow multicast routing to work.fenner1998-12-161-1/+3
| | | | Submitted by: Amancio Hasty <hasty@rah.star-gate.com>
* Probable fix for the "cdda2wav" panics that various people have beenken1998-12-161-47/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reporting since this past summer. (I think Daniel O'Conner was the first.) The problem appears to have been something like this: - cdda2wav by default passes in a buffer that is close to the 128K MAXPHYS limit. - many times, the buffer is not page aligned - vmapbuf() truncates the address, so that it is page aligned - that causes the total size of the buffer to be greater than MAXPHYS, which of course is a bad thing. Here's a quote from the PR (kern/9067): ================== In particular, note bp->b_bufsize = 0x0001f950 and bp->b_data = 0xf2219960 (which does not start on a page boundary). vunmapbuf() loops through all the pages without any difficulty until addr reaches 0xf2239000, and then the panic occurs. This seems to indicate that we are exceeding MAXPHYS since we actually started from the middle of a page (the data is being transfered to a non page aligned location). To complete the description, note that the system call originates from ReadCddaMMC12() (in scsi_cmds.c of cdda2wav) with a request to read 55 audio sectors of 2352 bytes (which is calculated to fall under MAXPHYS). This in turn ends up calling scsi_send() (in scsi-bsd.c) which calls cam_fill_csio() and cam_send_ccb(). This results in a CAMIOCOMMAND ioctl with a ccb function code of XPT_SCSI_IO. ================== The fix is to change the size check in cam_periph_mapmem() so that it is like the one in minphys(). In particular, it is something like: if ((buffer_length + (buf_ptr & PAGE_MASK)) > MAXPHYS) buffer is too big My fix is based on the one in the PR, but I cleaned up a fair number of things in cam_periph_mapmem(). The checks for each buffer to be mapped are now in a separate loop from the actual mapping operation. With the new arrangement, we don't have to bother with unmapping any previously mapped buffers if one of the checks fails. Many thanks to James Liu for tracking this down. I'd appreciate it if some vm-savvy folks would look this over. I believe this fix is correct, but I could be wrong. PR: kern/9067 (also, kern/8112) Reviewed by: gibbs Submitted by: "James T. Liu" <jtliu@phlebas.rockefeller.edu>
* Declare setproctitle() as printf0-like.bde1998-12-161-2/+2
|
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This isbde1998-12-162-16/+14
| | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
* Document securelevel 3.ghelmer1998-12-161-2/+2
| | | | PR: docs/8674
* Mention affect of securelevel 3 and higher on attempts to change filter lists.ghelmer1998-12-161-0/+6
| | | | Prompted by: PR docs/7785
* Mention securelevel 3 as affecting ipfw and dummynet. Generalize commentghelmer1998-12-161-2/+11
| | | | | about fdisk and securelevel 2. PR: docs/7785
* Removed the cast to a pointer in the definition of PS_STRINGS andbde1998-12-1612-28/+25
| | | | | | | adjusted related casts to match (only in the kernel in this commit). The pointer was only wanted in one place in kern_exec.c. Applications should use the kern.ps_strings sysctl instead of PS_STRINGS, so they shouldn't notice this change.
* Removed all traces of SYSCTL_INTPTR(). Pointers can't really be passedbde1998-12-162-11/+5
| | | | | | | | | across the kernel -> application interface, and for the one sysctl where they were passed and actually used (kern.ps_strings), the applications want addresses represented as u_longs anyway (the other sysctl that passed them, kern.usrstack, has never been used). Agreed to by: dfr, phk
* Implement and document fetchStatFTP.des1998-12-162-49/+132
| | | | | Update description of struct url_stat in the man page. Clean up error handling in ftp.c.
* Removed bogus casts of USRSTACK and/or the other operand in binarybde1998-12-169-43/+34
| | | | expressions involving USRSTACK.
* Sync with current sc driver in sys/i386/isa.kato1998-12-165-1567/+1499
| | | | Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
* Make it possible to have separate install scripts as well as havejkh1998-12-1610-54/+310
| | | | | | an on-delete script. Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
* Best version so far. Flicker floor is now 2e-12.phk1998-12-161-15/+28
|
* Remove appending objformat to obj prefix forache1998-12-161-2/+2
| | | | | | backend targets. Old variant cause top level things build in /usr/obj/elf while lower level things build in /usr/obj which cause mismatch
OpenPOWER on IntegriCloud