summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus
AgeCommit message (Collapse)Author
2015-08-28fairly simple sizes for free(); ok teduTheo de Raadt
2015-05-04Fix some misuse of the | operator. In particular | has higherJonathan Gray
precedence than ?: ok guenther@ krw@ miod@
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-01-27remove the second void * argument on tasks.David Gwynne
when workqs were introduced, we provided a second argument so you could pass a thing and some context to work on it in. there were very few things that took advantage of the second argument, so when i introduced pools i suggested removing it. since tasks were meant to replace workqs, it was requested that we keep the second argument to make porting from workqs to tasks easier. now that workqs are gone, i had a look at the use of the second argument again and found only one good use of it (vdsp(4) on sparc64 if you're interested) and a tiny handful of questionable uses. the vast majority of tasks only used a single argument. i have since modified all tasks that used two args to only use one, so now we can remove the second argument. so this is a mechanical change. all tasks only passed NULL as their second argument, so we can just remove it. ok krw@
2014-12-22unifdef INETTed Unangst
2014-12-19Use <sys/endian.h> instead of <machine/endian.h>Philip Guenther
ok dlg@ mpi@ bcook@ millert@ miod@
2014-12-19if you really must look inside the pool to decide if you've calledTed Unangst
pool_init already, the pr_size field is the least worst field to peek at.
2014-12-18Merge from NetBSD r1.54 from Matthias Drochner:Martin Pieuchot
-- kick out the error-prone handcrafted single-linked list of cardbus functions; replace by a simple *array[8] -- In other words, prevent a use after free when removing a cardbus function. ok deraadt@, miod@
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-11-18Nuke yet more obvious #include duplications.Kenneth R Westerback
ok miod@
2014-10-18Remove even more unnecessary `needs-flag' attributes from config machinery,Miod Vallat
as well as useless include of the generated flag files.
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-09-06Various changes to the re(4) feature flags..Brad Smith
Changed RL_FLAG_MACLDPS to RL_FLAG_MACRESET. Removed RL_FLAG_INVMAR and RL_FLAG_NOJUMBO. Added RL_FLAG_FASTETHER, RL_FLAG_CMDSTOP_WAIT_TXQ, RL_FLAG_JUMBOV2, RL_FLAG_WOL_MANLINK, RL_FLAG_WAIT_TXPOLL, RL_FLAG_WOLRXENB. Also set in the softc the maximum MTU for the various generations of chips. Input from and Ok jsg@
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-05-17Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().Stefan Sperling
Since no DPRINTF() call remains also remove its definition (requested by mpi@). ok mpi, and also reported by Jean-Philippe Ouellet
2014-05-16There is no need to remember which usb(4) device is the child of an USBMartin Pieuchot
host controller because autoconf(9) already does it.
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-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-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-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-10-30Replace workqs with tasks.Martin Pieuchot
ok dlg@
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-06-20Drop 3rd and 4th clauses from the BSD licence, from the following NetBSD'sMartin Pieuchot
revision: sys/dev/acpi/asus_acpi.c r1.4 sys/dev/cardbus/cardbus_exrom.c r1.11 sys/dev/cardbus/cardbus_exrom.h r1.6 ok kettenis@
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-04-15Get rid of various 'typedef struct' definitions and use plain structureMarcus Glocker
definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
2013-03-07Sort the CardBus ids.Brad Smith
2013-03-07Fix and simplify determining whether we're using a 8129 or 8139 chipset. OnlyBrad Smith
the 8129 PCI id is a 8129, everything else is a 8139. Allows the D-Link DFE-520TX board to work and would ensure proper determination of the chipset for at least the 8138 based boards (PCI/CardBus). Tested by kirby@ Ok kirby@ sthen@ chris@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
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
2012-07-12Support NetMos NM9820 cardbus (added to puc as well, for theTheo de Raadt
adaptor cages and because one day com@cardbus should be replaced by puc@cardbus)
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyTheo de Raadt
by krw and myself.
2011-10-09add support for WCH CH352 serialJonathan Gray
tested by Atanas Vladimirov on a CardBus device with one physical port
2011-04-02- use nitems(); no binary change@Jasper Lievisse Adriaanse
ok jsg@
2011-01-08clear pci configuration register 0x41 on resume, like during attach.Damien Bergamini
only clear it if it is != 0 while i'm at it.
2010-12-31move the printing of the MAC address to the same line than the MAC rev.Damien Bergamini
2010-12-31Make the athn(4) back-end more bus agnostic by moving read and writeDamien Bergamini
operations to callbacks in the PCI and CardBus front-ends. This will allow support of other buses like USB. Assume the following memory model: - writes are ordered but may be buffered and require explicit flush - a read always flushes all buffered writes
2010-11-15fix up a pointer bug introduced in the previous revisionMike Belopuhov
jsg agrees, ok deraadt
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
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-08-31When cardbus is fixed, this will be able to use dc_activate directlyTheo de Raadt
(I stronly hope that cardbus needs no bus-specific wrappers!)
2010-08-30Change powerhooks into activate functions, and provide stub powerhookTheo de Raadt
functions ok kettenis
2010-08-27Massage the powerhook function into an activate function, and since we doTheo de Raadt
not neccessarily have a working filesystem for the firmware yet, use a workq to postpone resume. Then make the powerhook function call the activate function. There remains some questions about the sc_power functions... ok kettenis
2010-08-27Since the pci-specific activate function does nothing, move it to fxp.c.Theo de Raadt
Then it is possible for fxp_powerhook to use it.
2010-08-25Make CardBus ral(4) suspend and resume properly on machines that keep theMark Kettenis
CardBus bridge powered up during suspend. Step zero on the long road towards fully suspending CardBus on all machines. ok deraadt@, damien@
2010-08-08activate function for suspend/restore; from mglockerTheo de Raadt
2010-08-06ACPI suspend/resume for bwi(4). Initial diff from todd@, finished andMarcus Glocker
tested by me on X40 with a BCM4306. OK deraadt@