summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-10-03MALLOC+bzero -> malloc+M_ZERO.Kenneth R Westerback
In ip_esp.c all allocated memory is now zero'd in the "malloc(sizeof(*tc) + alen ..." case. The +alen memory was not initialized by the bzero() call. Noticed by chl@. "Looks good" art@ "seems ok" chl@
2007-10-03Add pcb_flags member to 'struct pcb', and set PCB_SAVECTX on contexts savedMark Kettenis
by savectx(). ok art@, miod@
2007-10-02add initial support for the Marvell PCIe Yukon FE+ Fast Ethernet chipsets.Brad Smith
Inspired by similar changes to the Linux sky2 driver. Tested by dunceor, Schoeberle Daniel, moritz@ and brad@ on existing known working adapters. These chipsets are not actually available in hardware yet. ok dlg@
2007-10-02In vr_attach() only touch the VR_STICKHW register if the adapterBrad Smith
is found to have PCI power management capability. It has been found that unconditionally touching this register with the original VIA Rhine chipset, which does not have power management capability, and due to the shorter width of the IO addess space, it is possible for the vr(4) driver to do bad things with hw with IO address space adjacent to a vr(4) adapter. Tested by a few users, brad@ and jmc@. ok dlg@
2007-10-02regenBrad Smith
2007-10-02add new Intel E1000 and 10Gb PCIe PCI ids.Brad Smith
Most of the ids were from FreeBSD though the quad port blade id came from the Linux E1000 driver. ok dlg@
2007-10-02Fiddle Sun traditional disklabel recognition to eliminate union andKenneth R Westerback
associated field access defines. This reverts most changes to dev/sun/disklabel.h without eliminating new functionality. Fix comments to line up and fit on 80 column line, making both tsi@ and I feel better. Simplify logic in disksubr.c. No semantic change. Tested & ok tsi@.
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2007-10-01Spacing.Marcus Glocker
2007-10-01Fix `bogus xmit rate setup' panic, which mostly happened while associatingMarcus Glocker
to an 11b AP due to not correct initialized tx rates.
2007-10-01Last of the really easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'Kenneth R Westerback
where obvious.
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-10-01remove rate_fb variable as it always gets set to the same valueJonathan Gray
as rate anyway.
2007-10-01Print the MAC address.Jonathan Gray
2007-10-01Disable default debug setting, make tx power map printing debug only.Jonathan Gray
2007-10-01more btoc -> atopMartin Reindl
2007-10-01Use uint_* consistent.Marcus Glocker
Agreed with jsg@
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'.Kenneth R Westerback
2007-09-30Spacing.Marcus Glocker
2007-09-30Shows the real size of a register in the hex define.Marcus Glocker
OK jsg@
2007-09-30Don't count interrupts with state "not of interest".Marcus Glocker
From Oleg Safiullin. OK jsg@
2007-09-30Move intrpending array into 'struct cpu_info'.Mark Kettenis
2007-09-30Add support for the high-resulution timer found in the GPS170PCI card.Marc Balmer
Thanks for otto@ for looking at the time calculations
2007-09-30On i386, only call amd64_errata() on amd64 processors (family 0xf),Gordon Willem Klok
tested by krw@. This diff by itself is insufficient to ensure that we are only running on an amd64: todd@'s machine is a mobile Athlon XP that has a cpuid family of 0xf but is not an amd64 processor so more must be done but this should prevent the vast majority of cases. ok tom@
2007-09-30BWI_BBP_ATTEN is a 16-bit register, so use CSR_WRITE_2 to access it.Mark Kettenis
Fixes unaligned access on strict-alignment architectures. ok mglocker@
2007-09-30s/NPBFILTER/NBPFILTER/ in #endif comment. No functional change.Mark Kettenis
2007-09-30Enable Broadcom wireless, bwi(4).Jonathan Gray
If people testing could send mail to mglocker and myself we'd appreciate it. ok mglocker@
2007-09-29Fix two panic's on macppc. Allows me first network communication overMarcus Glocker
my PowerBook G4 internal BCM4306 device.
2007-09-29At the requst of deraadt@, backpout the temporary hack for pcc.Otto Moerbeek
Paraphrasing, "make it clear this should be fixed in pcc asap".
2007-09-29Add first part of queue magic to attach.Marco Peereboom
2007-09-29make safe vnds work on block devices.Felix Kronlage
from Piotr Durlej, tested by henning@, krw@, thib@ and myself ok thib@, grunk@, krw@
2007-09-28no longer used macrosJacob Meuser
spotted by brad ok ratchov
2007-09-27Add loginterface support for groups.Marco Pfatschbacher
Using a group sums up the statistics of all members. Modify pfctl(1) slightly to allow a groupname "all", which gives us an overall pf(4) statistic. OK henning@, markus@
2007-09-27Spacing.Marcus Glocker
2007-09-27Add automatic rate control (AMRR).Marcus Glocker
2007-09-27Spacing.Marcus Glocker
2007-09-27M_ZERO changesCharles Longeau
ok dlg@
2007-09-27Kill __BIT* macros.Marcus Glocker
Help and OK jsg@
2007-09-26nfsm_uiotom macro does nothing but hide error-handling code; replaceBret Lambert
inline in the one place that it's called ok thib@, weingart@ "I don't see why not" fgsch@
2007-09-26ep(4) is totally weird. due to hardware design limitations it playsHenning Brauer
wierd games with caching mbufs. as part of that it used regular mbufs and makes them M_PKTHDR mbufs on the fly, instead of calling m_gethdr. of course it did it hackish and wrong and did not properly initialize the pkthdr fields, which stated to cause problems as soon as we started to stuff more into the packet header. so use the freshly introduced m_inithdr() to make the mbuf a pktdr mbuf. problem found + analyzed by janjaap@stack.nl PR5563, input theo, ok claudio
2007-09-26provide m_inithdr(), which takes an mbuf and gives an initialized M_PKTHDRHenning Brauer
mbuf back. for fixing PR5563 in a few, tested janjaap@stack.nl, ok claudio
2007-09-26regenDeanna Phillips
2007-09-26Add Sigmatel to vendors.Deanna Phillips
ok brad, dlg.
2007-09-26Clean up STAC7661 codec: sort mixer items, add prev and next pointersDeanna Phillips
for master, remove useless pin direction calls, add mixer item for mic boost, remove useless item for the volume knob.
2007-09-25Handle incoming protocol reject packets now that we haveCan Erkin Acar
more than one protocol. From FreeBSD, reported and tested by jmc@
2007-09-25fix emulated encodingsAlexandre Ratchov
ok jakemsr@
2007-09-25Upgrade the firmware to version SNIC 0xf.David Gwynne
Here's the issue this fixes: Problem description: Tehuti NIC generated RxD descriptor with UDP checksum error bit raised for incoming UDP packet with UDP checksum field value zero. This behavior is not in accordance with UDP RFC which defines that packets with zero UDP checksum should not be verified by receiver. Solution description: Never raise RxD UDP checksum error bit raised for incoming UDP packet with UDP checksum field value zero. Many thanks to Alexander Indenbaum and the rest of Tehuti generally for notifying us and providing the new firmware under the same license as the previous revision.
2007-09-24updatecomment and manpage toemtion optional seventh level (rtable id)Henning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-24Ooops, i386 entry was enabled by mistake. Disable it. Sorry.Marcus Glocker