Commit Graph

111451 Commits

Author SHA1 Message Date
imp
f911a9b324 Simplify aha resource management, and fix a few bugs in unwinding
error cases.
2005-01-19 06:54:10 +00:00
imp
3e996cd639 Introduce bus_free_resource. It is a convenience function which wraps
bus_release_resource by grabbing the rid from the resource.
2005-01-19 06:52:19 +00:00
imp
5ba6122240 MFp4: fix a minor formatting inconsistancy 2005-01-19 01:40:02 +00:00
imp
cbd0d8d098 Remove code for pre-4.0 versions of FreeBSD. It is there in prior
versions of freebsd for people that need it.
2005-01-19 01:31:33 +00:00
imp
a6993a4056 Call wi_free after we turn off the interrupts. If we call it before,
then we reference parts of the softc.

# My appologies, but this was sent to me by someone whose name I've lost.
2005-01-19 01:26:44 +00:00
cognet
19a6d31bf7 MFpowerpc: Work around the problem of returning a 32 bits value from
__syscall() on a 32 bits big-endian arch.

Spotted out by:	grehan
2005-01-19 00:37:03 +00:00
peter
1fc76300af Mostly back out rev 1.33 from quite some time ago, and the followup fixes
and tweaks.  The code was actually quite broken because it discarded the
upper bits of the 64 bit division.  We only had a 50% chance of scaling up
the blocksize for large NFS client mounts when it was needed.  For 5.x and
beyond, this was harmless because we could represent the result in either
case.  For 4.x this was a big problem though.  (4.x also has a df(1) bug to
compound the problem)
2005-01-18 21:59:44 +00:00
ru
2258eed2fc Use the standard section name. 2005-01-18 20:54:50 +00:00
ru
980579261a The rest of manpages spell this "PSEUDOCODE". 2005-01-18 20:37:11 +00:00
ru
7fa57b556f Use the standard section name. 2005-01-18 20:36:37 +00:00
sam
4d381e3a60 remove debug msg from ieee80211_iterate_nodes; it makes logs very noisy
as onoe rate control invokes this once a second
2005-01-18 20:35:39 +00:00
sam
7e75ed8f84 avoid possible null pointer deref when refcnt debugging is enabled; the
node may be orphaned

Submitted by:	Tai-hwa Liang
2005-01-18 20:34:22 +00:00
sam
940d6ce95d Explicitly ignore ibss merge requests when the node is ic_bss. This can
happen on the first management frame received from a neighbor; we assume
any merge candidate will send more frames and those should be processed
with a suitable table entry.

Stepped on by:	Tai-hwa Liang
2005-01-18 20:30:16 +00:00
jhb
0503e7bd5e If a valid ELCR was found, consult it for the trigger mode of ISA
interrupts that have a trigger mode of conforming.  This fixes problems on
some older machines that still route PCI devices via ISA interrupts when
using an I/O APIC.

Tested by:	Peter Trifonov pvtrifonov at mail dot ru
MFC after:	1 month
2005-01-18 20:27:24 +00:00
jhb
8babb27c0a Tweak the ELCR support slightly. Explicitly probe the ELCR during boot
instead of burying that in the atpic(4) code as atpic(4) is not the only
user of elcr(4).  Change the elcr(4) code to export a global elcr_found
variable that other code can check to see if a valid ELCR was found.

MFC after:	1 month
2005-01-18 20:24:47 +00:00
seanc
56e0e4a0df Synchronize with notes in GENERIC and note the kernel dependency on scbus(4).
MFC after:      7 days
2005-01-18 20:23:47 +00:00
jhb
6b68be837a Don't create new-bus resources for ACPI extended IRQ resources that are
producers rather than consumers as new-bus resources only handle consumed
resources.  We already do this for the other ACPI resource types that
support the producer/consumer attribute.
2005-01-18 20:21:36 +00:00
sam
1d352863cf Simplify the logic for checking the scan candidates at the end of a scan.
Hold a lock on the table instead of futzing with reference counts which
was potentially dangerous except drivers were quiescent while we did this
so the table contents never changed.  Disable the hack logic for removing
scan candidates with multiple association failures; it's never done the
right thing and will be fixed correctly with background scanning goes in.
2005-01-18 20:21:29 +00:00
jhb
d2a223965d For the sake of consistency, look up link devices relative to the root
object (/) rather than the pci bus object when walking the _PRT to force
attach devices.  We already look up relative to the root object when doing
interrupt routing.

Suggested by:	njl
2005-01-18 20:20:32 +00:00
jhb
0e723a292e - Add support for link devices where _CRS just outright fails to execute.
For such devices, we require _PRS to exist and we warn if any of the
  resources in _PRS are not IRQ resources (since we'll have no way of knowing
  which of those resources to use without a working _CRS).  When it does
  come time to set resources, we build up a resource buffer from scratch
  as we do for devices with _CRS that only have IRQ resources.
- Fix a bug with setting extended IRQ resources where we set the IRQ value
  in the wrong resource structure meaning that whichever IRQ was listed in
  _PRS was used instead.  This might fix some weird issues on certain boxes
  where IRQs > 16 don't seem to work when using ACPI.
