summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-08-28This file was meant to be removed with the last commit, it's now emptyOwain Ainsworth
and unused.
2008-08-28replace usage of drm_memrange with extent(9). No functional change, butOwain Ainsworth
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!
2008-08-27Remove a redundant define for RL_CFG2 and remove an incorrect comment.Brad Smith
2008-08-27syncTheo de Raadt
2008-08-27another upsTheo de Raadt
2008-08-27Some __packed cleanup; Remove another obsolete pack from a none-hardwareMarcus Glocker
struct and pack all other hardware structs which have been forgotten.
2008-08-27move definitions of channels attributes away from ieee80211.h suchDamien Bergamini
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.
2008-08-27pass FCS to radiotap.Damien Bergamini
2008-08-27fix IEEE80211_RADIOTAP_F_SHORTPREDamien Bergamini
2008-08-27another IEEE80211_RADIOTAP_F_FCS candidate.Damien Bergamini
2008-08-27add IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.Damien Bergamini
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@
2008-08-27hardware may pass us ACK or CTS frames in some cases, so useDamien Bergamini
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.
2008-08-27the firmware is responsible for sending management frames, butDamien Bergamini
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).
2008-08-27override net80211's ic_node_alloc function to allocate a fullDamien Bergamini
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@
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
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.
2008-08-27Fix length check when parsing PPPoE discovery phase packets.Brad Smith
Malicious PPPoE discovery packets could cause the kernel to crash. From canacar@ and inspired by the original fix from NetBSD. ok canacar@
2008-08-27delete unused pragma ident junkTheo de Raadt
2008-08-26another ups to knock out of being a uhidTheo de Raadt
2008-08-26syncTheo de Raadt
2008-08-26new devsTheo de Raadt
2008-08-26Fix alignment panic on sparc64 by removing a wrong __packed. WhileMarcus Glocker
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
2008-08-26Fix a couple of problems that may make gem(4) get stuck:Mark Kettenis
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@
2008-08-26Stylus pressure sensor is active low, so invert the logic converting itMiod Vallat
to button #5.
2008-08-26Better strategy to single out onboard bge(4)'s on sparc64 machines.Mark Kettenis
ok deraadt@
2008-08-26When using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.Miod Vallat
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.
2008-08-26Plug potential memory leak.Mark Kettenis
"looks sane to me" otto@, ok miod@
2008-08-26we need to call pf_pkt_addr_changed here too. found by davidHenning Brauer
2008-08-26call pf_pkt_addr_changed instead of manually clearing the pf state key ptrHenning Brauer
2008-08-26introduce a function to be called when addressing information has changed,Henning Brauer
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.
2008-08-26Update comment to mention the 8211C.Brad Smith
2008-08-26regenBrad Smith
2008-08-26Add the PCI id for the Broadcom BCM5785 Ethernet controller.Brad Smith
2008-08-25two spelling fixes from Anathae Townsend;Jason McIntyre
2008-08-25- add a bunch of enabled usb devices that have been tested.Jasper Lievisse Adriaanse
together with the previous commits by jsing@, OpenBSD/sgi does USB now. ok jsing@ miod@
2008-08-25Make sgivol(8) use the device sector size for reads and writes. This allowsJoel Sing
us to use sgivol on devices which have a sector size != DEV_BSIZE, such as a CD drive. ok miod@ krw@
2008-08-25Add bus_space_read_raw_region_* and bus_space_write_raw_region_* bus spaceJoel Sing
accessors to OpenBSD/sgi. ok miod@
2008-08-25Add device majors for USB character devices in OpenBSD/sgi.Joel Sing
ok miod@ jasper@
2008-08-25Unbreak.Joel Sing
ok miod@
2008-08-25If partoffp is non-NULL then readdoslabel() is just looking for theKenneth R Westerback
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@
2008-08-25Correctly invalidate attribute cache entries in case the vnode modePedro Martelletto
changes, okay beck@, tedu@ and thib@.
2008-08-25how about i commit what was actually approved? wrong tree, bad todd ;-(Todd T. Fries
2008-08-24o implement proper volume control table based on chipset docsTodd T. Fries
o attempt to make record work (but silence for now) from drahn@, ok maja@, drahn@
2008-08-24Tadpole Viper onboard ethernet has no eeprom either, but the PROM entryTheo de Raadt
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
2008-08-24many more devices for the RAMDISKTheo de Raadt
2008-08-24Define a proper wsdisplay type for legss(4).Miod Vallat
2008-08-24Get VIDIOC_G_FMT working (makes ekiga happy).Marcus Glocker
2008-08-24Correct eisa i/o ports layout structure, this has probably been brokenMiod Vallat
when switching from gcc 2.95, if not forever.
2008-08-24proper indentTheo de Raadt
2008-08-24vsbus machines also have modem control bits on line #2, no need to fake them.Miod Vallat
2008-08-24Writing to the DTR register on KA60 resets the TCR register behind our back.Miod Vallat
Preserve it explicitely in dzmctl() and restore it after the DTR update. (This problem was a real PITA to track down)