summaryrefslogtreecommitdiff
path: root/sys/dev/exca
AgeCommit message (Collapse)Author
2025-12-09bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHODJohn Baldwin
The wrapper functions such as bus_alloc_resource_any() still support passing the rid by value or pointer, but the underlying implementation now passes by value. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D53402
2024-07-24newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYWarner Losh
Sponsored by: Netflix
2024-03-13new-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCEJohn Baldwin
The public bus_activate/deactivate_resource() API still accepts both forms, but the internal kobj methods no longer pass the arguments. Implementations which need the rid or type now use rman_get_rid() or rman_get_type() to fetch the value from the allocated resource. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44130
2023-11-26sys: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-08-16sys: Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16sys: Remove $FreeBSD$: one-line .c comment patternWarner Losh
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2022-03-28exca(4): Fix a typo in a source code commentGordon Bergling
- s/maping/mapping/ MFC after: 3 days
2019-12-16Move attachment of pccard children into exca library. Attach theWarner Losh
cardbus and pccard children before the sysctls are added rather than after. Notes: svn path=/head/; revision=355824
2019-12-16Add slot number ivar to return which slot number the child is attached to.Warner Losh
This will always be 0 for pccbb, but may be non-zero for other kinds of bridges, should they show up in the tree. Make querying it generic. Notes: svn path=/head/; revision=355823
2019-12-04Regularize my copyright noticeWarner Losh
o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
2018-05-01Use M. Warner Losh everywhere on my copyrights.Warner Losh
Remove 'All Rights Reserved' where I can. Notes: svn path=/head/; revision=333143
2017-11-27sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
2017-01-28Remove pc98 support completely.Yoshihiro Takahashi
I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
2016-04-21sys: use our roundup2/rounddown2() macros when param.h is available.Pedro F. Giffuni
rounddown2 tends to produce longer lines than the original code and when the code has a high indentation level it was not really advantageous to do the replacement. This tries to strike a balance between readability using the macros and flexibility of having the expressions, so not everything is converted. Notes: svn path=/head/; revision=298433
2010-01-03CardBus instead of cardbus.Warner Losh
Notes: svn path=/head/; revision=201450
2009-03-09__LP64__ is what's defined, not _LP64_, according to the manual (andWarner Losh
also experience). Notes: svn path=/head/; revision=189579
2009-02-06fix spelling errorWarner Losh
Submitted by: trasz Notes: svn path=/head/; revision=188220
2009-02-05Don't check for mapping above 4GB on 32-bit platforms.Warner Losh
Notes: svn path=/head/; revision=188190
2009-02-05Add some additional debugging for the memory code.Warner Losh
Notes: svn path=/head/; revision=188167
2009-01-05First cut at fixing memory mapping botch. Nobody must use the ray(4)Warner Losh
driver since it couldn't have worked with NEWCARD w/o these fixes. This should allow selecting 16-bit memory width as well (which was what was broken). Notes: svn path=/head/; revision=186796
2007-03-23- Fix exca_(io|mem)_map() to return proper errno values.John Baldwin
- Change exca_activate_resource() to call BUS_ACTIVATE_RESOURCE() before calling exca_(io|mem)_map() since the latter use rman_get_bus(tag|handle) and the recent changes to nexus(4) mean that you need to activate a resource before reading the bus tag and handle. This was true before, but now the nexus(4) drivers on x86 and ia64 are more forceful about it. Reviewed by: imp Notes: svn path=/head/; revision=167832
2007-02-24exca->pccarddev should always be non-null now. Only call it when theWarner Losh
device is actually attached. Notes: svn path=/head/; revision=166942
2007-02-15It turns out that it is easier to not NULL out pccard and cardbusWarner Losh
device pointers. They don't change as the children device drivers come and go. Rather, check to see if the device is attached where we would have checked ! NULL. This solves many asymmetries in the code that likely could lead to crashes when loading/unloading cbb without one or more of the expected children's driver not present. Notes: svn path=/head/; revision=166742
2006-09-24Cleanup sloppy ifdef.Warner Losh
Notes: svn path=/head/; revision=162591
2006-08-12The TOPIC97 and TOPIC100 seem to have a special register in the excaWarner Losh
space that enables low voltage operation (and maybe other stuff). Enable the bits in this register so low voltage 16-bit cards may work. Existance noticed in NetBSD driver. Notes: svn path=/head/; revision=161240
2006-03-09Don't dereference an uninitialized pointer.Warner Losh
Notes: svn path=/head/; revision=156503
2005-10-19Set the name of the chipset foundWarner Losh
Notes: svn path=/head/; revision=151458
2005-10-17Minor commentary correctionWarner Losh
Notes: svn path=/head/; revision=151410
2005-10-14MFP4: Minor tweaks.Warner Losh
Notes: svn path=/head/; revision=151309
2005-09-22'PC Card' instead of other variantsWarner Losh
Notes: svn path=/head/; revision=150460
2005-01-11Properly calculate the offset in mapping the memory of pccards. ThisWarner Losh
allows my 3com cards to work again. It appears that this code was once there, but I removed it when I added the alignment issues. MFC After: 5 days PR: 70639 (and likely others) Notes: svn path=/head/; revision=140022
2005-01-06Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh
Notes: svn path=/head/; revision=139749
2004-08-16Didn't intend to commit debugging code enabledWarner Losh
Notes: svn path=/head/; revision=133793
2004-08-15Other part of the cbb isa/pci split. This likely is causing problemsWarner Losh
wrt cbb module. Notes: svn path=/head/; revision=133782
2003-10-07Card type stuff was backwards, so assume io for the moment. mem needsWarner Losh
a lot of help and with luck bms will help me fix that. Notes: svn path=/head/; revision=120872
2003-09-24CARDMEM is the offset of the address ON THE CARD (eg which page).Warner Losh
Instead, use EXCA_MEMREG_WIN_SHIFT which is the amount we shift the bus address by to write into upper memory (eg above 24MB). Use the latter in this case. Notes: svn path=/head/; revision=120421
2003-08-29When we went to the set_flags interface for the memory resource, weWarner Losh
switched from PCCARD_MEM_FOO to PCCARD_A_MEM_FOO, yet we didn't change exca in all the right places. Do so now. Also use PCCARD_WIDTH_AUTO rather than the magic cookie 0. Notes: svn path=/head/; revision=119551
2003-08-28A number of minor fixes to the mapping of memory. This should helpWarner Losh
reading the CIS on some cards. However, not all just yet. This makes at least some of the xircom cards that weren't working to work. It doesn't make my home and away card work, however. o Don't get the card offset wrong. This is the biggest hassle for reading the CIS. The old code was just so wrong I can't believe that it worked at all. o Don't set the bit that allows/forces 16-bit memory access to the memory. It is hard coded with 0x80. o Don't need to slow down memory access with wait-states. OLDCARD didn't need them and it doesn't hurt anything. o remove bogus grousying in comment. Notes: svn path=/head/; revision=119520
2003-08-27Fix location of $FreeBSD$ from last commit.Warner Losh
Notes: svn path=/head/; revision=119511
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2003-06-07MFP4:Warner Losh
Merge some common code from cbb into exca. Notes: svn path=/head/; revision=115988
2003-06-06Add two of three workarounds for interrupt storms for o2micro parts asWarner Losh
obtained from o2micro. These should only be needed for 'older' o2micro bridges (anything before the 7xxx series of bridges), but will work with the new bridges. # I don't plan on porting it to oldcard, but will happily commit to # oldcard if someone else needs them. Notes: svn path=/head/; revision=115887
2003-05-31Don't use return(foo(...)); in function returning void.Poul-Henning Kamp
Found by: FlexeLint Notes: svn path=/head/; revision=115461
2003-02-14Massive overhaul of exca to help with the isa efforts:Warner Losh
o chip_name arrays ifdef'd out. o use the OLDCARD-like get/put functions so we can support differnt types of mappings. o Write the beggings of is this a valid exca device and introduce more chipset support. # this is partially a wip, but also needed because some other cahnges I've # made require some of these changes. Notes: svn path=/head/; revision=110841
2002-12-18Do not return(foo()) in void function.Semen Ustimenko
Submitted by: marius@alchemy.franken.de MFC after: 3 days Notes: svn path=/head/; revision=108064
2002-10-07Update comments to remind me about power bugs in oldcard.Warner Losh
Notes: svn path=/head/; revision=104601
2002-07-26MFp4:Warner Losh
o Protect .h against multiple includes. o eliminate the pointers to the read/write routines. The bus_space_read routines can cope since we have the offset field. o Print a warning if the requested map address is > 16M and your chipset doesn't support the extended ExCA registers. Notes: svn path=/head/; revision=100703
2002-06-01Fix a couple of places where preprocessor concatination was misused andAlfred Perlstein
something wound up grafted to a comma. Notes: svn path=/head/; revision=97708
2002-05-30Make oldcard and newcard kernel module work.Takanori Watanabe
Notes: svn path=/head/; revision=97613