summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Grab all the information we need about a character with one call totjr2004-05-231-7/+5
| | | | __maskrune() instead of one direct call and one through iswprint().
* Replace the static "qdat" structure with a per-instance softc fieldiedowse2004-05-2312-32/+24
| | | | | | | | | | | | | in all USB ethernet drivers. The qdat structure contains a pointer to the interface's struct ifnet and is used to process incoming packets, so simultaneous use of two similar devices caused crashes and confusion. The if_udav driver appeared in the tree since Daan's PR, so I made similar changes to that driver too. PR: kern/59290 Submitted by: Daan Vreeken <Danovitsch@Vitsch.net>
* Diff reduction to NetBSD.le2004-05-231-3/+5
| | | | | | | | | | | | | MFNetBSD 1.177; author: toshii Use the correct wValue to get hub desriptors. Also, make wValue checks of root hub codes less strict. MFNetBSD 1.178: author: martin Interrupt descriptors might become invalid while being processed in uhci_check_intr - so remember their next pointer before calling it. Patch provided by Matthew Orgass in PR kern/24542. Obtained from: NetBSD
* Use __FBSDID.mux2004-05-232-4/+6
|
* Don't crash if the CROM is all zeros.dfr2004-05-231-0/+4
|
* Fix typobrueffer2004-05-231-1/+1
| | | | Submitted by: edwin
* Apply fix for long timeouts on driver initialisation.dmlb2004-05-231-2/+7
| | | | | | PR: 64656 Submitted by: Jianqin Qu <jqu@its.brooklyn.cuny.edu> Reviewed by: dmlb
* In agp_generic_bind_memory(), grab the needed pages before acquiringmux2004-05-232-60/+84
| | | | | | | the agp mutex. We do this because vm_page_grab() called with the VM_ALLOC_RETRY flag can sleep. Pointed out by: alc
* Change `ps' to use the KERN_PROC_RGID and KERN_PROC_SESSION optionsgad2004-05-221-8/+5
| | | | | | | | (if trying to match only one real-group or one session-id), now that those options are implemented in src/sys/kern/kern_proc.c (v1.203). PR: bin/65803 (a very tiny piece of the PR) Submitted by: Cyrille Lefevre
* Implement the new KERN_PROC_RGID option, and also implement thegad2004-05-221-0/+28
| | | | | | | | KERN_PROC_SESSION option which had been previously defined but never implemented. PR: bin/65803 (a very tiny piece of the PR)` Submitted by: Cyrille Lefevre
* Define a KERN_PROC_RGID option for kvm_getprocs().gad2004-05-221-0/+1
| | | | Submitted by: Cyrille Lefevre
* Add --no-same-owner as a synonym for -o.kientzle2004-05-221-0/+1
| | | | | | | Note that bsdtar's -o (which follows SUSv2) is not the same as GNU tar's -o. In GNU tar, -o and --no-same-owner are not synonyms. Pointed out by: Kris Kennaway (required by xpenguins port)
* Revert the previous commit. The bus accessor macros do not check thenjl2004-05-221-3/+56
| | | | | | | return value for BUS_READ_IVAR and thus don't generate the proper NULL in cases where a device (i.e. on PCI) does not have a handle. Found by: peadar, tjr
* - Add a reference to eeprom(8).marius2004-05-221-2/+4
| | | | | - Spell Open Firmware as "Open Firmware", the way it's done on OpenFirmware.org.
* Hook eeprom(8) up to the FreeBSD/sparc64 build.marius2004-05-221-0/+2
|
* Add standard command "help" to print usage.pjd2004-05-221-3/+14
|
* Add eeprom(8), a utility to display and modify system configurationsmarius2004-05-225-0/+1181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stored in EEPROM or NVRAM. It's inspired by the NetBSD eeprom(8) and the SunOS/Solaris eeprom(1M) utilities. Currently, this eeprom(8) only supports systems equipped with Open Firmware and is only tested on Sun machines but should work on any platform using Open Firmware. A bit more specific, eeprom(8) can be used on these systems to do the same under FreeBSD as can be done using the printenv and setenv commandos in the boot monitor. One thing that only hardly can be done using the boot monitor but easily with eeprom(8) is to write a logo to the "oem-logo" property. eeprom(8) may also be useful to recover the boot monitor password (in the default configuration only as root, of course), i.e. when the boot monitor allows you to boot but you can't alter the configuration because the password is unknown. The man page may also be a useful reference of the various configuration variables. The idea of eeprom(8) is that handlers can be written to add support for any firmware that stores such configuration in EEPROM or NVRAM; sort of e.g. eeprom(1M) on Solaris/x86 is used to turn PAE-support on and off (stored in a file then, not hardware). In FreeBSD, a candidate for this would be a handler for the EFI boot environment for FreeBSD/ia64. eeprom(8) uses some code from NetBSD (eeprom.c and the base for eeprom.8), the handler for the Open Firmware /options node (ofw_options.[c,h]) was written using ofw_util.[c,h] from ofwdump(8). Reviewed by: ru (slightly earlier version of the man page)
* - Change ofwdump(8) to use sysexits(3) exit codes.marius2004-05-224-142/+185
| | | | | | | | | | | | | | | | | | | | | | - Make the code use the new OFIOCMAXVALUE instead of defining the maximum length of property values locally. - Move the application specific parts from ofw_util.c to ofwdump.c in order to make ofw_util.c more library-like. While ofw_dump_properties() could be made non-specific to ofwdump(8) it's currently optimized for use in ofwdump(8) and making it a library-like function would just complicate the code unnecessarily. - Minor clean-up in ofw_util.c, e.g. make its use of getopt(3) the way it's described in style(9), make its usage() static, etc. - Add a comment in ofw_util.c about why it doesn't call usage() when neither the "-a" option nor a node-name where given. - Add ofw_optnode() and ofw_setprop(), helper functions for the OFIOCGETOPTNODE and OFIOCSET ioctls respectively, to ofw_util.[c,h]. - Be consistent with the use of 'const' in ofw_util.[c,h] and add 'const' to the function arguments that are acutally const but weren't declared as such. - Mark WARNS=6 clean. Approved by: tmm
* - Rearrange a comment to fit in 80 chars per line, like the rest of thismarius2004-05-221-4/+4
| | | | | file. - Remove a superfluous ';'.
* - Move OFW_NAME_MAX, used as a limit for OFW property names and devicemarius2004-05-222-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | identifiers, to openfirmio.h as OFIOCMAXNAME, so programs can use it for buffer sizes etc. Note: Although this is only a rough upper limit to make the code more robust and to prevent the allocation of ridiculous amounts of memory, the current limit of one page (8191 + '\0' in openfirm_getstr()) still appears a bit high. The maximum length of OFW property names is 31. I didn't find a maximum length for the device identifiers in the OFW documentation but it certainly is much smaller than 8191, too. - Enable the OFIOCSET ioctl, i.e. move it out from under #if 0. - Don't use openfirm_getstr() for the property value in OFIOCSET, there are also properties whose values aren't strings and it makes sense to use a different maximum length for property values than OFW_NAME_MAX/ OFIOCMAXNAME. The maximum accepted property value is defined in openfirmio.h as OFIOCMAXVALUE (currently the maximum size of the value of the nvramrc property). - Make OFIOCSET not return EINVAL when OF_setprop() returns a different length for the written value than it was told to write, this is normal for the text string values of the properties in the OFW /options node. Instead, only return EINVAL if OF_setprop() returned -1 (value could not be written or property could not be created). Add a comment about the specialty of the OFW /options node. - Make OFIOCSET return the length of the written value returned by OF_setprop(), just like OF_getprop() does. Quite useful, at least for debugging. Reviewed by: tmm
* Actually we are also able to list only choosen providers.pjd2004-05-223-3/+6
|
* Change u_intXX_t to uintXX_t. Change a couple of 'unsigned long's todfr2004-05-2218-573/+573
| | | | uint32_t where appropriate.
* Perform conversions straight from the stream buffer instead of scanningtjr2004-05-221-18/+19
| | | | | | | through byte by byte with mbrtowc(). In the usual case (buffer is big enough to contain the multibyte character, character does not straddle buffer boundary) this results in only one call to mbrtowc() for each wide character read.
* Associate a multibyte conversion state object with each stream. Reset ittjr2004-05-227-42/+24
| | | | | | | | | to the initial state when a stream is opened or seeked upon. Use the stream's conversion state object instead of a freshly-zeroed one in fgetwc(), fputwc() and ungetwc(). This is only a performance improvement for now, but it would also be required in order to support state-dependent encodings.
* Add Intel PCI vendor ID.le2004-05-221-0/+4
|
* Don't forget to reset if_hwassist back to 0 when hardware checksummingyar2004-05-221-1/+3
| | | | | | | is being turned off, or else TCP/IP will keep assigning the job to us. Drivers themselves should consult if_capenable, not if_hwassist--the latter is for the TCP/IP stack.
* Remove two debugging printf().mux2004-05-221-2/+0
| | | | On behalf of: cognet
* Get rid of a lockmgr consumer by making agp(4) use a standard mutex,mux2004-05-2218-40/+22
| | | | | since it's always acquiring the lock exclusively. This was tested with X on an SMP box, with and without WITNESS.
* Add regression tests for geom_stripe and geom_nop.pjd2004-05-228-0/+141
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Be more precise.pjd2004-05-221-7/+8
|
* style.Makefile(5).pjd2004-05-221-6/+6
|
* Fix typos in comments.le2004-05-221-9/+9
| | | | Submitted by: Gerhard Gonter <gonter@falbala.wu-wien.ac.at>
* Add a "-r" flag to ktrdump(1) to print relative timestamps when usedrwatson2004-05-222-6/+22
| | | | | | | | with "-t" rather than absolute timestamps. This allows the reader to get a better sense of latency between events, such as time to schedule an interrupt thread from time the interrupt occurred. Assert a copyright on ktrdump.c since I seem to be modifying it more than I thought.
* To date, unwiring a fictitious page has produced a panic. The reasonalc2004-05-224-18/+29
| | | | | | | | | | | | | | | being that PHYS_TO_VM_PAGE() returns the wrong vm_page for fictitious pages but unwiring uses PHYS_TO_VM_PAGE(). The resulting panic reported an unexpected wired count. Rather than attempting to fix PHYS_TO_VM_PAGE(), this fix takes advantage of the properties of fictitious pages. Specifically, fictitious pages will never be completely unwired. Therefore, we can keep a fictitious page's wired count forever set to one and thereby avoid the use of PHYS_TO_VM_PAGE() when we know that we're working with a fictitious page, just not which one. In collaboration with: green@, tegge@ PR: kern/29915
* Spelling and style fixes.marius2004-05-222-22/+22
| | | | Obtained from: NetBSD
* Use unsigned types for the arguments of the atomic(9) operations,marius2004-05-221-4/+4
| | | | | | like described in the man page and done on all other architectures. OK'ed by: tmm
* Switch from BSD-style u_intXX_t to ISO C99 uintXX_t.marius2004-05-222-5/+5
|
* Plug three lock leaks.mux2004-05-222-0/+6
|
* Remove gconcat(8) utility. It was replaced by geom(8).pjd2004-05-213-670/+0
|
* - More clear example description.pjd2004-05-211-4/+4
| | | | - Fix copy&paste bug.
* Force commit to note, that those manual pages were...pjd2004-05-210-0/+0
| | | | Reviewed by: simon
* Add manual pages for gconcat(8), gstripe(8) and gnop(8) utilities.pjd2004-05-216-3/+430
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Some wordsmithing and mdoc(7) cleanup.josef2004-05-211-14/+27
| | | | | | Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> PR: docs/66823 Reviewed by: simon
* Add a quiet mode to ktrdump(1): if the "-q" flag is used, don't printrwatson2004-05-212-21/+30
| | | | | the pretty text header on top of the output. Simplifies feeding the results of tracing into a script for mechanical processing.
* When the 'f' flag is passed to ktrdump(1), use 40 characters for therwatson2004-05-211-1/+1
| | | | | | "file and line" field consistently; previously, a 32-character field length was used for the table header, which resulted in the header not lining up with the table.
* Cosmetic:yar2004-05-211-2/+6
| | | | | Set capability bits in a consistent way. Add a comment on why the VLAN_MTU stuff comes after ether_ifattach().
* Enter the 1990's and assume that the computer knows what time it is.imp2004-05-211-16/+23
| | | | | | Print the ETA of dump being finished, rather than a cryptic delta time. Also, if we have written more blocks than the tapesize, assume that we are 99.99% done and that we'll be finished 'soon'.
* Fix cutNpasto in last commit.imp2004-05-211-1/+1
|
* Add --dereference as a synonym for -Hkientzle2004-05-211-0/+1
| | | | Pointed out by: Kris Kennaway (unbreaks nspr port build)
* The driver fxp(4) has reception of large frames enabled hardcodedly,yar2004-05-211-0/+1
| | | | so let VLAN_MTU be marked in if_capenable from the beginning.
OpenPOWER on IntegriCloud