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.
dlg [Sun, 24 Aug 2008 09:08:49 +0000 (09:08 +0000)]
dont display disk geometry (cyls/heads/sectors) since it mostly lies these
days. if you really want it still you can fetch it via disklabel(8).
ok krw@ deraadt@
brad [Sun, 24 Aug 2008 08:23:15 +0000 (08:23 +0000)]
Add Atheros OUI and Atheros F1 id.
From FreeBSD
brad [Sun, 24 Aug 2008 08:20:35 +0000 (08:20 +0000)]
regen
brad [Sun, 24 Aug 2008 08:20:21 +0000 (08:20 +0000)]
BCM5714 also supports fiber interfaces.
jsg [Sun, 24 Aug 2008 03:13:12 +0000 (03:13 +0000)]
surplus semicolon on if statement
miod [Sat, 23 Aug 2008 22:57:11 +0000 (22:57 +0000)]
Slight speed improvement by using byte accesses on word boundaries for all
frame buffer memory operations, instead of word access on word boundaries.
miod [Sat, 23 Aug 2008 12:40:22 +0000 (12:40 +0000)]
Pick the correct host adapter id from nvram.
chl [Sat, 23 Aug 2008 10:08:02 +0000 (10:08 +0000)]
add missing header needed by asprintf().
ok otto@ deraadt@
djm [Sat, 23 Aug 2008 07:51:35 +0000 (07:51 +0000)]
make mbstowcs(NULL, string, 0) correctly return the length of the
wchar_t string needed to represent "string", which in our case
is just strlen(string); feedback & "looks right" deraadt@
djm [Sat, 23 Aug 2008 07:49:38 +0000 (07:49 +0000)]
unbreak MALLOC_OPTIONS=G that I broke in my last commit;
slightly kludgey solution for until otto fixes it properly; ok otto@
jmc [Sat, 23 Aug 2008 07:24:06 +0000 (07:24 +0000)]
- document -h
- (re)organise the page a little
- zap second "usage:" string from usage()
jmc [Sat, 23 Aug 2008 07:08:06 +0000 (07:08 +0000)]
ufs -> UFS;
jmc [Sat, 23 Aug 2008 07:05:40 +0000 (07:05 +0000)]
it's no longer necessary to build crunch by hand, so adjust the
release instructions accordingly;
djm [Sat, 23 Aug 2008 06:15:16 +0000 (06:15 +0000)]
fix calloc() for MALLOC_OPTIONS=J case: SOME_JUNK was being filled into
the freshly mmaped pages disrupting their pure zeroness;
ok otto@ deraadt@
djm [Sat, 23 Aug 2008 05:34:36 +0000 (05:34 +0000)]
unbreak wcschr(string, L'\0') which was incorrectly returning NULL
rather than a pointer to the terminating nul; ok deraadt@
otto [Fri, 22 Aug 2008 21:25:10 +0000 (21:25 +0000)]
make sure we always map and unmap multiples of MALLOC_PAGESIZE;
case spotted by beck, one by me; ok deraadt@ beck@
miod [Fri, 22 Aug 2008 21:05:04 +0000 (21:05 +0000)]
Let lkms(4) support VSXXX-AB tablets in addition to the mice it already
supports, based on appendix C and D of the VCB02 (qdss) technical manual.
Also parse the selftest results and report device errors.
Not tested on actual tablet due to the lack of any; mouse operation is not
disturbed.
deraadt [Fri, 22 Aug 2008 19:58:21 +0000 (19:58 +0000)]
a ; in a bad place; dragonfly; ok mglocker
otto [Fri, 22 Aug 2008 17:14:56 +0000 (17:14 +0000)]
Smarter implementation of calloc(3), which uses the fact that mmap(2)
returns zero filled pages; remember to replace this function as well if you
provide your own malloc implementation; ok djm@ deraadt@
deraadt [Fri, 22 Aug 2008 17:09:06 +0000 (17:09 +0000)]
Instead of spewing error messages about link status, support link status
like all drivers should
ok miod
deraadt [Fri, 22 Aug 2008 16:09:32 +0000 (16:09 +0000)]
sync
deraadt [Fri, 22 Aug 2008 16:08:12 +0000 (16:08 +0000)]
make it section 8
deraadt [Fri, 22 Aug 2008 16:01:00 +0000 (16:01 +0000)]
more crunch stuff goes away
deraadt [Fri, 22 Aug 2008 15:52:33 +0000 (15:52 +0000)]
No need to enter crunch
deraadt [Fri, 22 Aug 2008 15:49:35 +0000 (15:49 +0000)]
mksuncd lives in the base now, and one does not need to go do fiddly
things in distrib before building snaps or cds of any kind, any more.
deraadt [Fri, 22 Aug 2008 15:48:32 +0000 (15:48 +0000)]
move mksuncd to here (but still only sparc64 build)
deraadt [Fri, 22 Aug 2008 15:38:37 +0000 (15:38 +0000)]
merge crunchide into crunchgen as the -h flag. this is not yet done the
nicest way since there is lot of code that has to churn, but it works.
deraadt [Fri, 22 Aug 2008 15:18:54 +0000 (15:18 +0000)]
Merge crunchgen & crunchhide (using name checking), and move to usr.sbin
next step is to not install it as two programs, but be even more clever