summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus
AgeCommit message (Collapse)Author
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
2009-08-20- fix varargs after dmesg tweakingMartynas Venckus
- intrline is not a string ok jsg@
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-07-30Put the correct value in the I/O BAR for ACX100 cards.Miod Vallat
ok claudio@
2009-07-25Fix Cardbus_conf_{read,write} macros. Not used by anything yet.Miod Vallat
2009-07-23Remove unused code.Mark Kettenis
ok oga@, jsg@, blambert@, zap zap zap deraadt@
2009-07-21Make rbus_new_body() invocable from outside cardbus.c, to allow md codeMiod Vallat
to use it to allocate a ``every operation will fail'' rbus in case of error.
2009-07-21Change the rbus md_space_{map,unmap} signature to take a rbus_tag_t insteadMiod Vallat
of the bus_space_tag_t it contains; an upcoming implementation will need to know the rbus_tag_t for which it works at this point. All callers updated accordingly; no functional change intended.
2009-06-26Add all the cardbus com devices to puc, since these can show up on theTheo de Raadt
pci bus because of the expresscard adaptors... Lacking a better mechanism, also remind people to keep those lists syncronised.
2009-06-26Using information gleamed from the FreeBSD driver, change the MAC addressTheo de Raadt
reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
2009-06-02make rl at pci detachable; untested.Jonathan Gray
2009-06-02Make fxp at pci detachable; untested.Jonathan Gray
2009-06-02make dc at pci detachable; untested.Jonathan Gray
2009-06-02Fix some minor format string problems found in a maze of false positivesTheo de Raadt
provided by Parfait ok oga