summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-06-16replace min() and max() function calls by MIN() and MAX().Damien Bergamini
MIN() and MAX() are macros that can evaluate their arguments twice but it is safe in this context. following a post from miod@ about the harmfulness of min() and max() in the kernel.
2008-06-15typoMiod Vallat
2008-06-15expand the quirk framework to enable device class matchYojiro Uo
ok deraadt@
2008-06-15One more printf -> DPRINTF in the USB xfer callback.Marcus Glocker
2008-06-15Make frame queueing reliable by setting tsleep() priorities to 0.Marcus Glocker
2008-06-15Don't see rx_abs_int_delay if rx_int_delay is not set. SettingTodd C. Miller
rx_abs_int_delay to be non-zero when rx_int_delay is zero appears to trigger a bug elsewhere in the kernel for certain em revisions. Based on a diff from beck@. OK beck@ marco@ henning@ brad@
2008-06-15Move noisy frame queueing debug messages up to debug level 2.Marcus Glocker
2008-06-15On AMD64 running on Intel processors with EST add support for retreivingGordon Willem Klok
operating points from ACPI. In support of this add evaluation of the _PDC object and give it the capability flags asserting OSPM management of CPU power states. ok marco@, canacar@
2008-06-15if we are trying to attach to ehci(4) notify the user to disable itRobert Nagy
because it does not support isochronous transfers yet. we hope that we can remove this as soon as possible. discussed with deraadt@
2008-06-15Don't bypass partition bounds check for RAW_PART. We now guarantee thatKenneth R Westerback
RAW_PART will always be 0 -> disksize, so the bounds check will always pass for i/o's to valid addresses. Now the i/o will be properly truncated if it goes past the end of the device. This prevents various adverse impacts of issuing i/o's for data past the end of the device. Repeatedly requested by todd@. ok weingart@ deraadt@
2008-06-14Fixed evil recursion depth for ASUS EEEPC, uses less memory tooJordan Hargrave
ok @marco
2008-06-14Provide a status field for operations on the bc_opaque data. Now we'reHans-Joerg Hoexer
able to distinguish cleanly an failing ioctl (ie. return value -1) from trying to retrieve a KDF hint from a not yet initialized volume. ok marco djm
2008-06-14Teach acpiasus(4) about some more events. Whilst we're here bzero the cmdJoel Sing
structs and sprinkle some aml_freevalue() (diff initially from deanna@). ok marco@
2008-06-14id tag.Federico G. Schwindt
2008-06-14A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)Michael Knudsen
conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
2008-06-14Use the bus_size_t in the ath_softc.Joel Sing
ok jsg@
2008-06-14Use multiple crypto keys per volume. Each key is used to encrypt atDamien Miller
most 0.5TB of disk. This is well below P1619-2007's recommendation for AES-XTS of 1TB/key, but small enough so we can test that we actually use multiple keys with inexpensive hardware. We allocate 32 keys, so this will do for volumes up to 16TB. Fix a crypto session leak in sr_crypto_free_resources() much debugging help mshoexer@; ok hshoexer@ marco@
2008-06-14remove #ifdef __macppc__ due to a misunderstanding:Todd T. Fries
- the wskbd/wsmouse is not phantom, but actually is pre-paired keyboard/mice talking wskbd/wsmouse to the os this permits the bluetooth device to attach as wskbd/wsmouse using bluetooth keyboards for ddb> and in general if you have paired them in an os that supports flipping the funny bluetooth device into full bluetooth mode ok drahn@
2008-06-14Allow ath(4) to detach cleanly when attaching via PCI. AlsoJoel Sing
complete/cleanup the attachment cleanup code. ok reyk@ jsg@
2008-06-14remove duplicate #defines; ok hshoexer@Damien Miller
2008-06-14Update bioctl(8) and softraid(4) to recent changes and enable softraidHans-Joerg Hoexer
crypto. It's still considered experimental! ok djm marco
2008-06-14implement a check code to determine whether the disk keys haveDamien Miller
been correctly decrypted using the masking key. The check code is a HMAC-SHA1 over the disk keys using a hash of the masking key. It should be slow enough to provide no useful brute force success oracle and should not leak significant data about the masking key or disk keys. ok hshoexer@ marco@
2008-06-13Add support for fiber PHY on bge(4) (BCM5714/BCM5780) andBrad Smith
bnx(4) (BCM5706/BCM5708) adapters. Thanks to Balázs Nagy <bnagy at thenewpush dot com> for providing remote access to a Inventec IB4220 blade with fiber BCM5780 interfaces and David Christensen at Broadcom for providing BCM5708 2.5Gbps adapters. Tested with various existing copper adapters and the above mentioned adapters. Some inspiration from similar changes to FreeBSD's brgphy(4) driver.
2008-06-13make the disk key masking algorithm a parameter and add some extraDamien Miller
reserved space in case we ever want to support a different scheme ok hshoexer@ marco@
2008-06-13fix compilation with BNX_DEBUG.Brad Smith
2008-06-13Implement pbkdf2 in in bioctl to derive master key from a passphrase.Hans-Joerg Hoexer
ok marco djm
2008-06-13rearrange on-disk structures to the top of the file, wrap kernel-onlyDamien Miller
parts in #ifdef _KERNEL; makes softraidvar.h usable from userland ok hshoexer@
2008-06-13When assembling an already initialized crytpo softraid, correctly copy inHans-Joerg Hoexer
mask key from userland. Thus, modify sr_crypto_get_kdf() do correclty handle copying kdf hint and/or mask key. While there, remove superflous sr_read_meta(). ok marco djm
2008-06-13Remove DEBUG #undef's we can turn it on/off in GENERIC like for allMarcus Glocker
other drivers.
2008-06-13Restore IDE_PCI_CLASS_OVERRIDE on SiI3512 SATA.Mats O Jansson
On socppc it has the subclass PCI_SUBCLASS_MASS_STORAGE_MISC so without the quirk socppc will not find its disk. -moj
2008-06-13Fixed acpiec driver, _REG method required sc_ec member set before being calledJordan Hargrave
ok @marco
2008-06-13properly indent something horridly misleadingTheo de Raadt
2008-06-13Initialize the return value in pci_probe_device() function, so that we doTheo de Raadt
not randomly skip probing for devices after a missing device. ok kettenis
2008-06-13Remove slack space for RX/TX chains since it only covers sloppy coding.Brad Smith
From davidch @ FreeBSD
2008-06-13If you have #if FOO > 0 parts of your softc beJonathan Gray
sure to #include "foo.h" in all code that uses the softc, otherwise some object files will have a different idea of how big the softc struct is. This will result in things like part of the softc, say the interrupt handler being overridden by other data. Putting printfs in the main object file will look fine as it has the right idea as to what the size is. It is only after several hours debugging that you start to figure out what the hell is going on. jsing started trying to figure out the problem and got hints from kettenis that it likely wasn't an interrupt problem, after quite a bit of head scratching with joel I eventually spotted the problem. ok reyk@ jsing@
2008-06-13Remove duplicate function for string to integer conversion. ok jordan@Can Erkin Acar
2008-06-13Properly handle battery insertion/removalJordan Hargrave
ok @marco
2008-06-13D-Link DWA-111, from kevlo via FreeBSD.Jonathan Gray
2008-06-13Add myself to the copyright since i fumbled around in those files, too.Marcus Glocker
OK robert@
2008-06-13regenJonathan Gray
2008-06-13D-Link DWA-111 from kevlo via FreeBSD.Jonathan Gray
2008-06-13Merge show_scsi_xs() and show_scsi_cmd() and move invocation so theKenneth R Westerback
debug output shows the xs/command before it's issued rather than displaying it on command completion. Some commands don't come back and it would be nice to see their details. While here nuke invocations of scsi_show* in umass. If you want SCSI debug output use SCSI debug options. Only affects SCSI debug output. ok marco@
2008-06-13Make kbd -l work for adb. -mojMats O Jansson
2008-06-13Cleanup for aml_xcreatefield, added flags argumentJordan Hargrave
ok @canacar
2008-06-13Cleanup, remove old/unused functionsJordan Hargrave
ok @canacaR
2008-06-12make sure to check that a crypto volume is not yet assembled whenHans-Joerg Hoexer
retrieving the kdf blobb. Pointed out by marco. while there, use %lld instead of %d when printing b_blkno, which daddr64_t. ok marco
2008-06-12Poll AC because there are some crappy machines out there that need it.Marco Peereboom
2008-06-12disable debug printfs and descriptor dumpsRobert Nagy
2008-06-12Clead discipline pointer after delete. Found by hshoexerMarco Peereboom
2008-06-12Wrap DPRINTF around #ifdef VIDEO_DEBUG, but leave debugging on byMarcus Glocker
default for now.