summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-08-08syncReyk Floeter
2008-08-08add eMPIA Technology EeePC 701 camera (currently unsupported uvideo(4)Reyk Floeter
device)
2008-08-08'prey' -> 'pray' in comment as prayer rather than predation seemsKenneth R Westerback
the intended meaning.
2008-08-06Backout the acpicpu_setpdc code and the code to allow est to use acpicpuGordon Willem Klok
on amd64. Evaluating the _PDC seems to lead to instability (PR5878 and a report by jmc@) on lower end machines its too close to release and I don't have enough nickels. ok deraadt@
2008-08-05Fix spurious 0 values on batteries seen on laptopts that have an embeddedMarco Peereboom
controller. Found, diagnosed and patch from Stefan Sperling <stsp@stsp.name> Minor KNF changes while here. Tested by many on a variaty of IBM laptops and others with and without acpiec. ok deraadt
2008-08-05Add support for reading the MAC address for newer re(4) chipsets.Brad Smith
The current method results in a MAC address of all zeros. Tested by bernd@/jcs@ with 8102E and fkr@ with 8168C. From FreeBSD ok jsg@
2008-08-03revert part of rev. 1.65 where we set the address earlier. this seemsFederico G. Schwindt
to cause issues as per netbsd pr/39023. deraadt@ yuo@ ok.
2008-08-02Use correct terms as in the specs;Marcus Glocker
"fragment" gets replaced by "sample". "sample" gets replaced by "frame". A sample is a peace of a frame (final image). No functional changes. OK deraadt@
2008-08-02Better wording for a comment.Marcus Glocker
2008-08-02Spacing, sorting, and remove an unused prototype.Marcus Glocker
2008-08-02Woops, remove #undef which was committed by mistake.Marcus Glocker
2008-08-02Don't print error message if GET_DEF request fails, since this is commonMarcus Glocker
for some devices and we will fail back to GET_CUR then.
2008-08-02Make the drm attach messages a lot prettier.Owain Ainsworth
the DRM_{INFO,ERROR,DEBUG} printf macros still need some __VA_ARGS__ love. reyk@ and marco@ liked this, prompted by deraadt.
2008-08-02make the drm unsupported printf more in line with how the rest of themOwain Ainsworth
work. ok deraadt@
2008-08-02If a format descriptor doesn't contain any frame descriptors even if itMarcus Glocker
claims to (as seen on the M$ LifeCam NX6000), abort further processing. Safes us from potential NULL pointer derefs.
2008-08-02Fix typo. Reported by Maxim Belooussov.Marcus Glocker
2008-08-01- Use defined return values wherever possible instead inventingMarcus Glocker
custom ones. - Define functions which use USB return values with usbd_status instead int. - Define functions which always return 0 with void instead int. - (void) function calls which don't check the return code.
2008-08-01If no format descriptors have been found, abort attachment. Adjust someMarcus Glocker
DPRINTF and printf messages while here.
2008-07-31Wait much longer for clock stabilization.Damien Bergamini
From jcs@ and in accordance with what the Intel Linux driver does.
2008-07-31- Don't relay on bFormatIndex as an internal array index, since thisMarcus Glocker
field is unreliable and can start with any number. Use an own internal array index instead. - If the read buffer is too small, return a propper error to the calling functions. Just check the buffer size if we use the read(2) method since it doesn't affect mmap(2). Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal (laptop) Sonix chipsets. Tested by jcs@ (Sonix) and myself (NX-6000). OK deraadt@
2008-07-30Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args;Miod Vallat
ok deraadt@
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-30Check and clear the bus space mapping size instead of the bus spaceBrad Smith
handle in the detach function. Fixes compilation on sparc64. ok reyk@
2008-07-30syncTheo de Raadt
2008-07-30repair commentTheo de Raadt
2008-07-30syncTheo de Raadt
2008-07-30add 2nd sierra MC5725 correctlyTheo de Raadt
2008-07-30Add an alternate ID for Sierra Wireless MC5725 modem, foundCan Erkin Acar
in a Lenovo T60, reported by Juan Delgado. ok you@, jsg@ deraadt@
2008-07-30spacingReyk Floeter
2008-07-30Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tablesReyk Floeter
with different versions for various ar5212 variants and add an extra table for PCI-E devices. This fixes support for various newer devices (like the 1st generation MacBook, T61 variants) but it still does not work on a number of other devices. Tested by many ok deraadt@
2008-07-30Free the correct buffer list on failure.Damien Bergamini
From Andrew Thompson at FreeBSD.
2008-07-30fix up a few free -> drm_free() cases that were missed before.Owain Ainsworth
2008-07-29Update to DRM git.Owain Ainsworth
Some stability fixes for radeon. The most part of this diff is related to fixing up the VBLANK (vertical blank interrupt) handling. Now, if the X driver supports the DRM_IOCTL_MODESET_CTL ioctl, (to be used when changing the video modes), then allow the vblank to be disabled once that ioctl has been called. Otherwise, keep the interrupt enabled at all time, since disabling it otherwise will lead to problems. Tested by a few. "no problem" on API/ABI deraadt@.
2008-07-29In ahc_free(), which is invoked if attachment fails, do not free()Miod Vallat
pointers we don't own, but the autoconf machinery does.
2008-07-29Add an ugly hack to disable DMA on the Tadpole SPARCLE laptop. It doesn'tMark Kettenis
work and this way we fall back on PIO which does work. I'm pretty sure this is caused by bugs in our code, but I cannot find them. ok deraadt@, marco@
2008-07-29Switch all instances of malloc/free in the DRM to drm_alloc, drm_freeOwain Ainsworth
and drm_calloc. With the recent change to check overflow in drm_calloc, this means that all allocations that require multiplication are now checked. Also use drm_calloc() when zeroing is needed and drop the bzero/memset afterwards. Finally, make drm_free() check for NULL, so we don't need to do so every time. ok miod@, deraadt@
2008-07-29Stricter bounds checking for values controlling loops or memory allocations,Miod Vallat
which may come from userland via ioctls. ok oga@
2008-07-29Check for multiplication overflow in drm_calloc(). ok oga@Miod Vallat
2008-07-29The stream header length and flags field are uint8_t not int.Marcus Glocker
2008-07-29check for m_devget() returning NULL, increment ierror countThordur I. Bjornsson
and just return; OK mglocker@
2008-07-29When paused (or overrun), the record ring pointers are not incrementedAlexandre Ratchov
properly in audio_rint(), the periodic boundary conditions aren't met. This causes, later read(2) to return EFAULT while trying to access unmapped regions of the kernel address space. Fix this by using the correct pointer arithmetic. ok jakemsr@
2008-07-29Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), basedMiod Vallat
on an attachment dependent flag; the Tadople SPARCLE needs it. ok kettenis@ deraadt@
2008-07-29Add rebuild mark so that we can restart a rebuild upon clean shutdown.Marco Peereboom
Fix a typo while here. The rebuild field was appended to the metadata so that we can automatically update from v2 to v3. The only visible difference will be that in the dmesg the SCSI version number will go from 002 to 003. ok deraad.
2008-07-29- fix FIFO overruns on PCI-E chipsets by setting the DMA sizeReyk Floeter
RX/TX configuration registers to 128 instead of 512 bytes. - add a few more MAC/RF id strings for the dmesg. - check for PCI-E instead of single chip variants in a few places. ok deraadt@
2008-07-28When getting the string descriptors, fetch 2 bytes (size and type) first,Federico G. Schwindt
and then the whole string based on the returned size, not just one byte. The Lexar card reader kindly loaned by Denis Doroshenko (denis dot doroshenko at gmail.com) it's happy now, and after further inspection it's what other OSs do. Discussed with yuo@. krw@ yuo@ ok.
2008-07-28syncReyk Floeter
2008-07-28revert AR5416 PCIE to AR5418, the product description is clear aboutReyk Floeter
it while atheros' driver says something wrong (even if it is technically correct). also rename AR9280 PCIE to AR9281 (guessed). triggered by kettenis@
2008-07-28regenMark Kettenis
2008-07-28Name PLX PEX devices a bit more consistently, and keep them sorted inMark Kettenis
numerical order.
2008-07-28regenJonathan Gray