brad [Thu, 28 Aug 2008 17:51:09 +0000 (17:51 +0000)]
Rewrite the multicast/promiscuous handling and in the process merge into
one function. Also fix reception of multicast packets when in promisuous
mode. The Realtek chips are a little different than most others in that
they will not receive multicast packets by enabling promiscuous mode
alone.
Tested by naddy@ and sthen@
ok naddy@
damien [Thu, 28 Aug 2008 16:02:14 +0000 (16:02 +0000)]
indent IF_PURGE. pointed out by brad@
no binary changes.
damien [Thu, 28 Aug 2008 16:00:21 +0000 (16:00 +0000)]
#undef IPW_DEBUG
fix a comment while i'm here.
pointed out by brad@
damien [Thu, 28 Aug 2008 15:55:37 +0000 (15:55 +0000)]
80 cols.
no binary changes.
damien [Thu, 28 Aug 2008 15:52:20 +0000 (15:52 +0000)]
WPA support for iwi(4).
some initial WMM bits too.
use license.template while i'm here.
brad [Thu, 28 Aug 2008 15:19:03 +0000 (15:19 +0000)]
Do not try to attach to rev 2 BCM4311/BCM4312 chipsets as they
require v4 firmware and the driver currently uses v3 firmware.
ok mglocker@
damien [Thu, 28 Aug 2008 15:08:38 +0000 (15:08 +0000)]
i've lost the IF_PURGE() bits in the process...
use license.template while i'm here.
damien [Thu, 28 Aug 2008 14:40:44 +0000 (14:40 +0000)]
WPA support for ipw(4).
Did a lot of cleanup while I was there.
brad [Thu, 28 Aug 2008 13:19:38 +0000 (13:19 +0000)]
some style fixes.
brad [Thu, 28 Aug 2008 13:10:54 +0000 (13:10 +0000)]
Fix a typo in the naming of the PPPoE input queues, ppoe -> pppoe.
ok canacar@
jmc [Thu, 28 Aug 2008 13:09:02 +0000 (13:09 +0000)]
some auacer(4) bits;
reyk [Thu, 28 Aug 2008 11:10:25 +0000 (11:10 +0000)]
encode the speed and link state in the local port key.
ok brad@
mikeb [Thu, 28 Aug 2008 10:29:35 +0000 (10:29 +0000)]
man page for the auacer(4) driver.
mikeb [Thu, 28 Aug 2008 10:21:22 +0000 (10:21 +0000)]
Driver for Acer Labs M5455 integrated sound found on recent Ultra workstations.
Suggestions and corrections by kettenis, ratchov, jakemsr. Thanks a lot!
Recording doesn't work at the moment.
ok kettenis ratchov
jmc [Thu, 28 Aug 2008 08:39:44 +0000 (08:39 +0000)]
typo; from hyjial
ok otto
jasper [Thu, 28 Aug 2008 05:18:26 +0000 (05:18 +0000)]
- enable uvideo on sgi, it's working for me with a quickcam e 3500 plus
ok mglocker@
oga [Thu, 28 Aug 2008 02:26:16 +0000 (02:26 +0000)]
Ignore userland provided batchbuffer start parameter, we can determine
it ourselves.
From drm git.
oga [Thu, 28 Aug 2008 01:51:52 +0000 (01:51 +0000)]
set sarea_priv to NULL to prevent possible access on next open/close.
From Robert Noland via drm git.
oga [Thu, 28 Aug 2008 01:34:18 +0000 (01:34 +0000)]
Kill the ifdefed out ttm interface stuff. The intel driver has
definitively gone for GEM so this will not be needed.
No binary change.
brad [Thu, 28 Aug 2008 01:17:29 +0000 (01:17 +0000)]
Add some more E1000 PCI ids.
From FreeBSD
oga [Thu, 28 Aug 2008 00:44:31 +0000 (00:44 +0000)]
This file was meant to be removed with the last commit, it's now empty
and unused.
oga [Thu, 28 Aug 2008 00:19:27 +0000 (00:19 +0000)]
replace usage of drm_memrange with extent(9). No functional change, but
should shrink the kernel somewhat. For some strange reason I was unaware
of this api when I pulled in these changes.
tested by myself and Paul de Weerd, thanks!
jmc [Wed, 27 Aug 2008 20:39:32 +0000 (20:39 +0000)]
document \user; from Kristaps D?onsons, originally from Mengzhu Wang
document comma separated entries; from millert
reorganise the page a bit to read better
ok millert
brad [Wed, 27 Aug 2008 20:38:59 +0000 (20:38 +0000)]
Remove a redundant define for RL_CFG2 and remove an incorrect comment.
jmc [Wed, 27 Aug 2008 20:20:13 +0000 (20:20 +0000)]
correct man sections; from Tobias Sarnowski
ok millert
jasper [Wed, 27 Aug 2008 20:12:00 +0000 (20:12 +0000)]
add an Xr to usb, now that we have usb on sgi
deraadt [Wed, 27 Aug 2008 17:33:32 +0000 (17:33 +0000)]
sync
deraadt [Wed, 27 Aug 2008 17:33:30 +0000 (17:33 +0000)]
another ups
mglocker [Wed, 27 Aug 2008 17:31:48 +0000 (17:31 +0000)]
Some __packed cleanup; Remove another obsolete pack from a none-hardware
struct and pack all other hardware structs which have been forgotten.
damien [Wed, 27 Aug 2008 10:58:01 +0000 (10:58 +0000)]
move definitions of channels attributes away from ieee80211.h such
that ieee80211.h contains only definitions that are part of the
802.11 standard and not constants used internally by net80211.
because channels attributes are exported to userland through the
radiotap BPF interface, add the definitions to ieee80211_radiotap.h
too (which must be kept in sync with what is used in net80211).
also, do not export combinations of channel attributes to userland
so that noone get stupid ideas.
damien [Wed, 27 Aug 2008 10:34:24 +0000 (10:34 +0000)]
pass FCS to radiotap.
damien [Wed, 27 Aug 2008 10:29:53 +0000 (10:29 +0000)]
fix IEEE80211_RADIOTAP_F_SHORTPRE
damien [Wed, 27 Aug 2008 10:03:47 +0000 (10:03 +0000)]
another IEEE80211_RADIOTAP_F_FCS candidate.
damien [Wed, 27 Aug 2008 10:01:18 +0000 (10:01 +0000)]
add IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.
use it in drivers that leave the 802.11 FCS in frames
passed to radiotap BPF. otherwise, userland has no way
to know if FCS is included or not as it depends on drivers.
this is required by some ports (aircrack).
requested by dhill@
damien [Wed, 27 Aug 2008 09:49:32 +0000 (09:49 +0000)]
hardware may pass us ACK or CTS frames in some cases, so use
IEEE80211_ACK_LEN instead of IEEE80211_MIN_LEN for ZYD_MIN_RXBUFSZ
and ZYD_MIN_FRAGSZ.
silence some warnings while i'm there.
change ZYD_FILTER_BSS to use the same value as the vendor's driver
that contains some magic (undocumented) bits.
damien [Wed, 27 Aug 2008 09:28:38 +0000 (09:28 +0000)]
the firmware is responsible for sending management frames, but
since we pass received management frames to net80211, net80211
may send replies (like deauth/disassoc), so we just call
IF_PURGE(&ic->ic_mgtq) in {ipw,iwi}_start just to be on the
safe side of things (so we don't leak mbufs).
damien [Wed, 27 Aug 2008 09:14:36 +0000 (09:14 +0000)]
override net80211's ic_node_alloc function to allocate a full
bwi_node structure (containing the rate control state).
because bwi(4) does not support HostAP or IBSS modes there is
no need to maintain a per-node rate control state, so we could
as well store it in bwi_softc but that will allow for future
improvements.
pointed out by Taylor R Campbell (campbell AT mumble DOT net)
on tech@
damien [Wed, 27 Aug 2008 09:05:03 +0000 (09:05 +0000)]
introduce new IEEE80211_STA_ONLY kernel option that can be set to
remove IBSS and HostAP support from net80211 and 802.11 drivers.
it can be used to shrink RAMDISK kernels for instance (like what
was done for wi(4)).
it also has the benefit of highlighting what is specific to IBSS
and HostAP modes in the code.
the cost is that we now have two code paths to maintain.
brad [Wed, 27 Aug 2008 08:41:46 +0000 (08:41 +0000)]
Fix length check when parsing PPPoE discovery phase packets.
Malicious PPPoE discovery packets could cause the kernel to
crash.
From canacar@ and inspired by the original fix from NetBSD.
ok canacar@
kjell [Wed, 27 Aug 2008 04:11:52 +0000 (04:11 +0000)]
add a C-c target, so we can use it as a prefix for keybindings.
Now you can do something like:
global-set-key "\^c\^c" compile
in your ~/.mg
martynas [Wed, 27 Aug 2008 02:08:34 +0000 (02:08 +0000)]
exposed too much, only expose prototype outside ifdef
deraadt [Wed, 27 Aug 2008 01:37:16 +0000 (01:37 +0000)]
delete unused pragma ident junk
martynas [Wed, 27 Aug 2008 00:40:38 +0000 (00:40 +0000)]
comment fixes
martynas [Wed, 27 Aug 2008 00:31:01 +0000 (00:31 +0000)]
fix 128-bit division. gcc mangled arguments when passing to the
__udivti3, because MUST_PASS_IN_STACK always returned 1 on amd64;
pr#5780
reported by Simon Kuhnle
tested by Simon Kuhnle, sthen@, brad@
double-checked & tweak from miod@
ok sthen@, brad@
jsg [Tue, 26 Aug 2008 22:49:09 +0000 (22:49 +0000)]
Fix an if (); typo. ok beck@
deraadt [Tue, 26 Aug 2008 22:25:20 +0000 (22:25 +0000)]
another ups to knock out of being a uhid
deraadt [Tue, 26 Aug 2008 22:25:08 +0000 (22:25 +0000)]
sync
deraadt [Tue, 26 Aug 2008 22:24:30 +0000 (22:24 +0000)]
new devs
mglocker [Tue, 26 Aug 2008 21:52:48 +0000 (21:52 +0000)]
Fix alignment panic on sparc64 by removing a wrong __packed. While
there reorder fields in the struct to make it shorter on 64 bit archs.
panic reported by jasper@
thanks to miod@ for helping me debug this down
kettenis [Tue, 26 Aug 2008 21:06:29 +0000 (21:06 +0000)]
Fix a couple of problems that may make gem(4) get stuck:
1. If bus_dmamap_load_mbuf() fails because there are not enough
segments in the map, defrag the mbuf.
2. If there are not enough free (hardware ring) descriptors, set
IFF_OACTIVE and keep the packet on the queue.
3. If there is some other resource starvation that makes
bus_dmamap_load_mbuf() or defragmentation fail, drop the packet.
Don't set IFF_OACTIVE, since the Tx ring could be empty and we'd be
stuck.
4. Only pass packets that are actually handed off to the hardware to
BPF. Do so before handing them off to the hardware to make sure
the packet isn't freed behind our back.
ok dlg@
miod [Tue, 26 Aug 2008 19:46:23 +0000 (19:46 +0000)]
Stylus pressure sensor is active low, so invert the logic converting it
to button #5.
kettenis [Tue, 26 Aug 2008 19:43:05 +0000 (19:43 +0000)]
Better strategy to single out onboard bge(4)'s on sparc64 machines.
ok deraadt@
miod [Tue, 26 Aug 2008 18:36:21 +0000 (18:36 +0000)]
When using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.
when mopbooting the bootblocks because one trashed the ones on disk by
accident), be sure to use the proper BDEV_SDx rpb device type value,
depending on the type of onboard controller. Crank version.
martynas [Tue, 26 Aug 2008 18:29:12 +0000 (18:29 +0000)]
- add F
- make inf INF nan NAN comply to standards (eEfFgG)
- extend man page bits
ok millert@. w/ a man page tweak and ok jmc@
martynas [Tue, 26 Aug 2008 17:56:30 +0000 (17:56 +0000)]
don't zero-pad special values. ok millert@
kettenis [Tue, 26 Aug 2008 15:39:27 +0000 (15:39 +0000)]
Plug potential memory leak.
"looks sane to me" otto@, ok miod@
henning [Tue, 26 Aug 2008 12:19:01 +0000 (12:19 +0000)]
we need to call pf_pkt_addr_changed here too. found by david
henning [Tue, 26 Aug 2008 12:18:01 +0000 (12:18 +0000)]
call pf_pkt_addr_changed instead of manually clearing the pf state key ptr
henning [Tue, 26 Aug 2008 12:17:10 +0000 (12:17 +0000)]
introduce a function to be called when addressing information has changed,
pf_pkt_addr_changed. atm just clears the state key pointer.
calling this is cleaner than having other parts of the stack clearing
pointers in the pf part of the mbuf packet header directly.
jmc [Tue, 26 Aug 2008 08:59:49 +0000 (08:59 +0000)]
libbfd and libopcodes no longer built;
brad [Tue, 26 Aug 2008 07:43:03 +0000 (07:43 +0000)]
Update comment to mention the 8211C.
brad [Tue, 26 Aug 2008 07:40:32 +0000 (07:40 +0000)]
Mention the 8211C.
brad [Tue, 26 Aug 2008 05:41:46 +0000 (05:41 +0000)]
regen
brad [Tue, 26 Aug 2008 05:41:07 +0000 (05:41 +0000)]
Add the PCI id for the Broadcom BCM5785 Ethernet controller.
jsing [Tue, 26 Aug 2008 05:17:07 +0000 (05:17 +0000)]
regen
prompted by todd@
deraadt [Mon, 25 Aug 2008 22:30:19 +0000 (22:30 +0000)]
correct +name handling; schwarze@usta.de
jmc [Mon, 25 Aug 2008 20:43:49 +0000 (20:43 +0000)]
two spelling fixes from Anathae Townsend;
jasper [Mon, 25 Aug 2008 18:22:41 +0000 (18:22 +0000)]
- usb stuff
otto [Mon, 25 Aug 2008 17:56:17 +0000 (17:56 +0000)]
Make all combinations of G, P, J and zero-fill work with as little
effort as possible in most cases; ok djm@
jsing [Mon, 25 Aug 2008 17:21:56 +0000 (17:21 +0000)]
We can install from a CD-ROM now...
deraadt [Mon, 25 Aug 2008 17:18:55 +0000 (17:18 +0000)]
use ?= for adjusting RELXDIR for all sets
jsing [Mon, 25 Aug 2008 17:13:25 +0000 (17:13 +0000)]
Now that the rest of the infrastructure is in place, actually create a
working installXX.iso for OpenBSD/sgi!
ok deraadt@
jasper [Mon, 25 Aug 2008 16:15:53 +0000 (16:15 +0000)]
- add a bunch of enabled usb devices that have been tested.
together with the previous commits by jsing@, OpenBSD/sgi does USB now.
ok jsing@ miod@
jsing [Mon, 25 Aug 2008 14:53:34 +0000 (14:53 +0000)]
Make sgivol(8) use the device sector size for reads and writes. This allows
us to use sgivol on devices which have a sector size != DEV_BSIZE, such as
a CD drive.
ok miod@ krw@
jsing [Mon, 25 Aug 2008 14:05:51 +0000 (14:05 +0000)]
Add bus_space_read_raw_region_* and bus_space_write_raw_region_* bus space
accessors to OpenBSD/sgi.
ok miod@
jsing [Mon, 25 Aug 2008 14:01:55 +0000 (14:01 +0000)]
regen
jsing [Mon, 25 Aug 2008 14:00:33 +0000 (14:00 +0000)]
Add USB devices.
ok miod@ jasper@
jsing [Mon, 25 Aug 2008 13:51:12 +0000 (13:51 +0000)]
Add device majors for USB character devices in OpenBSD/sgi.
ok miod@ jasper@
jsing [Mon, 25 Aug 2008 13:35:34 +0000 (13:35 +0000)]
Unbreak.
ok miod@
sobrado [Mon, 25 Aug 2008 11:56:12 +0000 (11:56 +0000)]
minor tweak for removal of "[-d devel]" (change done in r1.19 and r1.21).
ok ratchov@
krw [Mon, 25 Aug 2008 11:27:00 +0000 (11:27 +0000)]
If partoffp is non-NULL then readdoslabel() is just looking for the
correct address to write the passed label. Don't spoof partitions
while looking for the address, as this could result in an invalid
label being written out.
"That looks right" deraadt@ "Looks good to me" miod@
pedro [Mon, 25 Aug 2008 09:26:17 +0000 (09:26 +0000)]
Correctly invalidate attribute cache entries in case the vnode mode
changes, okay beck@, tedu@ and thib@.
todd [Mon, 25 Aug 2008 03:16:22 +0000 (03:16 +0000)]
how about i commit what was actually approved? wrong tree, bad todd ;-(
todd [Sun, 24 Aug 2008 23:44:44 +0000 (23:44 +0000)]
o implement proper volume control table based on chipset docs
o attempt to make record work (but silence for now)
from drahn@, ok maja@, drahn@
martynas [Sun, 24 Aug 2008 20:43:53 +0000 (20:43 +0000)]
prepends, not overrides default search path. with/ok kurt@
deraadt [Sun, 24 Aug 2008 20:24:43 +0000 (20:24 +0000)]
Tadpole Viper onboard ethernet has no eeprom either, but the PROM entry
has subsystem ids set to the same as the regular ids, so the heuristic does
not work. So look for the TAD,Viper machine name. When we get our hand on
a Bullfrog (with a PCI slot) we will need to revisit this.
ok kettenis
deraadt [Sun, 24 Aug 2008 20:13:35 +0000 (20:13 +0000)]
ralink firmware on the ramdisk
deraadt [Sun, 24 Aug 2008 20:13:21 +0000 (20:13 +0000)]
many more devices for the RAMDISK
miod [Sun, 24 Aug 2008 20:10:55 +0000 (20:10 +0000)]
Define a proper wsdisplay type for legss(4).
mglocker [Sun, 24 Aug 2008 19:46:45 +0000 (19:46 +0000)]
Get VIDIOC_G_FMT working (makes ekiga happy).
miod [Sun, 24 Aug 2008 18:53:36 +0000 (18:53 +0000)]
Correct eisa i/o ports layout structure, this has probably been broken
when switching from gcc 2.95, if not forever.
deraadt [Sun, 24 Aug 2008 16:30:18 +0000 (16:30 +0000)]
proper indent
jmc [Sun, 24 Aug 2008 15:22:08 +0000 (15:22 +0000)]
remove the ls=ls -gCF alias: we already have an alias for ls (-CF),
and now that the behaviour of -g has changed to be more in line
with posix, we get group ID by default anyway;
kick started by PR 5784 from Jacek Masiulaniec;
discussed with otto and sobrado;
ok deraadt millert
miod [Sun, 24 Aug 2008 14:52:08 +0000 (14:52 +0000)]
vsbus machines also have modem control bits on line #2, no need to fake them.
miod [Sun, 24 Aug 2008 14:51:22 +0000 (14:51 +0000)]
Writing to the DTR register on KA60 resets the TCR register behind our back.
Preserve it explicitely in dzmctl() and restore it after the DTR update.
(This problem was a real PITA to track down)
miod [Sun, 24 Aug 2008 14:49:58 +0000 (14:49 +0000)]
typo
miod [Sun, 24 Aug 2008 14:49:35 +0000 (14:49 +0000)]
Correct dmesg, do not mention dz is the console device if running with
glass console.
krw [Sun, 24 Aug 2008 12:56:17 +0000 (12:56 +0000)]
Fix readdpmelabel() so it doesn't corrupt a disklabel about to be
written (i.e. partoff != NULL), and doesn't corrupt a disklabel
with more than eight (8) dpme partitions.
Problems reported by Josh Elsasser via PR#5904. Testing by Josh,
otto@, drahn@, maja@, kettenis@. Most of the diff from otto@.
ok drahn@
mglocker [Sun, 24 Aug 2008 11:43:00 +0000 (11:43 +0000)]
Use consistent variable names; curr -> cur, err -> error.
mglocker [Sun, 24 Aug 2008 11:05:02 +0000 (11:05 +0000)]
Add support for processing unit (e.g. brightness) controls. New V4L2
ioctls therefore are VIDIOC_QUERYCTRL, VIDIOC_G_CTRL, and VIDIOC_S_CTRL.