summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Start the arp timer at init time.Luigi Rizzo2004-04-251-10/+1
| | | | | | | It runs so rarely that it makes no sense to wait until the first request. Notes: svn path=/head/; revision=128641
* Merged from sys/isa/fd.c revision 1.270.Yoshihiro Takahashi2004-04-252-4/+18
| | | | Notes: svn path=/head/; revision=128640
* Add support Buffalo(MELCO) USB-Key Lan Adaptor(LUA-U2-KTX)MIHIRA Sanpei Yoshiro2004-04-251-0/+2
| | | | Notes: svn path=/head/; revision=128639
* Sync to 1.171 of usbdevsMIHIRA Sanpei Yoshiro2004-04-252-2/+9
| | | | Notes: svn path=/head/; revision=128638
* Add support Buffalo(MELCO) USB-Key Lan Adaptor(LUA-U2-KTX)MIHIRA Sanpei Yoshiro2004-04-252-0/+2
| | | | | | | Submitted by: KAWAI Kenichi <kawai.kenichi@canon.co.jp> Notes: svn path=/head/; revision=128637
* This commit does two things:Luigi Rizzo2004-04-259-111/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. rt_check() cleanup: rt_check() is only necessary for some address families to gain access to the corresponding arp entry, so call it only in/near the *resolve() routines where it is actually used -- at the moment this is arpresolve(), nd6_storelladdr() (the call is embedded here), and atmresolve() (the call is just before atmresolve to reduce the number of changes). This change will make it a lot easier to decouple the arp table from the routing table. There is an extra call to rt_check() in if_iso88025subr.c to determine the routing info length. I have left it alone for the time being. The interface of arpresolve() and nd6_storelladdr() now changes slightly: + the 'rtentry' parameter (really a hint from the upper level layer) is now passed unchanged from *_output(), so it becomes the route to the final destination and not to the gateway. + the routines will return 0 if resolution is possible, non-zero otherwise. + arpresolve() returns EWOULDBLOCK in case the mbuf is being held waiting for an arp reply -- in this case the error code is masked in the caller so the upper layer protocol will not see a failure. 2. arpcom untangling Where possible, use 'struct ifnet' instead of 'struct arpcom' variables, and use the IFP2AC macro to access arpcom fields. This mostly affects the netatalk code. === Detailed changes: === net/if_arcsubr.c rt_check() cleanup, remove a useless variable net/if_atmsubr.c rt_check() cleanup net/if_ethersubr.c rt_check() cleanup, arpcom untangling net/if_fddisubr.c rt_check() cleanup, arpcom untangling net/if_iso88025subr.c rt_check() cleanup netatalk/aarp.c arpcom untangling, remove a block of duplicated code netatalk/at_extern.h arpcom untangling netinet/if_ether.c rt_check() cleanup (change arpresolve) netinet6/nd6.c rt_check() cleanup (change nd6_storelladdr) Notes: svn path=/head/; revision=128636
* Add ng_sppp(4) to the modules build process.Roman Kurakin2004-04-251-0/+1
| | | | Notes: svn path=/head/; revision=128635
* Add ng_sppp.4.Roman Kurakin2004-04-251-0/+1
| | | | Notes: svn path=/head/; revision=128634
* Zero the physical page only if it is invalid and not prezeroed.Alan Cox2004-04-251-7/+9
| | | | Notes: svn path=/head/; revision=128633
* Fixed breakage of the formatting operation in rev.1.266. The wrongBruce Evans2004-04-252-4/+18
| | | | | | | | | clause of an if-else statement was removed. Reviewed by: no response from maintainer in 12 days Notes: svn path=/head/; revision=128632
* Don't mask TCD in IMR0 when we initialize the channel. Doing so makesMarcel Moolenaar2004-04-251-1/+1
| | | | | | | | it impossible to check the interrupt status bit when we try to get a character in the low level console code. Notes: svn path=/head/; revision=128631
* The paper "Hashed Timers and Hierarchical Wheels: Data Structures for theHiten Pandya2004-04-251-1/+1
| | | | | | | | | | Efficient Implementation of a Timer Facility" was co-author'ed by T. Lauk, not A. Lauk. Adjust nearby whitespace. Notes: svn path=/head/; revision=128630
* Hide FLT_EVAL_METHOD and DECIMAL_DIG in pre-C99 compilationDavid Schultz2004-04-256-0/+18
| | | | | | | | | | environments. PR: 63935 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Notes: svn path=/head/; revision=128629
* Make sure that symbols are declared in math.h iff the appropriateDavid Schultz2004-04-251-65/+68
| | | | | | | | | | | | | | | | | namespaces are visible. Previously, math.h failed to hide some C99-, XSI-, and BSD-specific symbols in certain compilation environments. The referenced PR has a nice listing of the appropriate conditions for making symbols visible in math.h. The only non-stylistic difference between the patch in the PR and this commit is that I superfluously test for __BSD_VISIBLE in a few places to be more explicit about which symbols have historically been part of the FreeBSD environment. PR: 65939 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Notes: svn path=/head/; revision=128628
* Remove a stale comment referring to values.h, which has never beenDavid Schultz2004-04-251-6/+1
| | | | | | | | | part of FreeBSD. PR: 65939 Notes: svn path=/head/; revision=128627
* fix one typo and remove one wrong lineLuigi Rizzo2004-04-251-2/+1
| | | | Notes: svn path=/head/; revision=128626
* Some code cleanup:Thomas Moestl2004-04-253-128/+28
| | | | | | | | | | | | - Fix some comments; remove numerous superfluous or outdated ones. - Correctly pass on the requesting device when handing requests up to the parent bus. - Use the complete device name, including unit number, to build the IOMMU instance name. - Inline a function that was only used once, and was trivial. Notes: svn path=/head/; revision=128625
* Prefix a printf with the device name.Thomas Moestl2004-04-251-1/+1
| | | | Notes: svn path=/head/; revision=128624
* Plug a mem leak in vinum_scandisk().Lukas Ertl2004-04-241-0/+1
| | | | | | | Approved by: grog (mentor) Notes: svn path=/head/; revision=128623
* Correct and extend the description of the behaviour of rt_check().Luigi Rizzo2004-04-241-7/+27
| | | | Notes: svn path=/head/; revision=128622
* document the locking behaviour of the functions that accessLuigi Rizzo2004-04-241-3/+15
| | | | | | | the routing table. Notes: svn path=/head/; revision=128621
* Add a VM_OBJECT_LOCK_ASSERT() call. Remove splvm() and splx() calls. MoveAlan Cox2004-04-241-7/+5
| | | | | | | a comment. Notes: svn path=/head/; revision=128620
* arpcom untangling:Luigi Rizzo2004-04-242-3/+3
| | | | | | | | | | | | | consistently with the rest of the code, use IFP2AC(ifp) to access the arpcom structure given the ifp. In this case also fix a difference in assumptions WRT the rest of the net/ sources: it is not the 'struct *softc' that starts with a 'struct arpcom', but a 'struct arpcom' that starts with a 'struct ifnet' Notes: svn path=/head/; revision=128618
* arpcom untangling:Luigi Rizzo2004-04-241-5/+6
| | | | | | | do not use struct arpcom directly, rather use IFP2AC(ifp). Notes: svn path=/head/; revision=128617
* Connect ng_sppp to the build process.Roman Kurakin2004-04-243-0/+3
| | | | Notes: svn path=/head/; revision=128616
* arpcom untangling:Luigi Rizzo2004-04-243-10/+7
| | | | | | | | | | | | - use ifp instead if &ac->ac_if in a couple of nd6* calls; this removes a useless dependency. - use IFP2AC(ifp) instead of an extra variable to point to the struct arpcom; this does not remove the nesting dependency between arpcom and ifnet but makes it more evident. Notes: svn path=/head/; revision=128615
* Update the comment describing vm_page_grab() to reflect the previousAlan Cox2004-04-241-6/+5
| | | | | | | revision and correct some of its style errors. Notes: svn path=/head/; revision=128614
* Push down the responsibility for zeroing a physical page from theAlan Cox2004-04-247-13/+2
| | | | | | | | | | | | | | | | caller to vm_page_grab(). Although this gives VM_ALLOC_ZERO a different meaning for vm_page_grab() than for vm_page_alloc(), I feel such change is necessary to accomplish other goals. Specifically, I want to make the PG_ZERO flag immutable between the time it is allocated by vm_page_alloc() and freed by vm_page_free() or vm_page_free_zero() to avoid locking overheads. Once we gave up on the ability to automatically recognize a zeroed page upon entry to vm_page_free(), the ability to mutate the PG_ZERO flag became useless. Instead, I would like to say that "Once a page becomes valid, its PG_ZERO flag must be ignored." Notes: svn path=/head/; revision=128613
* Add a FreeBSD MIB with a few branches we can hang things from.Poul-Henning Kamp2004-04-244-0/+70
| | | | Notes: svn path=/head/; revision=128612
* New release note:Hiroki Sato2004-04-242-8/+54
| | | | | | | | | | | | | | | | | | | acpi_asus(4) added, versrcreach option of ipfw(4), and Israel Hebrew locale he_IL.UTF-8 added. Update release note: The random ephemeral port allocation can be disabled using the net.inet.ip.portrange.randomized sysctl. MFC: ng_hub(4), vr(4) polling support, per-interface polling(4) support, and random ephemeral port allocation. Notes: svn path=/head/; revision=128610
* Try the simplify determining what is ata0 and ata1.Søren Schmidt2004-04-241-17/+1
| | | | | | | | Remove the PCI native addressing code, it eed to be run before we even have control in the ATA driver and should be moved to the pci code. Notes: svn path=/head/; revision=128608
* Disable interrupts while testing the timer. Not doing this unnecessarilyNate Lawson2004-04-241-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added an arbitrary delay to our readings, causing us to use the ACPI-safe read method when not necessary. Submitted by: bde Old: ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks BAD min = 3, max = 19, width = 16 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks BAD min = 3, max = 19, width = 16 ACPI timer looks GOOD min = 3, max = 5, width = 2 ACPI timer looks GOOD min = 3, max = 4, width = 1 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 New: ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 ACPI timer looks GOOD min = 3, max = 4, width = 1 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Also, reduce unnecesary overhead in ACPI-fast by remove the barrier for reads. The timer in the ACPI-fast case is known to increase monotonically so there is no need to serialize access to it. Notes: svn path=/head/; revision=128607
* Change setup for SiS device to allow PCI native mode.Søren Schmidt2004-04-241-4/+4
| | | | Notes: svn path=/head/; revision=128606
* Add IC Book Labs Gunboat x2 and x4 series of serial adapters.Maxim Sobolev2004-04-241-0/+45
| | | | | | | | Hardware provided by: IC Book Labs MFC After: 2 weeks Notes: svn path=/head/; revision=128602
* Add Sandberg USB to Network Link to the list of supported devices.Simon L. B. Nielsen2004-04-241-0/+2
| | | | Notes: svn path=/head/; revision=128601
* Unconditionaly initialize any spin lock passed to pthread_spin_init(). WhileMike Makonnen2004-04-241-4/+0
| | | | | | | | | makeing sure the spinlock isn't already in use might be a nice feature to have in theory, it's hard to implement in practice since the passed in pointer may not be NULL, but still be an invalid value (i.e. 1..2..3.. etc). Notes: svn path=/head/; revision=128600
* Fixed some style bugs (useless forward declarations of structs andBruce Evans2004-04-241-6/+3
| | | | | | | | | misplaced forward declarations of structs). This also reduces namespace pollution (the misplaced declarations were declared in the !_KERNEL case when they are not used). Notes: svn path=/head/; revision=128599
* Fix build for non-COMPAT_FREEBSD4 configurations. Make the FreeBSD 4Marcel Moolenaar2004-04-241-0/+10
| | | | | | | statfs functions conditional upon the option. Notes: svn path=/head/; revision=128597
* In cases where a file was resident in memory mmap(..., PROT_NONE, ...)Alan Cox2004-04-242-5/+6
| | | | | | | | | | | | | | | | | | would actually map the file with read access enabled. According to http://www.opengroup.org/onlinepubs/007904975/functions/mmap.html this is an error. Similarly, an madvise(..., MADV_WILLNEED) would enable read access on a virtual address range that was PROT_NONE. The solution implemented herein is (1) to pass a vm_prot_t to vm_map_pmap_enter() describing the allowed access and (2) to make vm_map_pmap_enter() responsible for understanding the limitations of pmap_enter_quick(). Submitted by: "Mark W. Krentel" <krentel@dreamscape.com> PR: kern/64573 Notes: svn path=/head/; revision=128596
* - Catch up with recent ATA changes.Peter Grehan2004-04-232-6/+9
| | | | | | | - Remove trailing space in ata_macio.c Notes: svn path=/head/; revision=128595
* Wrap two long lines in the previous commit.Mike Silbersack2004-04-231-2/+4
| | | | Notes: svn path=/head/; revision=128593
* Correct an edge case in tcp_mss() where the cached path MTUAndre Oppermann2004-04-232-4/+4
| | | | | | | | | | | | | | | from tcp_hostcache would have overridden a (now) lower MTU of an interface or route that changed since first PMTU discovery. The bug would have caused TCP to redo the PMTU discovery when not strictly necessary. Make a comment about already pre-initialized default values more clear. Reviewed by: sam Notes: svn path=/head/; revision=128592
* Make sure RFCOMM multiplexor channel does not hang in DISCONNECTINGMaksim Yevmenkin2004-04-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state. Apparently it happens when both devices try to disconnect RFCOMM multiplexor channel at the same time. The scenario is as follows: - local device initiates RFCOMM connection to the remote device. This creates both RFCOMM multiplexor channel and data channel; - remote device terminates RFCOMM data channel (inactivity timeout); - local device acknowledges RFCOMM data channel termination. Because there is no more active data channels and local device has initiated connection it terminates RFCOMM multiplexor channel; - remote device does not acknowledges RFCOMM multiplexor channel termination. Instead it sends its own request to terminate RFCOMM multiplexor channel. Even though local device acknowledges RFCOMM multiplexor channel termination the remote device still keeps L2CAP connection open. Because of hanging RFCOMM multiplexor channel subsequent RFCOMM connections between local and remote devices will fail. Reported by: Johann Hugo <jhugo@icomtek.csir.co.za> Notes: svn path=/head/; revision=128591
* Make sure Bluetooth stuff can be statically compiled into kernelMaksim Yevmenkin2004-04-234-0/+50
| | | | | | | | Submitted by: ps Reviewed by: imp (mentor), ru Notes: svn path=/head/; revision=128589
* Clean up two printf()s that were on a line by themselves unintendedlyThomas Moestl2004-04-231-2/+2
| | | | | | | after the ethernet address printing was moved to common code. Notes: svn path=/head/; revision=128588
* Enable the led-toggling magic. Compiling files which are in the kernel intoPhilip Paeps2004-04-233-27/+2
| | | | | | | | | | | | modules is a very nice way to produce hard-to-find panics. Who would look for a bug in a Makefile anyway? Has anyone seen the pointy hat? :-o Approved by: njl (mentor) Notes: svn path=/head/; revision=128587
* Make clone more aggressive about copying strings to the new entry.Tim Kientzle2004-04-231-9/+9
| | | | | | | | | | | | The original might have pointers to user-specified strings; copying the string (instead of just the pointer) protects against the client re-using their own buffers. I'm trying hard to avoid dumping all of the 'set' string functions in favor of slower, but more predictable 'copy' semantics. Notes: svn path=/head/; revision=128586
* Correct KASSERT()s that check for initialization of mutexes in ndis_detach(),Bill Paul2004-04-231-2/+6
| | | | | | | | | which are different now that I'm not using mutex pools anymore. Noticed by: des Notes: svn path=/head/; revision=128585
* Set the 'dump' flag for shardump format.Tim Kientzle2004-04-231-0/+4
| | | | | | | | Credit Juergen Lock. Pointy hat to me for deleting this somewhere along the way. Notes: svn path=/head/; revision=128584
* Add the comment of the previous commit to the source file directly.Andre Oppermann2004-04-231-1/+5
| | | | | | | Requested by: ru Notes: svn path=/head/; revision=128583