summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus
AgeCommit message (Collapse)Author
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@
2010-05-16add AR9300 PCI IdDamien Bergamini
2010-04-05Initial bits for >=RT3090 support.Damien Bergamini
Probably not functionnal yet (but test reports are welcome). Update microcode for RT2860 while I'm here (remember to run make && make install under sys/dev/microcode/ral/).
2010-04-02Remove parent/slave mode of rbus as nothing uses it.Jonathan Gray
ok kettenis, sgi usage of rbus_new_body() pointed out by miod
2010-03-27replace a bunch of BAR wrangling code with calls to the pciJonathan Gray
code it was originally copied from. ok kettenis@
2010-03-27Give cardbus the pci_chipset_tag_t from pccbb and push it out throughJonathan Gray
cardbus_attach_args so we can switch to using proper pci config space functions instead of callback based wrappers. ok oga@ krw@ kettenis@
2010-03-27Bring back cardbus_chipset_tag_t which is in practice aJonathan Gray
pointer to the pccbb softc, to distinguish it from a pci_chipset_tag_t which can be passed to the normal pci functions. Suggested by and ok kettenis@
2010-03-22Remove some cardbus defines and types which are identical toJonathan Gray
their pci counterparts, similar to recent changes in NetBSD. ok oga@ deraadt@ jasper@
2010-02-02Attach athn(4) to the AR2427 which is a castrated (no 11n) AR928X.Damien Bergamini
The Asus Eee PC 1005P has such a device. This makes things even more confusing since athn now also supports some non-802.11n devices! Please let me know if you have such a device.
2010-01-13As per NetBSD move HAYAKAWA Koichi's licenses to two clause.Jonathan Gray
2010-01-12Remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok grange@ krw@
2009-12-22Revert last commit, I should have checked with damien@ first.Stuart Henderson
2009-12-22Sort pci ids, from Brad.Stuart Henderson
2009-12-21Some cleaning for the rl(4) driver:Christian Weisgerber
- ANSI - KNF - remove the use of register from Brad
2009-12-15- instead of rolling a macro that is functional equivalent to nitems(),Jasper Lievisse Adriaanse
just use nitems(). (this leaves NENTS() alone for now) ok deraadt@ krw@
2009-11-23move things from athn_attach() to athn_init() such that we canDamien Bergamini
power off the cardbus slot after athn_attach() and in athn_stop().
2009-11-14athn(4), a driver for Atheros 802.11a/g/n devices.Damien Bergamini
written from scratch based on the vendor driver for Linux (ath9k). AR9285 and AR9287 parts are 100% untested. only basic functionnalities are enabled for now. committed over an AR9281. "commit" deraadt
2009-10-15Add detach support to a few more drivers, and in others do the neccessaryTheo de Raadt
operations in the detach function in the right order. Also ensure that the interrupt handlers not trust registers that go away. read over very carefully by dms, tested by me