Commit Graph

68634 Commits

Author SHA1 Message Date
pjd
5d3f53e849 Initialize vp, so we don't call VOP_UNLOCK() with NULL vnode pointer.
Confirmed by:	marcus
2008-09-07 07:55:12 +00:00
nyan
5272b43e20 Use bus_space_compare() rather than i386_memio_compare() directly. 2008-09-07 04:47:39 +00:00
nyan
909db6af61 - Add the i386_memio_map_load() function to load I/O address table.
- Add the bus_space_compare macro for bus_space consistency.
- Switch using the bus_space_map_load() in isa_load_resourcev().
2008-09-07 04:44:24 +00:00
nyan
598da5ab17 - Cleanup i8251 related defines.
- Move i8255 related defines into a separate file.
2008-09-07 04:35:04 +00:00
sam
c4ae3cf4b0 make all checks if ni_chw consistent 2008-09-06 17:51:02 +00:00
sam
4ee6c7ffc4 use c99 syntax for initializers; this silences
warnings with picky compiler settings
2008-09-06 17:48:25 +00:00
sam
869a1cd476 only return the negotiated ampdu density for sta mode 2008-09-06 17:43:47 +00:00
sam
61ad737144 o kill IEEE80211_NODE_PSUPDATE; it was never used
o kill IEEE80211_NODE_CHWUPDATE; it's use was pointless and it was defined
  wrong (overlap w/ existing flags)
2008-09-06 17:42:51 +00:00
sam
9b8a0a7556 put back placeholder comment 2008-09-06 17:39:31 +00:00
sam
9db405bfbd o validate the ba policy in addba response
o leave a check for the max ba window disabled; we accept out of range
  values and just truncate them but may want to act differently in the future
2008-09-06 17:38:20 +00:00
sam
7923b9382d add IEEE80211_NODE_HT_ALL to collect up all the HT-related node flags 2008-09-06 17:33:46 +00:00
sam
d4815d5b74 don't do ampdu reordering of fragments; they should never happen 2008-09-06 17:31:55 +00:00
sam
5379b08ec2 moreve the aggregation q; it's not being used and
there's a better way to do this
2008-09-06 17:29:11 +00:00
pjd
ff89335810 Lock vnode exclusively around insmntque(). 2008-09-06 17:24:07 +00:00
sam
75452e6eca o show key indices w/o adjustment
o display all key flags symbolically
2008-09-06 17:18:38 +00:00
sam
69a79cd4cd purge ni_reqcw; not used and never will be 2008-09-06 17:15:55 +00:00
sam
a5a78bb230 o fix BAR definitions
o add 11e reason codes
2008-09-06 17:14:27 +00:00
sam
84b45b57bc fix age calculations (yet again); entries in the q have values
relative to the head

MFC after:	3 days
2008-09-06 17:04:44 +00:00
rik
8075e22678 Export the IPFW_DEFAULT_RULE outside ip_fw2.c. This number in not only
the default rule number but also the maximum rule number.  User space
software such as ipfw and natd should be aware of its value.  The
software that already includes ip_fw.h should use the defined value.  All
other a expected to use sysctl (as discussed on net@).

MFC after: 5 days.
Discussed on: net@
2008-09-06 16:47:07 +00:00
ed
078503b213 Small style(9) nit in <sys/termios.h>.
There are a lot of places where we do "#define<space>" instead of
"#define<tab>". Clean this up a little.
2008-09-06 15:41:58 +00:00
ed
e4b90a03d0 Make TIOCCONS use priv_check() instead of checking /dev/console permissions.
As discussed with Robert on IRC, checking the permissions on
/dev/console to see if we can call TIOCCONS could be unreliable. When we
run a chroot() without a devfs instance mounted inside, it won't
actually check the permissions on the device node inside the devfs
instance.

Using the already existing PRIV_TTY_CONSOLE for this seems like a better
idea.

Approved by:	rwatson
2008-09-06 14:43:32 +00:00
yongari
6f5f8670b5 Read ethernet address from ID registers for RTL8102E/RTL8102EL as
reading from EEPROM doesn't seem to work on these controllers.

Reported by:	Milan Obuch ( freebsd-net at dino dot sk )
Tested by:	Milan Obuch ( freebsd-net at dino dot sk )
2008-09-06 00:25:16 +00:00
imp
894695e105 Turn some lame pseudo-code into a less lame comment. 2008-09-05 22:30:59 +00:00
imp
1ab0349341 Kill bogus #if 0'd stuff for interrupts. They don't happen, and this
driver will need more serious help to work with an interrupt driven
path.  There's many subtleties in driving the DMA engine with
interrupts in many configurations.  Best to not "guess" what the right
way would be and mislead people.
2008-09-05 22:29:50 +00:00
imp
4f189f7cd1 Kill vestiges of the special case code we once had in place for usb
memory allocation.  It was change to include the range in the normal
memory area, so these ifdef'd out special cases are no longer useful
to keep around.
2008-09-05 22:27:10 +00:00
rpaulo
5c95f8503b Merge ath again (addition of wisoc files). 2008-09-05 22:24:31 +00:00
imp
db9f13905a Kill bogus #if 1. There's no need for it since usb works these days. 2008-09-05 22:23:41 +00:00
julian
e9e8fc3c49 Be consistent about whether these multi-lined macros are separated by
a blank line. Some were, some weren't. Decide in favour of the line
as it matches what an inline would do, and it's easier to read.
2008-09-05 21:03:19 +00:00
imp
e4872726d9 Keep track of the active buffer on output. For the moment, panic if
the device indicates that it wasn't able to write all the data in the
buffer out.

