summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia
AgeCommit message (Collapse)Author
2015-07-08MFREE(9) is dead, long live m_freem(9)!Martin Pieuchot
ok bluhm@, claudio@, dlg@
2015-06-29dont double count if_ibytes here, it gets done by something insideDavid Gwynne
if_input. from and ok mpi@
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-05-21No need to set "rcvif", if_input() does it for you.Martin Pieuchot
2015-05-19Convert to if_input().Martin Pieuchot
ok dlg@
2015-05-13test mbuf pointers against NULL not 0Jonathan Gray
ok krw@ miod@
2015-04-13Now that if_input() set the receiving interface pointer on mbufs for usMartin Pieuchot
there's no need to do it in m_devget(9). Stop passing an ``ifp'' will help for upcoming interface pointer -> index conversion. While here remove unused ``ifp'' argument from m_clget(9) and kill two birds^W layer violations in one commit. ok henning@
2015-04-08Convert to if_input().Martin Pieuchot
ok dlg@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-02-28unbreak pcmcia an(4) by adding back some lines removed in rev 1.21Jonathan Gray
without this is won't attach. ok stsp@ millert@ miod@
2014-12-22unifdef INETTed Unangst
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-03More duplicate #include cleanout.Kenneth R Westerback
ok deraadt@ tedu@
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-08-18its a bit silly to include mbuf.h to get to malloc.h. just includeDavid Gwynne
malloc.h instead.
2014-08-11Fewer <netinet/in_systm.h>Martin Pieuchot
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-10remove most of the boolean_t infection outside uvm/ddb/pmap; ok jsgTheo de Raadt
2014-05-04format string fixes for bus_addr_t and bus_size_tStefan Fritsch
bus_addr_t and bus_size_t are u_long everywhere ok kettenis@
2014-01-22add a missing argument to a debug printfJonathan Gray
2014-01-18instead of having every bit of glue set up and attach an identicalDavid Gwynne
scsi_adapter struct, just do it once in the chip code. ok krw@
2013-12-06Add a DVACT_WAKEUP op to the *_activate() API. This is called after theTheo de Raadt
kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
2013-11-26Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-10-21Add load_font and list_font accessops to all rasops-based wsdisplay drivers.Miod Vallat
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.Miod Vallat
No functional change.
2013-08-21get rid of the copy argument in m_devget that let you provide anDavid Gwynne
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
2013-08-13Let ray(4) rot in the attic. OK mpi, jsg, kettenis, henning, millert.Mike Belopuhov
Mickey approves these changes.
2013-08-07Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-07-10Remove unsigned comparison < 0.Brad Smith
Pointed out by LLVM. ok fgsch@
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-09- use NETGEAR vendor ID for NETGEAR products, not LINKSYS.Miod Vallat
- add NETGEAR FA410TXC with 00:13:46 manufacturer part of the Ethernet address; tested by Riccardo Mottola, thanks!
2013-04-22handle large time_t correctly in debug codeTheo de Raadt
2013-02-18set the wireless interface priority and interfaces to the wlan groupJonathan Gray
for the remaining pre 802.11b wireless drivers. ok krw@ phessler@
2012-11-28- Use IF_Gbps(1) instead of IF_Mbps(1000)Brad Smith
- Use IF_Mbps() instead of multiplying the link speed by a bare value - Remove a useless comment as baudrate is already handled properly - Remove some commented out bits of code - Use IF_Mbps() instead of the bare value ok sthen@
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
2011-09-17Fix a truncated DPRINTF.Miod Vallat
2011-07-07get rid of a debug printf that keeps giving me flase psotives becauseHenning Brauer
it is the only place in the tree (minus if.{c,h} which are allowed to) that reads ifq_maxlen without setting it, ryan ok
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-05-09Refactor queue allocation and initialization into a wdc_alloc_queue()Matthew Dempsky
function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
2011-05-02Fix a tyop which could potentially lead to null dereference.Charles Longeau
While there fix a dead store. Found by LLVM/Clang Static Analyzer. ok deraadt@
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-03-31- use nitems(); no binary change.Jasper Lievisse Adriaanse
ok fgsch@
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
traversal code to suspend/resume ok oga kettenis blambert
2010-09-06All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}Theo de Raadt
2010-09-04Off-by-two in the length check for CISTPL_CONFIG tuples.Miod Vallat
2010-09-04Use pcmcia_cis_read_1() to read cis data to be checksummed, instead ofMiod Vallat
trying to roll our inline version of it and fail. Fixes `checksum error' warnings on all the cards with checksum tuples I could find (admittedly not many), and probably fixes all of them since this code has never been correct in the first place.