summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-10-03syncTheo de Raadt
2008-10-03Return ENOTTY for unknown ioctl's.Brad Smith
2008-10-03Return ENOTTY for unknown ioctl's.Brad Smith
2008-10-03Merge xe_ether_ioctl() into xe_ioctl() which was just a handler forBrad Smith
SIOCSIFADDR, now this looks like every other driver. Also return ENOTTY for unknown ioctl's. Reduces i386 GENERIC by 112 bytes.
2008-10-03Remove a few small ifdef/ifndef OpenBSD sections which contained someBrad Smith
NetBSD code.
2008-10-03KNF.Brad Smith
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-10-02according to the alsa driver for these devices, the hardware providesJacob Meuser
256 buffer descriptors, and the 256th descriptor is flakey. this driver uses one descriptor for each block of the buffer, so we need to make sure buffer size / block size < 256, or we will run out of usable descriptors. lets me play youtube videos via gnash on my auvia equipped machine. ok ratchov@
2008-10-02backout Tadpole specific non-dma workaround commited in 1.287, since itTheo de Raadt
appears the machine Mark got had a disk which failed very soon after that ok kettenis
2008-10-02Add the IBM 4810 ("SurePOS 300 Series") SCC to support the four additionalMarc Balmer
serial ports.
2008-10-02sync.Marc Balmer
2008-10-02Add IDs for the IBM 4810 BSP (Base System Peripherals) and SCC (SimpleMarc Balmer
Communications Controller) found on IBM SurePOS 300 series.
2008-10-01The display cycle key generates two ACPI events, so catch bothRobert Nagy
from jsign@ Change the camel capitalized key defines to full capitals, and add some keys found on the eeepc 1000H ok marco@
2008-09-30check all luns on sas boards to see if the device is atapi instead of justDavid Gwynne
the first one.
2008-09-30provide a scsi probe hook that checks if an atapi device is plugged intoDavid Gwynne
sas mpi variants. this lets the midlayer know it should send the right sized commands to the device. this will make the cd drive work on the sun enterprise m4000 and related machines. reported by James Hsieh at sun.
2008-09-30add support for handling extended configuration page requests. the sasDavid Gwynne
pages are all extended, which is annoying.
2008-09-30describe the extended configuration header and the sas device config pageDavid Gwynne
0.
2008-09-30style nits.Brad Smith
2008-09-30straighten the deck chairs slightlyDavid Gwynne
2008-09-29Put back the ``address'' field to struct drm_buf, this allows machdrm toOwain Ainsworth
actually compile again (no one's tested it yet, still and I don't have one).
2008-09-29Fix mmap to always return the right value in the error path. While i'mOwain Ainsworth
here rework it a little bit to remove a shadowed variable.
2008-09-29always need the vlan includes; ok jsgTheo de Raadt
2008-09-29syncTheo de Raadt
2008-09-29Support another ne(4) at pcmcia(4), pr5940 from Kamo HiroyasuTheo de Raadt
2008-09-29back out previous commit, since it is breaking a variety of machinesTheo de Raadt
(Supermicro X5DLR, and seperately, see pr 5941)
2008-09-29account for data expansion due to emulation in AUDIO_GET{I,O}OFFSJacob Meuser
ioctls. ok ratchov@
2008-09-28Update 12160 firmware: 10.04.32 -> 10.04.41. From mjacob via FreeBSD.Kenneth R Westerback
Tested & ok kettenis@
2008-09-27remove a debug printf that is no longer requiredJonathan Gray
2008-09-26Attach agp(4) to the Intel Q35 integrated video.Mike Belopuhov
Tested on ASUS P5E-VM DO motherboard. ok oga
2008-09-26Add drivers for the JMicron JMC250/JMC260 Ethernet controllersJonathan Gray
and JMicron JMP202/JMP211 Ethernet PHYs. Written by Pyun YongHyeon for FreeBSD, ported to DragonFlyBSD by Sepherosa Ziehau and then ported to OpenBSD by me. Thanks once again to JMicron for supplying hardware and information which made this possible. Some cleanup still needs to be done, and checksum offload needs to be sorted out, but the driver otherwise seems to work great. Comitted over a JMC250 card.
2008-09-25regenBrad Smith
2008-09-25Add the id for the Atheros F2 PHY.Brad Smith
2008-09-25Add a driver for the Attansic F1 PHY.Brad Smith
From FreeBSD via kevlo@
2008-09-25Fixed memory leak bug during scope evaluationJordan Hargrave
Removed unused functions ok marco@
2008-09-25remove dead stores.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok jakemsr@
2008-09-25remove dead stores and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok brad@
2008-09-25remove dead store.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok brad@ krw@
2008-09-25remove dead store.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok claudio@
2008-09-25Initialize 'ssc' to NULL since we test it later. Shouldn't ever beKenneth R Westerback
NULL at the point of test unless the device list is confused, but be consistantly paranoid if we're going to be paranoid.
2008-09-25Add 'default:' stanza to switch() to make clear that 'status' is alwaysKenneth R Westerback
initialized. From NetBSD. "won't hurt" miod@.
2008-09-25Initialize 'capacity' to 0 and use tabs to indent. "won't hurt" miod@.Kenneth R Westerback
2008-09-24remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ brad@
2008-09-24remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok ratchov@
2008-09-24Fix a vr(4) panic that occurs under high load.Marco Pfatschbacher
If the RX path runs into an out of mbuf scenario, the code will leave the RX chain with a NULL'd mbuf-slot. We now always reassign a valid mbuf, even if m_devget() fails. OK brad@, thib@
2008-09-23syncCan Erkin Acar
2008-09-23Add IDs for Philips SNU6500 to uath(4) ok damien@Can Erkin Acar
2008-09-23Rewrite two small sections of code in bge_blockinit() to simplify theBrad Smith
code. No functional change. ok krw@
2008-09-22ignore a type 6 event seen on my x200 when the ac adapter isjoshua stein
plugged in and removed
2008-09-22regenBrad Smith
2008-09-22Fix a typo.Brad Smith