History log of /src/sys/dev/cardbus/rbus_ppb.c |
Revision | | Date | Author | Comments |
1.50 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.49 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.48 |
| 24-Apr-2021 |
thorpej | branches: 1.48.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.47 |
| 05-Mar-2019 |
msaitoh | branches: 1.47.14; Catch up with MI pci changes to fix compile error.
|
1.46 |
| 01-Mar-2019 |
msaitoh | - Almost all ppbreg.h's definitions are also in pcireg.h. Remove duplicated definitions from ppbreg.h and move some definitions from ppbreg.h to pcireg.h. - Change fast back-to-back "capable" to "enable" in pci_subr.c. - Print Primary Discard Timer, Secondary Discard Timer, Discard Timer Status and Discard Timer SERR# Enable bit in pci_subr.c. - PCI_BRIDGE_PREFETCHBASE32_REG and PCI_BRIDGE_PREFETCHLIMIT32_REG are "upper" 32bit registers, rename to *UP32_REG to avoid confusion. - Use macro.
|
1.45 |
| 01-Jun-2017 |
chs | branches: 1.45.10; remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP kmem_zalloc() with KM_SLEEP percpu_alloc() pserialize_create() psref_class_create()
all of these paths include an assertion that the allocation has not failed, so callers should not assert that again.
|
1.44 |
| 13-Apr-2015 |
riastradh | Convert sys/dev to use <sys/rndsource.h>.
|
1.43 |
| 17-Oct-2014 |
uebayasi | branches: 1.43.2; Fix i386 CARDBUS build.
|
1.42 |
| 02-Feb-2012 |
tls | branches: 1.42.6; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.41 |
| 01-Aug-2011 |
drochner | branches: 1.41.2; 1.41.6; remove some bloat: -cardbus doesn't use multiple interrupt lines like PCI, and it doesn't use machanisms like interrupt line register and swizzling -- no need to carry around dummy information, this is all dealt with by the bridge (I'm asking myself how "rbus_ppb" can work -- a bridge attached to cardbus just can't work like a normal PCI bridge as far as interrupts are concerned. I thing that should be a hardware specific driver because behavior is not covered by a standard.) -cardbus always uses 3.3V -- no need for a variable to keep track of the voltage
|
1.40 |
| 17-May-2011 |
dyoung | PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional role in NetBSD (drivers are no longer supposed to write these to pa_flags) without changing name. Correct that.
Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names consistent with the other PCI flags and poisoning 3rd-party driver sources that use the flags in the old bad way.
This patch produces no binary changes in this set of PCI kernels when they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:
algor P4032 P5064 P6032 alpha GENERIC amd64 GENERIC XEN3_DOM0 arc GENERIC atari HADES MILAN-PCIIDE bebox GENERIC cats GENERIC cobalt GENERIC evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 evbarm-el IXDP425 IXM1200 KUROBOX_PRO evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425 evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3 evbmips64-el XLSATX evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266 evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT hp700 GENERIC i386 ALL XEN3_DOM0 XEN3_DOMU ibmnws GENERIC iyonix GENERIC landisk GENERIC macppc GENERIC mvmeppc GENERIC netwinder GENERIC ofppc GENERIC prep GENERIC sandpoint GENERIC sbmips-el GENERIC sgimips GENERIC32_IP2x GENERIC32_IP3x sparc GENERIC_SUN4U KRUPS sparc64 GENERIC
|
1.39 |
| 05-Mar-2010 |
dyoung | branches: 1.39.2; 1.39.4; Remove dead code (it is commented out).
Delete the detach routine, it's obviously not finished.
|
1.38 |
| 04-Mar-2010 |
dyoung | It turns out that ppb at cardbus was not even in ALL. It has probably not been compiled in a very long time. With some minor changes, it was possible to make it compile:
Use kmem_zalloc()/kmem_free() instead of alloca()/memset().
Use %zu and %zx for printf'ing bus_size_t.
Delete the declaration of an unused local variable.
|
1.37 |
| 04-Mar-2010 |
dyoung | Delete unfinished and unreachable code: ppb_cardbus_setup(), ppb_cardbus_enable(), ppb_cardbus_disable().
|
1.36 |
| 03-Mar-2010 |
dyoung | Simplify interrupt (dis)establishment by two source transformations:
- cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih);
- ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...);
Compiles. Untested. Let me know if you use this hardware with NetBSD any longer.
|
1.35 |
| 26-Feb-2010 |
dyoung | Use PCI_ constants and macros instead of CARDBUS_. Use Cardbus_conf_{read,write}() instead of cardbus_conf_{read,write}(). Delete all of the CARDBUS_ constants and macros that replicate PCI_.
Compile-tested, only.
|
1.34 |
| 25-Feb-2010 |
dyoung | Make fxp at cardbus detach during shutdown.
Stop calling (*cardbus_ctrl) to enable bus mastering, I/O and memory spaces on the CardBus bridge. cbb(4) always enables that stuff, anyway. In the process, avoid remembering what BAR we mapped by writing CARDBUS_{IO,MEM}_ENABLE to sc_cben or sc_cbenable, and record the BAR in use sc_bar, instead.
Replace more CARDBUS_ constants with PCI_ constants.
Compile-tested, only.
|
1.33 |
| 25-Feb-2010 |
dyoung | Don't create the device's PCI tag with Cardbus_make_tag(9), but save and use the tag found in the cardbus_attach_args. Compile-tested, only.
|
1.32 |
| 24-Feb-2010 |
dyoung | Start to tuck Cardbus under the PCI abstraction. Step #1, textual substitution: for all practical purposes, pcitag_t and cardbustag_t are interchangeable, so just use pcitag_t. Ditto pcireg_t and cardbusreg_t.
While I'm here, don't make a copy (sc_intrline) of cardbus_attach_args.ca_intrline unless we use it, later.
|
1.31 |
| 12-May-2009 |
cegger | branches: 1.31.2; struct device * -> device_t, no functional changes intended.
|
1.30 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.29 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.28 |
| 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.27 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.26 |
| 21-Jul-2008 |
drochner | branches: 1.26.2; 1.26.8; don't include i82365var.h, fixes build error, from Robert Swindells
|
1.25 |
| 09-Jul-2008 |
joerg | - device/softc split
|
1.24 |
| 09-Jul-2008 |
joerg | Use device_private to access cardbus_softc.
|
1.23 |
| 18-May-2008 |
jmcneill | branches: 1.23.2; 1.23.4; Add support for PCI_BUS_FIXUP and PCI_ADDR_FIXUP on amd64.
|
1.22 |
| 28-Apr-2008 |
martin | branches: 1.22.2; Remove clause 3 and 4 from TNF licenses
|
1.21 |
| 06-Apr-2008 |
cegger | branches: 1.21.2; 1.21.4; use aprint_*_dev and device_xname
|
1.20 |
| 19-Oct-2007 |
ad | branches: 1.20.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.19 |
| 29-Mar-2006 |
thorpej | branches: 1.19.18; 1.19.32; 1.19.34; 1.19.38; Use device_private().
|
1.18 |
| 25-Mar-2006 |
thorpej | Use device_parent().CVS: ----------------------------------------------------------------------
|
1.17 |
| 11-Dec-2005 |
christos | branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12; merge ktrace-lwp.
|
1.16 |
| 09-Sep-2005 |
drochner | make this compile again (shadow and const warnings) I doubt this serves any useful purpose.
|
1.15 |
| 27-Feb-2005 |
perry | branches: 1.15.4; nuke trailing whitespace
|
1.14 |
| 04-Feb-2005 |
perry | de-__P
|
1.13 |
| 30-Aug-2004 |
drochner | branches: 1.13.4; 1.13.6; Phase out the use of a string as first "attach args" member to control which bustype should be attached with a specific call to config_found() (from a "mainbus" or a bus bridge). Do it for isa/eisa/mca and pci/agp for now. These buses all attach to an mi interface attribute "isabus", "eisabus" etc., and the autoconf framework now allows to specify an interface attribute on config_found() and config_search(), which limits the search of matching config data to these which attach to that specific attribute. So we basically have to call config_found_ia(..., "foobus", ...) where such a bus is attached. As a consequence, where a "mainbus" or alike also attaches other devices (eg CPUs) which do not attach to a specific attribute yet, we need at least pass an attribute name (different from "foobus") so that the foo bus is not found at these places. This made some minor changes necessary which are not obviously related to the mentioned buses.
|
1.12 |
| 02-Aug-2004 |
mycroft | cardbusdevs -> pcidevs
|
1.11 |
| 23-Apr-2004 |
itojun | pass string length (= boundary info) to pci_devinfo so that we do not run over the end of memory region
|
1.10 |
| 24-Nov-2003 |
lukem | fix uninitialised variable warning. XXX: not sure if this is correct
|
1.9 |
| 01-Jan-2003 |
thorpej | branches: 1.9.2; Use aprint_normal() in cfprint routines.
|
1.8 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.7 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.6 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.5 |
| 27-Sep-2002 |
provos | remove trailing \n in panic(). approved perry.
|
1.4 |
| 02-Jun-2002 |
lukem | make this compile again
|
1.3 |
| 16-May-2002 |
thorpej | branches: 1.3.2; 1.3.4; * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to NULL for root PCI busses. For busses behind a bridge, it points to a persistent copy of the bridge's pcitag_t. This can be very useful for machine-dependent PCI bus enumeration code. * Implement a machine-dependent pci_enumerate_bus() for sparc64 which uses OFW device nodes to enumerate the bus. When a PCI bus that is behind a bridge is attached, pci_attach_hook() allocates a new PCI chipset tag for the new bus and sets it's "curnode" to the OFW node of the bridge. This is used as a starting point when enumerating that bus. Root busses get the OFW node of the host bridge (psycho). * Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
|
1.2 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.1 |
| 06-Jul-2001 |
mcr | branches: 1.1.2; 1.1.4; cardbus attachment for PCI-PCI bridges
|
1.1.4.6 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.1.4.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.1.4.4 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.1.4.3 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.1.4.2 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.1.4.1 |
| 06-Jul-2001 |
nathanw | file rbus_ppb.c was added on branch nathanw_sa on 2001-08-24 00:09:07 +0000
|
1.1.2.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.1.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.1.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.3.4.1 |
| 04-Jun-2002 |
lukem | Pull up revision 1.4 (requested by lukem in ticket #144): make this compile again
|
1.3.2.2 |
| 20-Jun-2002 |
gehenna | catch up with -current.
|
1.3.2.1 |
| 16-May-2002 |
gehenna | file rbus_ppb.c was added on branch gehenna-devsw on 2002-06-20 16:32:59 +0000
|
1.9.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.9.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.9.2.5 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.9.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.9.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.9.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.9.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.13.6.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.13.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.13.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.15.4.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.15.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.17.12.2 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.17.12.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.17.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.17.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.17.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.17.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.19.38.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.19.34.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.19.32.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.19.18.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.20.16.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.20.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.21.4.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.21.4.3 |
| 16-May-2009 |
yamt | sync with head
|
1.21.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.21.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.21.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.22.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.22.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.23.4.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.23.2.2 |
| 28-Jul-2008 |
simonb | Sync with head.
|
1.23.2.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
1.26.8.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.26.2.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.31.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.39.4.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.39.2.1 |
| 31-May-2011 |
rmind | sync with head
|
1.41.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.41.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.42.6.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.43.2.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.43.2.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.45.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.47.14.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.48.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|