aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Don't clear the SA_FLAG_TAPE_LOCKED prior to callingMatt Jacob1999-11-211-13/+16
| | | | | | | | | | | | | | | | | | saprevent when we're doing an OFFLINE ioctl- saprevent won't unlock the door, which then causes the unload to fail on some units. If we've already unloaded the tape, don't try and rewind and unload in saclose. This is a slightly riskier change because we're now going to depend on SA_FLAG_TAPE_MOUNTED to say whether we've really unloaded the tape. This involved changing the setting in sadone for tape errors to SA_FLAG_TAPE_FROZEN (which is more accurate anyway-if you get an EIO you've probably lost tape position anyway) where it used to just clear the mounted flag. Notes: svn path=/head/; revision=53522
* Add make_dev functions. Tested with only one changer (sigh- all my othersMatt Jacob1999-11-211-3/+7
| | | | | | | | are broken). Submitted by: ken@freebsd.org Notes: svn path=/head/; revision=53520
* Introduce the new functionPoul-Henning Kamp1999-11-2119-55/+48
| | | | | | | | | | | | | | | | | p_trespass(struct proc *p1, struct proc *p2) which returns zero or an errno depending on the legality of p1 trespassing on p2. Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one extra signal related check. Replace procfs.h:CHECKIO() macros with calls to p_trespass(). Only show command lines to process which can trespass on the target process. Notes: svn path=/head/; revision=53518
* Addition of new fields to the usb_devinfo struct to enable the newNick Hibma1999-11-213-13/+26
| | | | | | | | | | | | | | | | | | | | | and shiny usbd daemon to handle events. usb_port.h: - Add a macro to retrieve the unit number from a USBBASEDEVICE usb.h, usb_subr.c: - Add fields to the device_info struct. usb_subr.c: - Fill in the new fields. - Remove the notification of the event up a bit to make sure all the information is still available to fill the usb_devinfo struct. This requires recompilation of usbdevs (src/usr.sbin/usbdevs) and the ezdownload/ezupload (ports/misc/ezload) utilities in any case. Notes: svn path=/head/; revision=53515
* Revoke the vnodes on detach. This avoids the crashes people have seenNick Hibma1999-11-214-17/+48
| | | | | | | | | | when moused was still running when the mouse was detached. Convert uhid to use make_dev while I am there. Ugen still needs to be converted. Notes: svn path=/head/; revision=53514
* Enclosed the arguments of binary and in brackets.Nick Hibma1999-11-211-5/+7
| | | | Notes: svn path=/head/; revision=53513
* fix for -fno-builtinCameron Grant1999-11-213-4/+6
| | | | | | | PR: kern/14278 Notes: svn path=/head/; revision=53512
* Add text for Rendition Verite V1000 and V2000 video cards.Boris Popov1999-11-211-0/+9
| | | | Notes: svn path=/head/; revision=53511
* Remove race condition under SMP.Boris Popov1999-11-212-4/+16
| | | | | | | Noted by: Denis Kalinin <denis@mail.rbc.ru> Notes: svn path=/head/; revision=53509
* These files have been repo-copied to dev/sound/* (making way for pcmPeter Wemm1999-11-2128-11278/+0
| | | | | | | and midi to share the backend files). Notes: svn path=/head/; revision=53506
* Moved useracc() to top of sigreturn as to avoid panicPeter Holm1999-11-212-8/+8
| | | | | | | | | caused by invalid arguments to rutine. Reviewed by: marcel, phk Notes: svn path=/head/; revision=53504
* s/p_cred->pc_ucred/p_ucred/gPoul-Henning Kamp1999-11-2117-20/+20
| | | | Notes: svn path=/head/; revision=53503
* Document new feature (support for write(2) when 1 hook attached).Julian Elischer1999-11-212-0/+20
| | | | Notes: svn path=/head/; revision=53501
* Fixes from brian. With some changes from me.Julian Elischer1999-11-213-43/+74
| | | | | | | | Allows FreeBSD to run as a PPPOE server One patch still not included. Notes: svn path=/head/; revision=53498
* If vfs_mountroot_try() isn't given a path to try mounting, return a silentMike Smith1999-11-212-2/+2
| | | | | | | | error rather than complaining about it verbosely. No path is not really a failure, but the diagnostic was confusing and unuseful. Notes: svn path=/head/; revision=53493
* Tempt fate and stop index from converting a const char * into a char *.Peter Wemm1999-11-214-22/+48
| | | | | | | | | | I've made a seperate version (c_index() etc) that use const/const, but I'm not sure it's worth it considering there is one file in the tree that uses index on const strings (kern_linker.c) and it's easily adjusted to scan the strings directly (and is perhaps more efficient that way). Notes: svn path=/head/; revision=53492
* document new ISP config optionsMatt Jacob1999-11-213-6/+42
| | | | Notes: svn path=/head/; revision=53491
* Clean up stupidity in the isp_handle_other_response function- indexesMatt Jacob1999-11-211-119/+169
| | | | | | | | | | | of queue entries have to be at least 16 bits now! If we're running a 2100 less than rev 5, turn off loop fairness (per Qlogic errata). Fix typo in checking against 2200 F/W revision. Slightly fix/reorder fabric login stuff. Change to usage of isp_getrqentry for code clarity. Add some defensive dual bus assumptions. Various cleanups, etc... Notes: svn path=/head/; revision=53490
* Add storage/access for a default WWN. A miscellaneous tweak or two.Matt Jacob1999-11-211-3/+3
| | | | Notes: svn path=/head/; revision=53489
* Add a isp_getrqentry inline function (that is, find the next availableMatt Jacob1999-11-211-0/+24
| | | | | | | request queue entry if any are left). Notes: svn path=/head/; revision=53488
* Fix some includes for when we (eventually) get target mode working again.Matt Jacob1999-11-211-54/+77
| | | | | | | | | | Role the core version minor number. Change the arguments to the dma setup function to use a u_int16_t for the output request loop pointer (truly amazing that this hasn't blown up in anyones face so far). Do some shuffling around of some items. Notes: svn path=/head/; revision=53487
* Put *back* the f/w, this time with a BSD style licence as approvedMatt Jacob1999-11-211-6/+25220
| | | | | | | | | | | | by Qlogic. The firmware is now also kept from compiling by default unless some config options are set. While we're at it, roll the 2200 f/w to 2.01.0. Still need to get the 1.17.26 2100 f/w working as it solves a lot of problems but it doesn't want to work yet with this driver (:-)). Notes: svn path=/head/; revision=53486
* Add in new Qlogic isp config options:Matt Jacob1999-11-211-0/+7
| | | | | | | | | | | | | | | | | ISP_COMPILE_1020_FW compile in Qlogic 1020/1040 PCI SCSI f/w ISP_COMPILE_1080_FW compile in Qlogic 1080/1240/1280 PCI LVD SCSI f/w ISP_COMPILE_2100_FW compile in Qlogic 2100 Fibre Channel f/w ISP_COMPILE_2200_FW compile in Qlogic 2200 Fibre Channel f/w ISP_COMPILE_FW compile in all firmware (overrides the others) These are not on by default, thus saving about 200KBytes. Additionally: SCSI_ISP_WWN to define a WWN to use Notes: svn path=/head/; revision=53485
* Fix dmasetup functions to have 16 bit queue indices. Get the chip revisionMatt Jacob1999-11-212-56/+80
| | | | | | | | | out of the PCI CLASS reg and store it in the softc. Use the getenv_quad function to get a WWN override from the environment. Look for a config value for same. Make slightly less lame the wwn seed construction. Notes: svn path=/head/; revision=53484
* Revert peter's commit to remove cdevsw_add() - it was a bit prematureJordan K. Hubbard1999-11-211-0/+2
| | | | | | | | since things fail to function properly without it (pty allocation becomes somewhat haphazard). Notes: svn path=/head/; revision=53483
* s/Brige/Bridge/.Jun Kuriyama1999-11-212-8/+8
| | | | Notes: svn path=/head/; revision=53476
* Teach the md driver to use preloaded files of type "md_image".Poul-Henning Kamp1999-11-201-68/+128
| | | | Notes: svn path=/head/; revision=53471
* Minor tweak: the subsystem device ID code for the quad port 62044 cardBill Paul1999-11-204-4/+14
| | | | | | | | | | | is documented to be 0x18 in the Adaptec manual, however there appears to be a newer board rev with code 0x19. I added a #define for this and updated the probe code so that this board will be properly identified in the probe messages. (Currently it's just identified generically as an AIC-6915 chip.) Notes: svn path=/head/; revision=53468
* A process should be able to examine itself.Sean Eric Fagan1999-11-202-4/+6
| | | | Notes: svn path=/head/; revision=53467
* changes for the new location of pcmCameron Grant1999-11-201-14/+14
| | | | Notes: svn path=/head/; revision=53466
* repo-copied to make way for newmidi, this commit updates include pathsCameron Grant1999-11-2017-33/+33
| | | | Notes: svn path=/head/; revision=53465
* We do not have ffs_checkexp, so remove the prototypeEivind Eklund1999-11-201-2/+0
| | | | Notes: svn path=/head/; revision=53464
* Fix VOP_MKNOD for loss of WILLRELE. I don't know how I could have missedEivind Eklund1999-11-202-14/+2
| | | | | | | | | this in the first place :-( Noticed by: bde Notes: svn path=/head/; revision=53463
* Allow NULL for startp and/or countp in bus_get_resource() so that you canPeter Wemm1999-11-204-8/+16
| | | | | | | get one of the two without having to use a dummy variable. Notes: svn path=/head/; revision=53461
* Get rid of calls to vfinddev() by ripping out code for vnode typePoul-Henning Kamp1999-11-201-26/+0
| | | | | | | which has already been disabled. Notes: svn path=/head/; revision=53458
* Get rid of calls to vfinddev() by doing like specfs.Poul-Henning Kamp1999-11-201-15/+7
| | | | Notes: svn path=/head/; revision=53457
* struct mountlist and struct mount.mnt_list have no business beingPoul-Henning Kamp1999-11-2019-76/+68
| | | | | | | | | | | | | a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively. This removes ugly mp != (void*)&mountlist comparisons. Requested by: phk Submitted by: Jake Burkholder jake@checker.org PR: 14967 Notes: svn path=/head/; revision=53452
* I forgot to remove the "NCARD == 0" hacks that kept this driverMatthew N. Dodd1999-11-202-8/+0
| | | | | | | | | from blowing up on PCMCIA systems. The hack isn't needed anymore. Reminded by: Blaz Zupan <blaz@gold.amis.net> Notes: svn path=/head/; revision=53450
* Latest incremental efforts on newcard:Warner Losh1999-11-203-54/+90
| | | | | | | | | | | | | | o Delete pcic1 from NEWCARD o Add explicit resource hints to pcic0 o Get attach working with newbus, kinda (it does all the newbus stuff, but doesn't try to attach the pccard yet, too many panics). o Disable ie0 and le0 in NEWCARD config. There appears to be a bug in the isa_compat code wrt memory conflicts with newbus drivers for reasons unknown. o Minor cleanups. Notes: svn path=/head/; revision=53449
* Kill unneeded #includes. They were left over from the short period ofWarner Losh1999-11-202-10/+0
| | | | | | | | time when a strcmp against the device name was required. Sio patches sent to peter for review. Notes: svn path=/head/; revision=53448
* Kill unneeded includesWarner Losh1999-11-203-8/+0
| | | | | | | Found by phk's script a while ago. Notes: svn path=/head/; revision=53447
* Vnode was left referenced in the case if ELF image is broken.Boris Popov1999-11-201-1/+3
| | | | | | | Reviewed by: Peter Wemm <peter@netplex.com.au> Notes: svn path=/head/; revision=53446
* Conditionalise unwanted chattyness.Jordan K. Hubbard1999-11-191-1/+2
| | | | Notes: svn path=/head/; revision=53437
* Optimize two cases in the MP locking code. First, it is not necessaryMatthew Dillon1999-11-191-3/+2
| | | | | | | | | | | | | | | | | | to use a locked cmpexg when unlocking a lock that we already hold, since nobody else can touch the lock while we hold it. Second, it is not necessary to use a locked cmpexg when locking a lock that we already hold, for the same reason. These changes will allow MP locks to be used recursively without impacting performance. Modify two procedures that are called only by assembly and are already NOPROF entries to pass a critical argument in %edx instead of on the stack, removing a significant amount of code from the critical path as a consequence. Reviewed by: Alfred Perlstein <bright@wintelcom.net>, Peter Wemm <peter@netplex.com.au> Notes: svn path=/head/; revision=53435
* Use LIST_FOREACH to traverse the allproc list.Poul-Henning Kamp1999-11-193-8/+7
| | | | | | | Submitted by: Jake Burkholder jake@checker.org Notes: svn path=/head/; revision=53433
* The at_exit and at_fork functions currently use a 'roll your own'Poul-Henning Kamp1999-11-192-61/+54
| | | | | | | | | | | | | | | | linked list to store the callbak routines. The patch converts the lists to queue(3) TAILQs, making the code slightly clearer and ensuring that callbacks are executed in FIFO order. Man page also updated as necesary. (discontinued use of M_TEMP malloc type while here anyway /phk) Submitted by: Jake Burkholder jake@checker.org PR: 14912 Notes: svn path=/head/; revision=53432
* Revert previous commit now that 'acfcomp' has been removed fromArchie Cobbs1999-11-191-1/+0
| | | | | | | libnetgraph/debug.c to fix make world. Notes: svn path=/head/; revision=53431
* Add a field archie forgot to merge in from out sources.Julian Elischer1999-11-191-1/+2
| | | | Notes: svn path=/head/; revision=53429
* Optimize two cases in the MP locking code. First, it is not necessaryMatthew Dillon1999-11-199-125/+85
| | | | | | | | | | | | | | | | | | to use a locked cmpexg when unlocking a lock that we already hold, since nobody else can touch the lock while we hold it. Second, it is not necessary to use a locked cmpexg when locking a lock that we already hold, for the same reason. These changes will allow MP locks to be used recursively without impacting performance. Modify two procedures that are called only by assembly and are already NOPROF entries to pass a critical argument in %edx instead of on the stack, removing a significant amount of code from the critical path as a consequence. Reviewed by: Alfred Perlstein <bright@wintelcom.net>, Peter Wemm <peter@netplex.com.au> Notes: svn path=/head/; revision=53425
* Properly attribute interrupt time on alpha. Previously, interrupt timeAndrew Gallatin1999-11-193-5/+6
| | | | | | | | | | | | | was likely to be counted as idle time. Note that we are counting time spent in software interrupt handlers as interrupt time, so this invalidates the i386 meaning of intr_nesting_level. Reviewed by: dfr, bde Tested by: anderson@cs.duke.edu Notes: svn path=/head/; revision=53424