aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add function prototypes and base module for kernel side iconv library.Boris Popov2001-04-099-1/+840
| | | | | | | | | | | | Add simple "xlat" converter which performs 8to8 table based conversion. Unicode converter will be added in the near future. Reviewed by: silence on arch@ Files placement reviewed by: bde Obtained from: smbfs Notes: svn path=/head/; revision=75332
* Two minor fixes:Warner Losh2001-04-091-4/+5
| | | | | | | | | | o Change the number of init tries from 5 to a #define. o Allow up to 5s rather than 2s for commands to complete. This is still much less than 51 minutes, but makes my intel card init with more reliability than before. Notes: svn path=/head/; revision=75331
* Correctly initialize free_ccbq so that if we fail to attach (as isMatt Jacob2001-04-091-9/+8
| | | | | | | | | | possible for some systems where the device is there, but the BIOS hasn't allocated memory resources for it), we don't panic. Submitted by: Gerard Roudier Notes: svn path=/head/; revision=75329
* Reinitialise the DSP and mixer after a resume from suspendGeorge C A Reid2001-04-081-0/+21
| | | | | | | | | PR: 22372 Submitted by: Hiroyuki Aizu <aizu@jaist.ac.jp> Reviewed by: cg Notes: svn path=/head/; revision=75326
* Style fix.David E. O'Brien2001-04-081-1/+1
| | | | Notes: svn path=/head/; revision=75325
* Move the decision whether we want to request authentication from ourJoerg Wunsch2001-04-081-8/+8
| | | | | | | | | | peer out from sppp_lcp_open() to sppp_lcp_up(). For one, this makes things look more symmetrical to sppp_lcp_close(), and somehow it also just occurred to me that an Up event following the open caused the value of the authentication option to be clobbered. Notes: svn path=/head/; revision=75321
* add a software sample rate conversion feeder. this uses linearCameron Grant2001-04-081-0/+175
| | | | | | | interpolation for reasonable quality whilst not using too much cpu time. Notes: svn path=/head/; revision=75320
* minor tweaks in speed and format setting routines.Cameron Grant2001-04-083-62/+69
| | | | | | | don't stop exploring the feeders if a feeder fails to initialise. Notes: svn path=/head/; revision=75319
* fix feeder initialisation methods to return correct result codes.Cameron Grant2001-04-081-3/+3
| | | | Notes: svn path=/head/; revision=75318
* if the feeder chain returned no data, do not try to acquire the data.Cameron Grant2001-04-081-1/+2
| | | | Notes: svn path=/head/; revision=75317
* insert a magical second memory barrier prior to calling draina() inAndrew Gallatin2001-04-081-0/+1
| | | | | | | | | | | | badaddr_read(). This fixes 'machine check in pal mode' halts on ev5 2100As. MFC candidate -- after spending 6 hours tracking this down, I checked and discovered that it has been in NetBSD for over a year, so it should be safe for MFC into 4.3-RELEASE Notes: svn path=/head/; revision=75309
* Fix a precedence bug. ! has higher precedence than &.Jake Burkholder2001-04-081-1/+1
| | | | Notes: svn path=/head/; revision=75304
* Add yet another chip revision of the ES1371 which requires initialisationGeorge C A Reid2001-04-081-1/+2
| | | | | | | | | | | delays PR: 26415 Submitted by: Jose M. Alcaide <jose@we.lc.ehu.es> Reviewed by: cg Notes: svn path=/head/; revision=75301
* no longer needed now that we are able to build cdboot from sources againAndrew Gallatin2001-04-081-1554/+0
| | | | Notes: svn path=/head/; revision=75300
* build cdboot from sources now that the cd9660 fs support worksAndrew Gallatin2001-04-071-5/+4
| | | | | | | MFC candidate Notes: svn path=/head/; revision=75299
* Use getopt instead of a home grown oneNick Hibma2001-04-072-167/+139
| | | | | | | Submitted by: DES Notes: svn path=/head/; revision=75297
* Add id for the IO Data ET/TNick Hibma2001-04-071-0/+1
| | | | | | | | PR: 23877 Submitted by: Makoto MATSUSHITA <matusita@jp.freebsd.org> Notes: svn path=/head/; revision=75296
* Let pseudofs into the warmth of the FreeBSD CVS repo.Dag-Erling Smørgrav2001-04-076-0/+1289
| | | | | | | | | | | | | | It's not finished yet (I still have to find a way to implement process- dependent nodes without consuming too much memory, and the permission system needs tightening up), but it's becoming hard to work on without a repo (I've accidentally almost nuked it once already), and it works (except for the lack of process-dependent nodes, that is). I was supposed to commit this a week ago, but timed out waiting for jkh to reply to some questions I had. Pass him a spoonful of bad karma :) Notes: svn path=/head/; revision=75295
* Quieten when re-triggering.Orion Hodson2001-04-071-0/+4
| | | | Notes: svn path=/head/; revision=75290
* use correct contants (from net/ethernet.h)Alfred Perlstein2001-04-061-2/+2
| | | | | | | | | | ETHER_TYPE_LEN instead of sizeof(u_int16_t) when looking at an ethernet header ETHERTYPE_IP instead of 0x800 Notes: svn path=/head/; revision=75276
* replace hardcoded 1518 with ETHER_MAX_LENAlfred Perlstein2001-04-061-1/+1
| | | | Notes: svn path=/head/; revision=75275
* Add a new ddb command 'show pcpu' which lists some of the per-cpu data.John Baldwin2001-04-062-2/+90
| | | | | | | | | | | Specifically, the cpuid, curproc, curpcb, npxproc, and idleproc members. Also, if witness is compiled into the kernel, then a list of all the spin locks held by this CPU is displayed. By default the information for the current CPU is displayed, but a decimal cpu id may be specified as a parameter to obtain information on a specific CPU. Notes: svn path=/head/; revision=75274
* - Split out the functionality of displaying the contents of a single lockJohn Baldwin2001-04-062-21/+53
| | | | | | | | | | | list into a public witness_list_locks() function. Call this function twice in witness_list() instead of using an evil goto. - Adjust the 'show locks' command to take an optional parameter which specifies the pid of a process to list the locks of. By default the locks held by the current process are displayed. Notes: svn path=/head/; revision=75273
* Add ATA66 and ATA100 mode support for Acer chipsets.Søren Schmidt2001-04-061-4/+47
| | | | | | | MFC candidate :) Notes: svn path=/head/; revision=75271
* fix security hole created by fragment cacheDarren Reed2001-04-065-10/+36
| | | | Notes: svn path=/head/; revision=75262
* Axe the per-cpu variable witness_spin_check as it was replaced by theJohn Baldwin2001-04-065-7/+0
| | | | | | | per-cpu spinlocks list. Notes: svn path=/head/; revision=75256
* pipe/queue are the only consumers of flow_id, so only set it in those casesBill Fumerola2001-04-061-1/+1
| | | | Notes: svn path=/head/; revision=75255
* - correct logic of per-address input packet counts for lo0Hajimu UMEMOTO2001-04-051-16/+29
| | | | | | | | | - reject packets to fe80::xxxx%lo0 (xxxx != 1) Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Notes: svn path=/head/; revision=75246
* Soften the dire warnings about this code. Things are kinda workingWarner Losh2001-04-051-8/+3
| | | | | | | | now and it does compile :-). There are still some issues, but it is a good time to soften the warning. Notes: svn path=/head/; revision=75238
* More error handling cleanups.Søren Schmidt2001-04-051-14/+11
| | | | Notes: svn path=/head/; revision=75237
* On burners that return faulty ready on fixate, wait for theSøren Schmidt2001-04-051-33/+45
| | | | | | | | | | expected fixate time before returning. Dont print error messages to the console on READ_TOC on a blank media. Notes: svn path=/head/; revision=75233
* Add new flag ATPR_F_QUIET to atapi_request.Søren Schmidt2001-04-053-39/+39
| | | | | | | Cleanup error handling. Notes: svn path=/head/; revision=75232
* Correct the sysctl names to match the tuneables.Søren Schmidt2001-04-051-3/+4
| | | | | | | Proberly flush the tag queue on detach. Notes: svn path=/head/; revision=75231
* Don't call prom_open() multiple times. This confuses some versions of SRMDoug Rabson2001-04-051-8/+22
| | | | | | | | | | and makes it impossible to boot from floppy and CD on some AlphaServer platforms. Detective work by: Michael Richards <michael@fastmail.ca> Notes: svn path=/head/; revision=75230
* test should be for == 0, not < 0Alfred Perlstein2001-04-051-1/+1
| | | | Notes: svn path=/head/; revision=75229
* WI_TIMEOUT is 65536Alfred Perlstein2001-04-051-3/+2
| | | | | | | | | 65536 * 10msec == 10 minutes 55 seconds == hung machine Instead wait for the busy bits for a max of ~2 seconds (200 * 10msec) Notes: svn path=/head/; revision=75227
* Don't leak resources:Alfred Perlstein2001-04-051-5/+12
| | | | | | | | | | | Don't leak iospace when irq allocation fails. (call wi_free()) Call bus_release_resource() with the correct "rid" obtained from bus_alloc_resource() that's saved in the softc instead of a hardcoded 0. Notes: svn path=/head/; revision=75219
* o Rather than arbitrarily construct a credential in the nfs_statfs()Robert Watson2001-04-052-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | VFS operation, make use of the calling process's credential. This solution may not be ideal (there are a number of other possible proposals, including making use of the proc0 credential, adding a credential argument to the VFSOP, and switching from a hard-coded ucred to a hard-coded nfscred), it is simple and appears to work. The arguments against using simply crget() are fairly strong: it is the only place in the code (other than a nearly identical invocation in ncp) where crget() is invoked, other than in the process credential creation code; as ucred becomes extensible, this use of crget() without appropriate context results in less and less meaningful credential data. The implementation here will probably be tweaked as a result of experimentation and further exploration of the requirements. In the mean-time, it allows progress to be made in ucred expansion for new security models without causing a crash every time df is used on an NFS mounted file system. This code has been interop tested against FreeBSD and Solaris NFS servers. While using the process credentials should not introduce interop problems, please let me know if any turn out to exist. Reviewed by: freebsd-arch Notes: svn path=/head/; revision=75218
* Change a couple of M_WAITOKs used in M_PREPEND() to M_TRYWAITs, whichBosko Milekic2001-04-051-2/+2
| | | | | | | | | is what they should be. As the returned mbuf is already checked for failure of M_PREPEND even in the wait case, nothing more to be done here. Notes: svn path=/head/; revision=75217
* Various style fixes.Bosko Milekic2001-04-051-21/+28
| | | | | | | | | | | Also place the macros under #ifdef _KERNEL. Equally hide the internal structures such as the freelist structs which include condition variables. Reviewed by: bde Mostly suggested by: bde Notes: svn path=/head/; revision=75216
* Fix bpf devices so select() recognizes that they are always writable.Garance A Drosehn2001-04-041-5/+8
| | | | | | | | | PR: 9355 Submitted by: Bruce Evans <bde@zeta.org.au> Reviewed by: Garrett Rooney <rooneg@electricjellyfish.net> (see pr :-) Notes: svn path=/head/; revision=75204
* Don't allow immediate values of 0 for operations that can take either anKenneth D. Merry2001-04-041-0/+5
| | | | | | | | | | | immediate value or the accumulator. 0 is the chip's internal representation for the accumulator, and so 0 is an invalid immediate value when the accumulator can also be specified as an argument. Submitted by: gibbs Notes: svn path=/head/; revision=75201
* Redo a lot of the target mode infrastructure to be cognizant of Dual BusMatt Jacob2001-04-041-188/+215
| | | | | | | | | cards like the 1280 && the 12160. Cleanup isp_target_putback_atio. Make sure bus and correct tag ids and firmware handles get propagated as needed. Notes: svn path=/head/; revision=75200
* call a watchdog timeout like it is.Alfred Perlstein2001-04-041-1/+1
| | | | Notes: svn path=/head/; revision=75199
* Roll platform minor.Matt Jacob2001-04-041-15/+11
| | | | | | | | Change target mode state definitions to be aware of 'channel' (for the dualbus 1280/12160 cards). Notes: svn path=/head/; revision=75198
* Complete some Ansification. Check to make sure, in tdma_mk, that we won'tMatt Jacob2001-04-041-17/+37
| | | | | | | | | | | | | | | | | | | | overflow the request queue. The reason we want to do this is that we now push out completed CTIOs as we complete them- this gets the QLogic working on them quicker. So we need to know whether we can put the entire burrito out before we start. We now support conjoint status with data for the last CTIO for both Fibre Channel and SCSI. Leave the old code in place in case we need to go back (minor 3 line ifdef). Ultra-ultra important- *don't* set rq->req_seg_count for non-data target mode requests in isp_pci_dmasetup. D'oh- this is actually the tag value area for a CTIO. What *was* I thinking? Boy howdy does both aic7xxx and sym get awfully unhappy when on reconnect you give them a constant '1' for a tag value. Notes: svn path=/head/; revision=75197
* Perform some more Ansification. Remove and then replace the isp_putback_atioMatt Jacob2001-04-041-84/+49
| | | | | | | | | | | | | function- we did it a bit cleaner. We only use this if a CTIO completes with !CT_OK state. We now have managed to get away without having to poke around and trying to find the original ATIO- the csio we're using has the tag_id and lun values with it which is mostly what we need when we do the putback. Make sure we correctly propagate AT_TQAE->CT_TQAE for tags. Make sure we call ISP_DMAFREE only if we had DATA to move. Notes: svn path=/head/; revision=75196
* Amazing. The bits to enable tagged queing in target mode, grok that aMatt Jacob2001-04-041-11/+29
| | | | | | | | | | | | | | | | | tag is active for an ATIO, and say that you want to reconnect with a tag value in a CTIO have *never* been exercised until now. This lossage derived from Solaris code where this stuff originally came from that is about 7 years old. Amazing. We now bundle the incoming tag (legal values are 0..256) as the low 16 bits of the ccb_accept_tio's at_tagid while we put the firmware handle for this ATIO in the top 16 bits- define some macros to make this cleaner. Complete some Ansification. Notes: svn path=/head/; revision=75195
* Add some target mode definitions and firmware (FC only) attribute definitions.Matt Jacob2001-04-041-0/+13
| | | | Notes: svn path=/head/; revision=75194
* Ansification of source.Matt Jacob2001-04-041-1/+1
| | | | Notes: svn path=/head/; revision=75193