Ed Schouten doesn't like the idea of a panic here.  I think for
production code, we need something better.  For right now, while we're
trying to assess the impact of this issue, a panic is OK.  So complain
to me, not him if this is hit.
2008-09-05 20:49:45 +00:00
imp
52a8331751 Sort products numerically. 2008-09-05 20:45:31 +00:00
rpaulo
a0b2d5800e Fix build. 2008-09-05 18:11:18 +00:00
rpaulo
73ce7d52df Keep entries sorted. 2008-09-05 18:09:49 +00:00
rpaulo
e1a8f74932 Add a couple more Apple GPT entries and NetBSD GPT entries. 2008-09-05 17:45:24 +00:00
rpaulo
aa0fb0c85b Include the vendor in the partition name. 2008-09-05 16:54:07 +00:00
ed
bf17d6c233 Fix a small typo in a comment in calcru1().
The word "happene" should read "happened".

Submitted by:	Jille Timmermans <jille quis cx>
2008-09-05 15:55:06 +00:00
jkoshy
e690e2f8cd Correct a copy-paste error---do not look for REX prefixes in i386 code. 2008-09-05 14:45:56 +00:00
rpaulo
83e55bfe81 Merge fix for P4 expansion from vendor branch. 2008-09-05 13:18:06 +00:00
rpaulo
ed7177a94f Detect Apple HFS GPT slices. 2008-09-05 12:49:14 +00:00
weongyo
1dfa0b9157 Add ZyXEL G-202
Obtained from:	OpenBSD
2008-09-05 11:27:33 +00:00
davidxu
40259861b6 Fix LOR between vnode lock and internal mqueue locks. 2008-09-05 07:32:57 +00:00
pjd
686ff3ee25 Catch up after last insmntque() changes:
- The vnode has to be locked exclusively before calling insmntque().
- Until I find a way to handle insmntque() failures use VV_FORCEINSMQ flag
  to force insmntque() to always succeed.

Reported by:	kris, trasz, des, others
Suggested by:	kib
Tested by:	trasz
2008-09-05 07:00:40 +00:00
thompsa
6beefd0e39 Remove the alignment of the align parameter. This is up to the caller to pass
in and it breaks tap(4) on strict alignment machines as m_uiotombuf is called
with ETHER_ALIGN.

Found by:	Jared Go
Reviewed by:	emax
MFC after:	3 days
2008-09-05 04:05:31 +00:00
davidxu
74474a30a7 Fix lock name conflict.
PR:	kern/127040
2008-09-05 02:07:25 +00:00
keramida
d4e1f6671c Slightly reword comment and remove typos. 2008-09-05 01:36:30 +00:00
marius
94d646b8ea When determining whether we trapped while in the PROM don't only
check for addresses below the PROM range but also those above.
2008-09-04 21:06:09 +00:00
marius
4f69477c32 Use the PROM provided SUNW,set-trap-table to take over the trap
table. This is required in order to set obp-control-relinquished
within the PROM, allowing to safely read the OFW translations node.
Without this, f.e. a `ofwdump -ap` triggers a fatal reset error or
worse things on machines based on USIII and beyond.
In theory this should allow to remove touching %tba in cpu_setregs(),
in practice we seem to currently face a chicken and egg problem when
doing so however.
2008-09-04 20:52:54 +00:00
marius
07104b5d3d Ensure the caches have the desired configuration (see especially
cheetah_cache_enable()).
2008-09-04 20:08:21 +00:00
marius
bd97245687 Flesh out MMU and cache handling of cheetah-class CPUs. 2008-09-04 19:58:52 +00:00
marius
51bdea6a39 The physical address space of cheetah-class CPUs has been extended
to 43 bits so update TD_PA_BITS accordingly. For the most part this
increase is transparent to the existing code except for when reading
the physical address from ASI_{D,I}TLB_DATA_ACCESS_REG, which we
only do in the loader and which was already adjusted in r182478, or
from the OFW translations node.
While at it, ensure we are only taking valid OFW mapping entries
into account.
2008-09-04 19:43:14 +00:00
marius
f8a9831413 Ensure interrupts are off while in {d,i}tlb_va_to_pa_sun4u().
I think this is necessary in order to make sure the workarounds
in {d,i}tlb_get_data_sun4u() work correctly.
2008-09-04 19:41:54 +00:00