CVS log for src/sys/arch/x86/pci/pcib.c
Up to [cvs.NetBSD.org] / src / sys / arch / x86 / pci
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:08 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -4
lines
Merge thorpej-cfargs2.
Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 03:03:30 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +3 -4
lines
Adapt to CFARGS().
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:51 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -3
lines
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?).
Revision 1.19.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 24 14:21:08 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +10 -3
lines
Don't filter interface attributes in rescan functions for devices that
carry only a single interface attribute. The autoconfiguration machinery
already considers interface attributes when searching for possible parents.
Revision 1.16.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:11 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.16.4.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.4.1: +4 -3
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Oct 4 12:23:37 2019 UTC (5 years, 5 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: thorpej-cfargs
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2
lines
add missing break.
surely it is not intended to treat viatech devices with
non VT82C686A's device id as maybe cyrix pci bridges.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jun 17 06:38:29 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
KNF. No functional change.
Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:53 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:33 2019 UTC (6 years, 1 month ago) by cherry
Branches: MAIN
CVS tags: phil-wifi-20190609,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
We reorganise definitions for XEN source support as follows:
XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Mar 4 13:24:17 2018 UTC (7 years ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat
Branch point for: phil-wifi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5
lines
according to VT82C686A chip specs, the VIA Technologies device 0x3057
is more a Power Management controller, rename the pcidevs entry and device
macro
PR kern/31963 by Nicolas Joly
Revision 1.13.6.2: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:43 2012 UTC (12 years, 10 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.13.6.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.6.1: +4 -9
lines
sync to latest -current.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:06 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +5 -15
lines
sync with head
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Apr 6 20:38:52 2012 UTC (12 years, 11 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-maxphys-base-20171202,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
nick-nhusb,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -9
lines
device_pmf_is_registered() is not required
Revision 1.13.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:33:35 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -8
lines
merge to -current.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jan 30 19:41:18 2012 UTC (13 years, 1 month ago) by drochner
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -8
lines
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
Revision 1.7.8.4: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:37:30 2011 UTC (13 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.7.8.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.8.3: +3 -3
lines
Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.
No regression observed on suspend/restore.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jul 1 18:22:08 2011 UTC (13 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
#include <sys/bus.h> instead of <machine/bus.h>.
Revision 1.7.8.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:17 2010 UTC (14 years, 5 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.7.8.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.8.2: +4 -11
lines
Sync with HEAD
Revision 1.3.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:56 2010 UTC (14 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.4.5: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.5: +4 -4
lines
sync with head.
Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:12 2010 UTC (14 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +4 -4
lines
sync with head
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:58 2010 UTC (14 years, 10 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +4 -4
lines
Sync with HEAD.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Apr 28 19:17:04 2010 UTC (14 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base7,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
On x86, change the bus_space_tag_t to a pointer to a struct
bus_space_tag. For now, bus_space_tag's only member is
bst_type, the type of space, which is either X86_BUS_SPACE_IO
or X86_BUS_SPACE_MEM. In the future, new bus_space_tag members
will refer to override-functions installed by a new function,
bus_space_tag_create(9).
Add pointers to constant struct bus_space_tag, x86_bus_space_io and
x86_bus_space_mem. Use them to replace most uses of X86_BUS_SPACE_IO
and X86_BUS_SPACE_MEM.
Add an x86-specific bus_space_is_equal(9) implementation that compares
the two tags' bst_type.
Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:08 2010 UTC (15 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.4.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +2 -9
lines
sync with head
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 8 00:09:45 2010 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -9
lines
Move all copies of ifattr_match() to sys/kern/subr_autoconf.c.
Revision 1.7.8.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:17 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.7.8.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.8.1: +36 -19
lines
Sync with HEAD.
Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:44 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +3 -4
lines
sync with head
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Aug 23 15:42:51 2009 UTC (15 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
matt-premerge-20091211
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -4
lines
Save a line of dmesg by printing the vendor/product info on the same line
as the locators.
Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:50 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +35 -17
lines
sync with head.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Aug 18 17:15:10 2009 UTC (15 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base7
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +35 -17
lines
Allow detachment and re-attachment of an ISA bus at an PCI-ISA bus
bridge, isa0 at pcib0.
Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:45 2009 UTC (15 years, 10 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -4
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:10 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +10 -11
lines
sync with head.
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:56 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +5 -4
lines
Sync with HEAD.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Apr 2 00:09:32 2009 UTC (15 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -4
lines
During shutdown, detach devices in an orderly fashion.
Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.
Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks. For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.
Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown. Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags. Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).
Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.
Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag. The default for kern.detachall is 0. SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.
This is a work in progress. In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.
Also commit some changes that are not easily untangled from the rest:
(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.
(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs. Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.
Revision 1.4.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:07 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +7 -9
lines
Sync with HEAD.
Revision 1.2.10.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:12 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.2.10.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.10.2: +5 -7
lines
Sync with HEAD.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:38 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +7 -9
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Aug 4 06:01:18 2008 UTC (16 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
nick-hppapmap-base2,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
jym-xensuspend
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4
lines
struct cfdata -> cfdata_t
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Aug 3 19:32:03 2008 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -2
lines
Move some MD declarations from x86/pci/files.pci to x86/conf/files.x86,
so that Xen can use the former.
Drop Xen's pcib.c in favor of the x86 code and thereby unbreak ichlpcib.
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:26 2008 UTC (16 years, 7 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +3 -7
lines
Sync with head.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jul 20 16:50:29 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
CVS tags: simonb-wapbl-nbase,
simonb-wapbl-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -7
lines
Make the softc externally visible, so other bridges reusing this code
don't have to "get it right" manually.
Revision 1.2.10.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:51 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.2.10.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.10.1: +0 -7
lines
Sync with HEAD.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:04 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +2 -9
lines
sync with head.
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:28 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -9
lines
sync with head.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:40 2008 UTC (16 years, 10 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl,
haad-dm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:30 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +30 -11
lines
Sync with HEAD.
Revision 1.2.6.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:09 2008 UTC (17 years ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +30 -11
lines
sync with head.
Revision 1.1.8.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:28 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.8.3: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.3: +30 -11
lines
sync with HEAD
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:29 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.3: +30 -11
lines
sync with head.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 22 23:32:24 2008 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +30 -11
lines
Add methods to detach self and children.
Use device_t and accessors. Use aprint_*_dev().
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:40:12 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +20 -3
lines
sync with head
Revision 1.1.8.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:49:52 2008 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.8.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.8.2: +20 -3
lines
sync with HEAD
Revision 1.1.14.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:42:57 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +20 -3
lines
Sync with head.
Revision 1.1.16.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:20:55 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +20 -3
lines
sync with head.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:27:49 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +20 -3
lines
Merge jmcneill-pm branch.
Revision 1.1.4.5: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:20:59 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.1.4.4: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.4: +4 -4
lines
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.1.12.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 19:04:30 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.1.12.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.12.1: +444 -0
lines
Sync with HEAD.
Revision 1.1.10.2: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:00:20 2007 UTC (17 years, 4 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.1.10.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.10.1: +222 -0
lines
Sync with HEAD
Revision 1.1.4.4: download - view: text, markup, annotated - select for diffs
Mon Nov 12 19:25:23 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.1.4.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.3: +2 -3
lines
CG unused softc fields.
Revision 1.1.8.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:23:44 2007 UTC (17 years, 4 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.8.1: +222 -0
lines
sync with HEAD
Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:10 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.2: +5 -53
lines
Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
three layers (class logic, device logic, bus logic), all of them being
optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
not suspended (even partially), device_is_enabled returns true if the
device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
pnp_system_resume. Before running any suspend/resume handlers, check
that all currently attached devices support power management and bail
out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
can register what events they are interested in and whether the handler
should be global or not.
- Introduce device_active API for devices to mark themselve in use from
either the system or the device. Use this to implement the idle handling
for audio and input devices. This is intended to replace most ad-hoc
watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Sun Oct 28 20:11:00 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +288 -0
lines
Sync with HEAD.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:28:58 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +222 -0
lines
sync with head.
Revision 1.1.12.1
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
FILE REMOVED
Changes since revision 1.1: +0 -222
lines
file pcib.c was added on branch vmlocking on 2007-12-03 19:04:29 +0000
Revision 1.1.10.1
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by bouyer
Branches: bouyer-xenamd64
FILE REMOVED
Changes since revision 1.1: +0 -222
lines
file pcib.c was added on branch bouyer-xenamd64 on 2007-11-13 16:00:20 +0000
Revision 1.1.8.1
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.1: +0 -222
lines
file pcib.c was added on branch matt-armv6 on 2007-11-06 23:23:44 +0000
Revision 1.1.4.1
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.1: +0 -222
lines
file pcib.c was added on branch jmcneill-pm on 2007-10-28 20:11:00 +0000
Revision 1.1.2.1
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.1: +0 -222
lines
file pcib.c was added on branch yamt-lazymbuf on 2007-10-27 11:28:58 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 22:17:14 2007 UTC (17 years, 4 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
mjf-devfs,
jmcneill-pm-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: yamt-lazymbuf,
yamt-kmem,
vmlocking2,
vmlocking,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Share pcib(4) and amdpcib(4) between i386 and amd64; one copy is enough.
CVSweb <webmaster@jp.NetBSD.org>