summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia
AgeCommit message (Collapse)Author
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.
2010-09-04Add support for indirect CIS data (CISTPL_INDIRECT tuple).Miod Vallat
2010-09-01Failure to attach a pcmcia driver could leave the function to be disabledMiod Vallat
after config_found() returns; check for this and do not invoke pcmcia_ccr_read() on a disabled function in the following DPRINTF. No change for kernels without option PCMCIADEBUG.
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
2010-08-30Convert the pcmcia power hook to an activate function. Then change theTheo de Raadt
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout, which needs fixing. wdc(4), ne(4), and wi(4) have been fully tested and actually work better than they ever have before (no more wdc timeouts on resume!) malo(4) has some other nasty bug which has not yet been spotted which causes crazy panics. The other drivers are more rare and will be fixed if people show up with hardware; for now at least they have been adapted to the new model. ok kettenis
2010-08-29wdcactivate() can go since it is just a wrapper aroundTheo de Raadt
config_activate_children (same change made to wdc.c and wdcvar.h) ok kettenis
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-27More killing of PWR_STANDBY. cvs skipped these filesTheo de Raadt
2010-07-02fix a variety of uninit errors. ok and one correction deraadtTed Unangst
2010-06-28Remove all adapter-specific 'struct scsi_device's. They are never used. FirstKenneth R Westerback
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-05-20Split some copies of two struct members together into two bcopy ratherNicholas Marriott
than one to make gcc4 -Wbounded happy. ok krw
2010-05-19Use the actual SSID length rather than a (wrong) sizeof. Makes gcc4Nicholas Marriott
-Wbounded happy. ok kettenis
2009-10-29Make sure the descriptor is writable for some operations. Pointed by miod@.Federico G. Schwindt
While I'm here make this compile again. miod@ ok.
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-08-17initialize retry to zero; otherwise if firmware sends odd val16Martynas Venckus
from the very beginning; we might never retry. ok mglocker@
2009-08-10The start function did enough so the shutdown hook is not neededTheo de Raadt
2009-05-26regen.Federico G. Schwindt
2009-05-26Add Quatech SSP-100 from Joerg Niendorf <p3y80 at internode dot on dot net>Federico G. Schwindt
via PR/6147. Shrink DSP225 while I'm it.
2009-04-26Prevent panic upon detach if the device didn't fully attach.Mark Kettenis
ok marco@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-09fix uninitialized argument.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok krw@ tedu@
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-22com not pccom; ok miodTheo de Raadt
2008-11-21cast pointer argument to bus_space_read_region_1 to the correct typeOwain Ainsworth
(u_int8_t *). Fixes a warning when bus_space_read_region_1 is actually a function and not a macro. ok weingart@