summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2009-08-13set ITSDONE on the xs before calling scsi_done()David Gwynne
2009-08-12Add wake support to acpihpet(4).Paul Irofti
Patch initially from mlarkin@. KNF and refactoring by me. Okay deraadt@.
2009-08-12Optimize Syndrome calculation, 30% speedup on writesJordan Hargrave
ok marco@
2009-08-12only pull in the source file if it is needed, so that all the othersTheo de Raadt
we use compile brilliant cnst, please learn to test better
2009-08-12revert my change to m_cluncount which tries to prevent the systemDavid Gwynne
running out of mbufs for rx rings. if the system low watermark is lower than a rx rings low watermark, we'll never send a packet up the stack, we'll always recycle it. found by thib@ on a bge sadface
2009-08-12Let this work with C99 compilers that do not define __GNUC__Jonathan Gray
ok niklas@
2009-08-12Mark sensor as invalid if the i2c transaction to read its value fails.Mark Kettenis
ok deraadt@
2009-08-12ix currently relies on a gcc extension that removes a commaJonathan Gray
if no arguments are passed to a variadic macro. Create a seperate non variadic macro for this fixed argument case. No binary change. ok reyk@
2009-08-12Backing store for ega and vga virtual console is not allocated until theMiod Vallat
second vc is created. However, it was allocated using the geometry of the second vc to allocate backing store for the first. Be sure to use the proper values in case geometries differ.
2009-08-12New lisa(4) driver for ST LIS331DL accelerometer in HP 2133 Mini-Note PC; ↵Constantine A. Murenin
ok deraadt
2009-08-12if we get dangerously low on clusters during interrupts, we needDavid Gwynne
to free some for use on the rx rings on network cards. this modifies m_cluncount to advise callers when we're in such a situation, and makes them responsible for freeing up the cluster for allocation by MCLGETI later. fixes an awesome lockup with sis(4) henning has been experiencing. this is not the best fix, but it is better than the current situation. yep deraadt@ tested by henning@
2009-08-12always mark an xs complete if we're about to return COMPLETE to theDavid Gwynne
midlayer. always call scsi_done on the xs too.
2009-08-12though shalt complete the xs (ie, call scsi_done with it) before returningDavid Gwynne
COMPLETE in a scsi_cmd handler. found by thib when testing my midlayer changes.
2009-08-12fix unused widgets to contain the actual ids; ok jakemsr@Martynas Venckus
2009-08-11don't take chip revision as a pointer to the string; swap it with xnameMartynas Venckus
ok naddy@
2009-08-11More exact matching for Sunix 40XX 4 and 8 port units so that we can fixTheo de Raadt
their baud rate multipliers.
2009-08-10The start function did enough so the shutdown hook is not neededTheo de Raadt
2009-08-10hook no longer neededTheo de Raadt
2009-08-10This does not need a shutdown function either (though the equilevantTheo de Raadt
to stop is not called because the ioctl function is a masterpiece)
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10USB network devices do not DMA in a way that requires a shutdown functionTheo de Raadt
2009-08-10A few more simple cases of shutdown hooks which only call xxstop, whenTheo de Raadt
we now know the interface has already been stopped
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10three more shutdown hooks bite the dust.Damien Bergamini
2009-08-10xge_shutdown is not needed now that interface is stopped, sinceTheo de Raadt
xge_shutdown was just calling stop again ok dlg
2009-08-10missing argument to DPRINTF.Damien Bergamini
no binary change (RUN_DEBUG only).
2009-08-10delete xxshutdown handlers that are never even hooked upTheo de Raadt
2009-08-10undef OTUS_DEBUG.Damien Bergamini
can't believe this made it into 4.6 :-(
2009-08-10i prefer (m == NULL) over (!m)Damien Bergamini
change two error messages while i'm here.
2009-08-09Make ami(4) use NO_CCB at least some of the time.Kenneth R Westerback
"Should never happen but I like it" marco@
2009-08-09Check if the command buffer has been allocated before we free it. FixesMarcus Glocker
a possible page fault trap while device detach.
2009-08-09Switch softraid to vnodes to prevent bad things from happening when usingMarco Peereboom
d_open/d_close. tested by many, ok jsing, thib, krw
2009-08-09Make this compile when SEA_ASSEMBLER is not defined.Jonathan Gray
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-08-09spelling errorTheo de Raadt
2009-08-09Get node and port WWN's from the Open Firmware tree on sparc64 if they areMark Kettenis
provided. ok dlg@, krw@
2009-08-09Rewrite bits of the multicast handling code as it should be.Kevin Lo
The handling of the IFF_ALLMULTI flag is wrong and the bcmp based range checking shouldn't be there. From Brad
2009-08-08match 5464 / 5461 IDs found in the Linux broadcom PHY driver and unknownChristian Weisgerber
Broadcom GigE PHY found in the dmesglog; from Brad
2009-08-08regenChristian Weisgerber
2009-08-085464 / 5461 IDs found in the Linux broadcom PHY driver and unknownChristian Weisgerber
Broadcom GigE PHY found in the dmesglog; from Brad
2009-08-08Add support for the IC Plus IP1001 GigE PHY. From FreeBSD, via Brad.Christian Weisgerber
Tested by jasper@ with a IP1000A PHY to make sure it doesn't break existing model.
2009-08-08bring comments in line with reality; from BradChristian Weisgerber
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-08alc(4) is a driver for the Atheros AR8131/AR8132 ethernet chip.Kevin Lo
this driver was written by Pyun YongHyeon from FreeBSD. "go ahead" deraadt@
2009-08-08In ixgbe_acquire_swfw_sync don't return -IXGBE_ERR_SWFW_SYNC as thisJonathan Gray
works out to --16, which is nonsense. No functional change as all callers only check if the return value is or isn't equal to IXGBE_SUCCESS.