summaryrefslogtreecommitdiffstats
path: root/sys/dev/cardbus/cardbus.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fairly simple sizes for free(); ok teduderaadt2015-08-281-5/+5
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Merge from NetBSD r1.54 from Matthias Drochner:mpi2014-12-181-20/+14
| | | | | | | | | | | | -- 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@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-5/+5
| | | | after discussions with beck deraadt kettenis.
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-3/+2
| | | | | | 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
* Make CardBus ral(4) suspend and resume properly on machines that keep thekettenis2010-08-251-2/+3
| | | | | | | CardBus bridge powered up during suspend. Step zero on the long road towards fully suspending CardBus on all machines. ok deraadt@, damien@
* Give cardbus the pci_chipset_tag_t from pccbb and push it out throughjsg2010-03-271-80/+40
| | | | | | | cardbus_attach_args so we can switch to using proper pci config space functions instead of callback based wrappers. ok oga@ krw@ kettenis@
* Bring back cardbus_chipset_tag_t which is in practice ajsg2010-03-271-10/+10
| | | | | | | 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@
* Remove some cardbus defines and types which are identical tojsg2010-03-221-65/+65
| | | | | | their pci counterparts, similar to recent changes in NetBSD. ok oga@ deraadt@ jasper@
* As per NetBSD move HAYAKAWA Koichi's licenses to two clause.jsg2010-01-131-6/+1
|
* - instead of rolling a macro that is functional equivalent to nitems(),jasper2009-12-151-3/+2
| | | | | | just use nitems(). (this leaves NENTS() alone for now) ok deraadt@ krw@
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* Stop cardbusprint() from printing the CIS data so that CardBus dmesgbrad2008-02-251-21/+3
| | | | | | | entries look more like a PCI device as they're just another variant of PCI and this looks much nicer. ok deraadt@ kettenis@ mglocker@
* fix CARDBUS_DEBUGmartin2007-09-191-2/+2
| | | | noted by Markus Hennecke
* Add a missing prototype in the non-static case.miod2007-09-191-3/+4
|
* Un-staticize if option DDB.miod2007-09-171-18/+22
|
* Add a symbolic name parameter to cardbus_intr_establish().grange2006-10-121-4/+5
| | | | | | Count cardbus devices interrupts in cbb(4) using evcount(9). ok deraadt@
* removal of '#ifdef rbus ... #else ...' directives, we use rbus in allfkr2006-06-211-8/+1
| | | | | | | | cases anyways, so we might as well remove code (the !rbus case) thats been dead throughout the last years and just use the rbus code without ifdefs. brad, miod "I am all for this diff" ok deraadt, mickey
* o do not break after first iteration but when we found a match.fgsch2005-12-071-3/+3
| | | | | | | o try to read the whole cis (but not more than len bytes) instead of the first 256 bytes. first one spotted by lint. mickey@, krw@ and deraadt@ ok.
* minor knfderaadt2005-09-261-21/+16
|
* some missing cleanup from the previous commit.fgsch2005-09-131-9/+8
|
* knf; no binary change.fgsch2005-09-131-5/+3
|
* make compile; goodmickey2005-09-131-2/+2
|
* Do not leak memory if cardbus_read_exrom() fails; ok fgs@miod2005-09-121-2/+2
|
* better cis string parsing. from drochner@netbsd.org; tested by jmc@.fgsch2005-09-121-4/+5
|
* knf. no binary change.fgsch2005-09-091-668/+611
|
* correct manfid length check.fgsch2005-09-051-2/+2
|
* don't go beyond the end when parsing tuples. diff originally by pascoe@,fgsch2005-08-221-10/+21
| | | | | | final from enami@netbsd.org. problem found and tested by Simon Kuhnle <simonkuhnle at web dot de> with a rtw card with a broken cis. jsg@ pascoe@ deraadt@ ok.
* on debug, print the tuple number along with the name to help debugging infgsch2005-08-181-3/+3
| | | | case of reserved tuples and pad to 0 the byte number. deraadt@ ok.
* kill 2kB stack offender in cardbus_attach_card.pascoe2005-08-021-3/+9
| | | | ok deraadt fgsch
* Don't display vid/pid from CIS if vid is 0.jsg2005-05-281-11/+6
| | | | | Makes more sense than displaying the PCI values which is already covered by the PCI code.
* Don't use vid/pid from the CIS if vid is 0 when reporting unmatchedjsg2005-05-281-3/+10
| | | | | devices. Several devices have been known to have this behaviour. ok deraadt@
* print the screwed ofs in the panic msgmickey2005-05-271-2/+2
|
* PCI_{VENDOR,PRODUCT} -> CARDBUS_{VENDOR,PRODUCT} for correctness.brad2005-05-091-3/+3
| | | | no functional change.
* add cardbus_matchbyid(), mimics the PCI layers pci_matchbyid().brad2005-05-091-1/+14
|
* cardbusdevs -> pcidevsbrad2004-10-071-3/+3
| | | | From NetBSD
* - Record handles for memory and IO spacebrad2004-09-181-6/+13
| | | | | | - If the CIS pointer is all-0s, don't try to read the CIS. From NetBSD
* - Initialise all function's latency timer and cacheline size.brad2004-08-021-10/+24
| | | | | | | | - Fix grammar in error message. From NetBSD ok deraadt@
* - Unmap space used to read tuplebrad2004-07-151-10/+6
| | | | | | | | - No need to zero clear temporary storage twice From NetBSD ok deraadt@
* If there is no CIS info the cardbus attach would print an extramillert2004-06-221-2/+3
| | | | double quote; now it doesn't. OK openbsd!beck
* Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.grange2004-05-041-2/+2
| | | | | | This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
* print cis information on configured cards as pcmcia(4) does; mentioned byfgsch2004-01-261-1/+8
| | | | | Ed White <ed at overminder dot com>. deraadt@ ok.
* typos from Tom Cosgrove;jmc2003-10-211-2/+2
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-2/+2
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-4/+4
|
* First round of __P removal in sysmillert2002-03-141-16/+16
|
* Add the bus to the cardbus_attach_argsnate2002-01-031-1/+2
| | | | From NetBSD
* cold is in systm nowmickey2001-06-241-3/+1
|
* Cardbus serial infrastructureniklas2000-05-151-3/+11
|