- Fix a bug with how we walked the resource buffer after _SRS to call
  config_intr() in that the 'end' variable was not properly updated, so we
  could either terminate the loop early or loop after the end of the
  buffer.

Tested by:	pjd
2005-01-18 20:18:46 +00:00
sam
f7ef1f6ba8 correct logic that caused beacon frames received in ibss mode to be
discarded when not scanning
2005-01-18 20:07:44 +00:00
sam
f77550b56c move beacon/probe response counting down to after we've decided whether or
not we're going to process the frame; this makes the counters reflect frames
actually processes instead of received (discarded frames were already counted)
2005-01-18 20:04:51 +00:00
ru
3ea3f1c4cc Fixed formatting in the AUTHORS section. 2005-01-18 20:04:14 +00:00
ru
9a0f1e9891 Sort sections. 2005-01-18 20:02:45 +00:00
sam
780a8054ea when scanning is interrupted reset state so table entries go in the station
table and not the scan table

Noticed by:	Tai-hwa Liang
2005-01-18 19:59:40 +00:00
sam
e433b5d6a2 do fixed rate check when considering if a scan candidate is suitable so when
it's time to join the bss we can't get an error
2005-01-18 19:52:36 +00:00
alc
44c3797197 Add checks to vm_map_findspace() to test for address wrap. The conditions
where this could occur are very rare, but possible.

Submitted by: Mark W. Krentel
MFC after: 2 weeks
2005-01-18 19:50:09 +00:00
sam
5840f09712 adjust tx buffer allocation based on empirical testing:
o increase the max per-frame tx descriptor count and the number of tx
  buffers for forthcoming fast frame support
o correct the max scatter/gather count; it cannot be larger than the
  max(tx,rx,beacon) descriptor counts
2005-01-18 19:42:17 +00:00
sam
55fca7d4ae add missing statistic 2005-01-18 19:33:06 +00:00
sam
f04e83a238 disable interrupts when transitioning to INIT state so we don't rx frames 2005-01-18 19:31:31 +00:00
sam
ca4e8bfde8 replace hand-rolled code to compact an mbuf chain with m_defrag; this is
suboptimal but needed for fast frames which won't fit in a single cluster
2005-01-18 19:28:49 +00:00
sam
064066477e setup the beacon xmit queue to not interrupt; we don't use them and
they make the led's flash unnecessarily in adhoc mode
2005-01-18 19:10:17 +00:00
sam
b1b2d1f01e better led blinking 2005-01-18 19:03:04 +00:00
das
f147925364 Configure gdtoa so that floating-point numbers are correctly rounded
when they are printed in non-default rounding modes.
2005-01-18 18:56:18 +00:00
das
43b5fdabc4 Cut out the gordian handling of subnormals by bit fiddling, and
instead use the FPU to convert subnormals to normals.  (NB: Further
simplification is possible, such as using the FPU for the rounding
step.)

This fixes a bug reported by stefanf where long double subnormals in
the Intel 80-bit format would be output with one fewer digit than
necessary when the default precision was used.
2005-01-18 18:44:07 +00:00
brueffer
7324f66316 Typo fixes.
MFC after:	3 days
2005-01-18 18:13:03 +00:00
sam
7be609df9c add paren's so we can supply a|b as a debug mask 2005-01-18 18:11:04 +00:00
sam
cb79172ae3 o disable pci retry timeout to avoid problems when operating in C3 state
(fix imported from madwifi by Takanori Watanabe)
o eliminate save/restore of pci registers handled by the system
o eliminate duplicate zero of the softc (noted by njl)
o consolidate common code

MFC after:	1 week
2005-01-18 18:08:16 +00:00
brueffer
cc0b697b26 Capitalize Windows and fix a typo.
Submitted by:	markus
MFC after:	3 days
2005-01-18 17:53:35 +00:00
cognet
c4ffc08b66 Start to support the big endian case as well. 2005-01-18 15:51:50 +00:00
das
9cd1d477a9 Correct the values of FLT_ROUNDS for the FE_UPWARD and FE_DOWNWARD cases. 2005-01-18 15:29:28 +00:00
glebius
4410b6a80b Don't print extra " via ", if we have already printed one. While here,
slightly style brackets.

PR:		misc/75297
MFC after:	1 week
2005-01-18 15:13:20 +00:00
davidxu
d2b72684ce Revert my previous errno hack, that is certainly an issue,
and always has been, but the system call itself returns
errno in a register so the problem is really a function of
libc, not the system call.

Discussed with : Matthew Dillion <dillon@apollo.backplane.com>
2005-01-18 13:53:10 +00:00
ru
31b96e8df8 Sort sections. 2005-01-18 13:43:56 +00:00
phk
00285a74f8 Remove committer-specific entry. 2005-01-18 11:52:19 +00:00
scottl
401a6581d4 Fix compile errors. Bah. 2005-01-18 11:06:34 +00:00
scottl
510d052fed Fix an incorrect cast.
Submitted by: Andriy Gapon
MFC-after: 3 days.
2005-01-18 10:15:23 +00:00
ru
502abf501f Sort sections. 2005-01-18 10:09:38 +00:00
ru
a39443efdf Sort sections. 2005-01-18 09:29:40 +00:00
glebius
3f616cc317 Remove redundant parameter inherited from ipacctctl. 2005-01-18 09:24:32 +00:00