summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Note acpi_sony(4) manpage addition.brueffer2005-09-142-4/+4
|
* Bring aac_cam into line with using time_uptime instead of time_second.scottl2005-09-141-1/+1
|
* Use time_uptime for timing commands instead of time_second. This is a bitscottl2005-09-141-9/+9
| | | | | | | | | risky because the "current time" is supposed to be fed to the card during initialization, and the current time is supposed to be put into each command that is sent to the card. Hopefully either the card doesn't actually care about the timestamps, or it doesn't care about the absolute values so long and the relative values are consistent. Not an MFC candidate until more thorough testing can be done.
* Hook up acpi_sony.4brueffer2005-09-141-0/+1
|
* Manpage for the acpi_sony(4) driver. This is more of a dummy page at thebrueffer2005-09-141-0/+56
| | | | | | moment, but better than nothing. MFC after: 3 days
* Fix module unload panic which was caused by missing sx lock release.yongari2005-09-141-1/+5
| | | | | | | While I'm here add KASSERT(9) to notify failure of SYSUNINIT handler. Reported by: Ben Kaduk < minimarmot AT gmail DOT com > Tested by: Ben Kaduk < minimarmot AT gmail DOT com >
* Print a warning if we fail to retrieve the process name for any reason.csjp2005-09-131-1/+3
|
* If there are'nt any bpf descriptors to process than dont bother attempting tocsjp2005-09-131-0/+2
| | | | | | retrieve statistic information for them. Pointed out by: Pawel Worach < pawel.worach at gmail.com >
* MFp4: Migrate from CARD_CIS_SCAN to pccard_cis_scanimp2005-09-131-1/+1
|
* MFp4:imp2005-09-131-37/+13
| | | | | | o Use pccard_cis_scan o use pccard_attr_write_1 o Update comments
* MFp4: Omnibus ed changesimp2005-09-134-198/+285
| | | | | | | | | | | | | | | | | | | o Attach AX88x90's MII bus to system, and require its presence. o Reorg the mii code a little, and move more of it into pccard attachment. o Eliminate ed_pccard_{read,write}_attrmem in favor of a more appropriate function in the pccard layer. o Update comments to reflect knowledge gained. o Update how re recognize a NE-2000 ROM. I found a couple of different datasheets that define the structure of the PROM data, so the code's old heuristics have been removed, and comments updated to reflect the structure. o Eliminate work around for EC2T. It is no longer needed, and was wrong headed since the EC2T has a Winbound 82C926C in it, not a AX88x90. o Add copyright to if_ed_pccard.c, since I believe I've re-written more than 3/4 of it. # With these changes, all of my 20-odd ed based cards work, except for the # NetGear FA-410, and I'm pretty sure that's a MII/PHY problem.
* MFp4:imp2005-09-131-73/+40
| | | | | o Move to new pccard_cis_scan convenience function. o Remove compat layer goo.
* Use new convenience function to read CIS rather than the older, harder toimp2005-09-131-2/+1
| | | | use version.
* Don't consider being unable to open the bounds file worthy of printingrwatson2005-09-131-1/+2
| | | | | | | | | at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. MFC after: 1 week
* MFp4: Minor formatting nits in pccard table.imp2005-09-131-9/+9
|
* Use kenv -q to extract dumpdev rather than kenv, in order to avoidrwatson2005-09-131-1/+1
| | | | | | | spamming the console in the event that a loader tunable 'dumpdev' isn't defined, which is not a relevant failure to report. MFC after: 1 week
* Use smaller names. The "NE2000 PCI Ethernet" is largerly redundantimp2005-09-131-9/+9
| | | | | with edX at pciY. This removes 8*22 bytes from the strings. Not a huge win, but a cheap one.
* Add a "-q" quiet flag to kenv so that warnings can be suppressed.rwatson2005-09-132-9/+20
| | | | MFC after: 1 week
* Add the olicom OC2231 and OC2232 to the list of cards that we shouldimp2005-09-131-0/+2
| | | | | | | attach to. These cards are combo cards (in that they have a modem inside of them), but not true MFC cards. Full support of these cards will have to wait until we can pick the config to use and for the PFC support that I have brewing.
* Add a few new functions interfaces to allow reading/writing attributeimp2005-09-134-11/+172
| | | | memory, the CCR and a tweak to cis_scan.
* Define and use PCCARD_MEM_PAGE_SIZE.imp2005-09-132-1/+3
|
* Trim down now (believed to be) unused fifo_ioctl() andrwatson2005-09-131-65/+75
| | | | | | | | | | | | | | | | | | | | | | fifo_kqfilter() VOP implementations, since they in theory are used only on open file descriptors, in which case the ioctls are via fifo_ioctl_f() and kqueue requests are via fifo_kqfilter_f(). Generate warnings if they are entered for now. These printf() calls should become panic() calls. Annotate and re-implement fifo_ioctl_f(): don't arbitrarily forward ioctls to the socket layer, only forward the ones we explicitly support for fifos. In the case of FIONREAD, don't forward the request to the write socket on a read-write fifo, or the read result is overwritten. Annotate a nasty case for the undefined POSIX O_RDWR on fifos, in which failure of the second ioctl will result in the socket pair being in an inconsistent state. Assert copyright as I find myself rewriting non-trivial parts of fifofs. MFC after: 3 days
* MFp4: Remove stale functions.imp2005-09-131-21/+0
|
* Add two small tests to set and clear two file I/O flags using ioctl onrwatson2005-09-131-0/+77
| | | | a fifo: FIONBIO, FIOASYNC.
* Restructure fifo_io event-related tests in order to support test casesrwatson2005-09-131-480/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | relating to O_RDWR file descriptors, which while not defined in POSIX, are in fact used: (1) Revise assumption that we have two file descriptors when testing I/O operations on a fifo. Provide cleanup routines that handle either two or three file descriptors (including a kqueue descriptor). (2) Add an openfifo_rw() routine to supplement openfifo(). (3) kqueue_setup() now configures an existing kqueue to monitor a new file descriptor, rather than allocating a new kqueue to monitor two existing file descriptors. (4) Wrap all direct poll/select/kqueue/FIONREAD interactions in a single function, assert_status(), which takes a file descriptor, kqueue descriptor, assertion of read/writable/exception states, and test description, then tests the assertion. This reduces the bulk of calls in many of the tests, making them shorter, more readable, and easier to determine correct. (5) Add a new test_events_rdwr() function, which performs a basic create/ write/read event test on a O_RDWR fifo file descriptor. This is currently failed by our fifo code in HEAD due to a bug in FIONREAD handling. Fix to be merged shortly.
* Garbage collect bpfstat. This is handled by netstat now.csjp2005-09-134-419/+0
| | | | Requested by: rwatson
* Teach fifo_io how to use ioctl(FIONREAD) to determine if a fifo isrwatson2005-09-131-6/+95
| | | | | readable, and use that in addition to poll+select+kqueue to verify appropriate readability.
* Various and sundry improvements:jhb2005-09-131-49/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace 'process' with 'thread' everywhere. - Update several places to note that that the fact that default mutexes may adaptively spin isn't necessarily MD, but is just part of the implementation as a whole. - Clarify the text about MTX_SPIN mutexes only being appropriate for INTR_FAST interrupts or other low level scheduler code to make the jargon more FreeBSD-ish rather than BSD/OS-ish. - Also, note that it is possible that interrupts aren't blocked but just deferred when a spin lock is held (the whole blocked vs. deferred bit is an MD implementation detail). - Remove statements saying that spin locks must be released in the exact opposite order that they were acquired. This stopped being true several years ago when we first added critical sections that stored their state in the current thread rather than in struct mtx. - Note that a mutex must be initialized before it is passed to any other mutex function, not just mtx_lock. - Clarify that mtx_trylock() only operates on MTX_DEF mutexes. - Simplify the text about possible preemption during a mtx_unlock(). - Use complete English sentences in place of phrases in a few places. - Clarify that it isn't ever safe to sleep with a mutex held. The kernel tends to panic when you do that. Requested by: scottl (7) MFC after: 3 days
* Remove unused functions.nyan2005-09-131-39/+0
|
* Remove EPSON_NRDISK support.nyan2005-09-131-177/+2
|
* As a result of kqueue locking work, socket buffer locks will alwaysrwatson2005-09-131-18/+6
| | | | | | | | be held when entering a kqueue filter for fifos via a socket buffer event: as such, assert the lock unconditionally rather than acquiring it conditionall. MFC after: 3 days
* Remove a debugging printf.rwatson2005-09-131-1/+0
|
* Unlock driver lock before calling resource_int_value(9).yongari2005-09-131-0/+3
| | | | This should fix LOR(in fact it's not LOR) in device attach.
* Annotate two issues:rwatson2005-09-131-0/+12
| | | | | | | | | | | | 1) fifo_kqfilter() is not actually ever used, it likely should be GC'd. 2) fifo_kqfilter_f() doesn't implement EVFILT_VNODE, so detecting events on the underlying vnode for a fifo no longer works (it did in 4.x). Likely, fifo_kqfilter_f() should forward the request to the VFS using fp->f_vnode, which would work once fifo_kqfilter() was detached from the vnode operation vector (removing the fifo override). Discussed with: phk
* MFi386: revision 1.11.nyan2005-09-131-9/+108
|
* MFi386: revisions 1.10 and 1.11.nyan2005-09-131-1/+2
| | | | - Add '-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3' to CFLAGS.
* Fix a bug that caused generated gmon.out profiles to be out ofjkoshy2005-09-131-10/+31
| | | | | | | whack. Use saturating arithmetic when incrementing a bucket. Improve a few comments. MFC after: 3 days
* Add a missing ldexpf() alias for amd64.das2005-09-121-0/+3
| | | | Noticed by: bz@, tjr@
* Introduce no-op nosup fifo kqueue filter and detach routine, which arerwatson2005-09-121-1/+33
| | | | | | | | | | | | | | | | used when a read filter is requested on a write-only fifo descriptor, or a write filter is requested on a read-only fifo descriptor. This permits the filters to be registered, but never raises the event, which causes kqueue behavior for fifos to more closely match similar semantics for poll and select, which permit testing for the condition even though the condition will never be raised, and is consistent with POSIX's notion that a fifo has identical semantics to a one-way IPC channel created using pipe() on most operating systems. The fifo regression test suite can now run to completion on HEAD without errors. MFC after: 3 days
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-1216-0/+22
| | | | the function definition.
* Comment test_lseek().rwatson2005-09-121-0/+117
| | | | | | | | Add test_kqueue(), which registers and unregisters various kqueue filter types on a fifo in order to make sure that EVFILT_READ, EVFILT_WRITE can be registered, and that EVFILT_NETDEV can't be registered. For now, we don't test that EVFILT_VNODE can be registered on fifos, as that has been broken at some point.
* In netkqfilter(), return EINVAL instead of 1 (EPERM) when a filter typerwatson2005-09-121-1/+1
| | | | | | is requested on a network interface file descriptor that is non-applicable. MFC after: 3 days
* In vfs_kqfilter(), return EINVAL instead of 1 (EPERM) when an unsupportedrwatson2005-09-121-1/+1
| | | | | | kqueue filter type is requested on a vnode. MFC after: 3 days
* - Fix the locking in dsp.c to prevent a LOR (AFAIK not on the LOR page).netchild2005-09-122-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Remove an assertion in sound.c, it's not needed (and causes a panic now). From the conversation via mail between glebius and Ariff: ---snip--- > Well, but which mutex protects now? Do we own anything else > in pcm_chnalloc()? I see some queue(4) macros in pcm_chnalloc(), > they should be protected, shouldn't they? Queue insertion/removal occur during 1) driver loading (which is pretty much single thread / sequential) or unloading (mutex protected, bail out if there is any channel with refcount > 0 or busy). 2) vchan_create()/destroy(), (which is *sigh* quite complicated), but somehow protected by 'master'/parent channel mutex. Other thread cannot add/remove vchan (or even continue traversing that queue) unless it can acquire parent channel mutex. ---snip--- Fix the locking in dsp.c to prevent a LOR (AFAIK not on the LOR page). Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> Tested with: INVARIANTS[1] and DIAGNOSTICS[2] Tested by: netchild [1,2], David Reid <david@jetnet.co.uk> [1]
* When a request is made to register a filter on a fifo that doesn'trwatson2005-09-121-2/+2
| | | | | | | apply to the fifo (i.e., not EVFILT_READ or EVFILT_WRITE), reject it as EINVAL, not by returning 1 (EPERM). MFC after: 3 days
* Further updates to fifo_io regression test:rwatson2005-09-121-61/+287
| | | | | | | | | | | | | | | - Teach fifo_io about kqueue monitoring of fifo file descriptor status, and add test cases for kqueue to match existing case for poll and select. Add a new cleanup routine, cleanfifokq(), for use in tests that use kqueues. kqueue_setup() sets up kqueue sessions, and kqueue_status() returns file descriptor status. - Correct a bug in select handling relating to the nfds argument, which was incorrect so resulted in select occuring on the wrong file descriptor, and possible false positive/negative results. - Clarify error reporting in one byte write+read tests to distinguish errors in the after case from the before case.
* - Add prototypes for __cmpdi2() and __ucmpdi2().stefanf2005-09-121-10/+2
| | | | - Remove GCC 1 stuff.
* Put a getosreldate() prototype into <osreldate.h>, getosreldate(3) impliesstefanf2005-09-121-0/+1
| | | | there is one.
* Include <osreldate.h> at the top of the file.stefanf2005-09-122-6/+7
|
* Use prototypes for CHIN1() and CHIN().stefanf2005-09-121-6/+2
|
OpenPOWER on IntegriCloud