summaryrefslogtreecommitdiffstats
path: root/sys/dev/cardbus (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tweak ohci_checkrev so it doesnt print a leading comma and space.dlg2019-01-071-2/+2
| | | | | | | | | it assumes that it always followed an interrupt string, but we don't print that on fdt. having the bus responsible for the whitespace means the fdt glue can print a colon to separate the bus info from checkrev output, while every other glue keeps the comma. ok deraadt@
* prune files.* entries that refer to files not in treejsg2018-02-141-7/+1
| | | | ok krw@ mpi@
* Finish initial 11n support for athn(4).stsp2017-01-121-1/+2
| | | | | | | | | | | The heavy lifting was done by damien@ years ago. I didn't even have to figure out what the hardware expects, the code was already there. This driver now supports MCS 0-15 in client and hostap mode. No Tx aggregation and no 40 MHz channels yet. tested by vgross@, bmercer@, tb@, jmc@, Vadim Vygonets, Peter Kay ok bmercer@ tb@ phessler@
* all pools have their ipl set via pool_setipl, so fold it into pool_init.dlg2016-09-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | the ioff argument to pool_init() is unused and has been for many years, so this replaces it with an ipl argument. because the ipl will be set on init we no longer need pool_setipl. most of these changes have been done with coccinelle using the spatch below. cocci sucks at formatting code though, so i fixed that by hand. the manpage and subr_pool.c bits i did myself. ok tedu@ jmatthew@ @ipl@ expression pp; expression ipl; expression s, a, o, f, m, p; @@ -pool_init(pp, s, a, o, f, m, p); -pool_setipl(pp, ipl); +pool_init(pp, s, a, ipl, f, m, p);
* pool_setipl for cardbus and drm pools.dlg2016-08-241-2/+4
| | | | ok kettenis@
* Replace mountroothook_establish(9) by config_mountroot(9) a narrower APImpi2015-12-111-5/+2
| | | | | | similar to config_defer(9). ok mikeb@, deraadt@
* You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2015-11-2412-25/+14
|
* The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.mpi2015-11-244-9/+5
|
* Various *syncron* -> *synchron* typos.miod2015-11-141-2/+2
|
* mark ehci_intr() as IPL_MPSAFE here as welljsg2015-11-111-2/+2
| | | | ok mpi@
* fairly simple sizes for free(); ok teduderaadt2015-08-282-7/+7
|
* Fix some misuse of the | operator. In particular | has higherjsg2015-05-041-2/+2
| | | | | precedence than ?: ok guenther@ krw@ miod@
* Remove some includes include-what-you-use claims don'tjsg2015-03-1413-27/+13
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* remove the second void * argument on tasks.dlg2015-01-271-4/+4
| | | | | | | | | | | | | | | | | | | | | 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@
* unifdef INETtedu2014-12-224-12/+4
|
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-195-15/+10
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* if you really must look inside the pool to decide if you've calledtedu2014-12-191-2/+2
| | | | pool_init already, the pr_size field is the least worst field to peek at.
* Merge from NetBSD r1.54 from Matthias Drochner:mpi2014-12-182-23/+16
| | | | | | | | | | | | -- 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@
* use the correct capitalization for Realtek.brad2014-11-243-8/+8
|
* Nuke yet more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok miod@
* Remove even more unnecessary `needs-flag' attributes from config machinery,miod2014-10-181-2/+2
| | | | as well as useless include of the generated flag files.
* remove uneeded proc.h includesjsg2014-09-146-12/+6
| | | | ok mpi@ kspillner@
* Various changes to the re(4) feature flags..brad2014-09-061-1/+3
| | | | | | | | | | | 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@
* Fewer <netinet/in_systm.h>mpi2014-08-114-20/+4
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-122-7/+7
| | | | after discussions with beck deraadt kettenis.
* Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().stsp2014-05-171-10/+1
| | | | | Since no DPRINTF() call remains also remove its definition (requested by mpi@). ok mpi, and also reported by Jean-Philippe Ouellet
* There is no need to remember which usb(4) device is the child of an USBmpi2014-05-163-12/+9
| | | | host controller because autoconf(9) already does it.
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-065-21/+12
| | | | | | | | 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
* replace workqs with tasks for handling resumedlg2013-11-143-9/+10
| | | | from kimberley manning
* replace workqs with tasks for handling resumedlg2013-11-141-2/+2
| | | | from kimberley manning
* replace workqs with tasks for handling resumedlg2013-11-141-2/+2
| | | | from kimberley manning
* Replace workqs with tasks.mpi2013-10-302-4/+16
| | | | ok dlg@
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-074-8/+4
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Drop 3rd and 4th clauses from the BSD licence, from the following NetBSD'smpi2013-06-202-8/+2
| | | | | | | | | 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@
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-302-6/+4
| | | | | | 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
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-153-6/+6
| | | | | | | | | 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@
* Sort the CardBus ids.brad2013-03-071-5/+5
|
* Fix and simplify determining whether we're using a 8129 or 8139 chipset. Onlybrad2013-03-071-2/+1
| | | | | | | | | | 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@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+1
| | | | ok guenther millert kettenis
* Revamp the sequences for suspend/hibernate -> resume so that the codederaadt2012-10-081-5/+2
| | | | | | | | | | 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
* Support NetMos NM9820 cardbus (added to puc as well, for thederaadt2012-07-121-1/+3
| | | | | adaptor cages and because one day com@cardbus should be replaced by puc@cardbus)
* Simplify various parts of the puc(4) attachment code. Tested lightlyderaadt2011-11-151-2/+2
| | | | by krw and myself.
* add support for WCH CH352 serialjsg2011-10-091-1/+3
| | | | tested by Atanas Vladimirov on a CardBus device with one physical port
* - use nitems(); no binary change@jasper2011-04-026-18/+12
| | | | ok jsg@
* clear pci configuration register 0x41 on resume, like during attach.damien2011-01-081-3/+3
| | | | only clear it if it is != 0 while i'm at it.
* move the printing of the MAC address to the same line than the MAC rev.damien2010-12-311-2/+2
|
* Make the athn(4) back-end more bus agnostic by moving read and writedamien2010-12-311-10/+44
| | | | | | | | 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
* fix up a pointer bug introduced in the previous revisionmikeb2010-11-151-3/+3
| | | | jsg agrees, ok deraadt
* remove unused offset argument to rbus functionsjsg2010-09-222-19/+14
| | | | ok krw@ kettenis@
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-072-27/+2
| | | | | traversal code to suspend/resume ok oga kettenis blambert