CVS log for src/sys/dev/cardbus/cardbus.c
Up to [cvs.NetBSD.org] / src / sys / dev / cardbus
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Aug 24 11:19:24 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
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.114: preferred, colored
Changes since revision 1.114: +4 -6
lines
pmf(9): *_child_register never fails. Make it return void.
No kernel bump because this isn't documented or used in any modules,
only in dev/pci/pci.c and dev/cardbus/cardbus.c which are as far as I
know always statically linked into the kernel.
The next change, however, will require a revbump -- to make
pmf_device_register return void so we can prune vast swaths of dead
error branches.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Sat Mar 26 13:41:16 2022 UTC (2 years, 8 months ago) by martin
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +25 -6
lines
When reading CIS tuples from a BAR, do not blindly copy 2k of data (or
to the end of the BAR space), but instead follow the tuples and stop
reading once we reach the end of the list.
I have a card
bwi0 at cardbus0 function 0: Broadcom Wireless
bwi0: BBP id 0x4306, BBP rev 0x2, BBP pkg 0
where the BAR claims 8k space but seems to only implement 6k (but that
is impossible to report as the spec only allows 2^n sizes) and the CIS
starts at a bit over 4k (so the old code tried reading beyound the 6k
limit and caused pci bus errors).
An alternative would be to avoid reporting bus errors during this access,
but since we are only interested in the CIS chain anyway (and that ends
way earlier) this is a simpler solution.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Nov 1 21:28:03 2021 UTC (3 years, 1 month ago) by andvar
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3
lines
fix typos, mainly in words minimum and maximum, but also few others.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:10 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -5
lines
Merge thorpej-cfargs2.
Revision 1.111.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 17:31:16 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +4 -5
lines
Adapt to CFARGS().
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:53 2021 UTC (3 years, 7 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.110: preferred, colored
Changes since revision 1.110: +6 -4
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.110.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 16:23:44 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.110.4.1: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.4.1: +2 -3
lines
Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
Revision 1.110.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 22 02:00:59 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +7 -4
lines
Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Jun 12 15:34:20 2020 UTC (4 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +4 -4
lines
pmf-powerdown == false --> pmf-no-powerdown == true
Revision 1.108.54.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:19 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +4 -7
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:34 2019 UTC (5 years, 1 month ago) by chs
Branches: MAIN
CVS tags: 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
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -7
lines
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Aug 1 11:20:27 2011 UTC (13 years, 4 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
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,
phil-wifi-base,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
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,
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-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,
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,
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-nb8-mediatek-base,
matt-nb8-mediatek,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
localcount-20160914,
khorben-n900,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes,
jdolecek-ncq-base,
jdolecek-ncq,
isaki-audio2-base,
isaki-audio2,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Branch point for: phil-wifi
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +7 -10
lines
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
Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:09 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +84 -93
lines
Sync with HEAD.
Revision 1.91.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:24 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.4.2: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.4.2: +84 -99
lines
sync with head
Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Mar 4 22:37:38 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
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.106: preferred, colored
Changes since revision 1.106: +2 -6
lines
Get rid of the #if 1 surrounding #include <dev/cardbus/rbus.h>.
This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.
ath, atw, and rtw work fine after this change.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Feb 26 01:12:56 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +16 -2
lines
Introduce Cardbus_intr_establish(cardbus_devfunc_t, ...) and
Cardbus_intr_disestablish(cardbus_devfunc_t, ...) and start using them.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Feb 26 00:57:01 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +34 -34
lines
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.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Feb 25 21:18:35 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -5
lines
Phase out some CardBus constants and types. Use the equivalent PCI
constants and types, instead:
CARDBUS_CLASS_REG -> PCI_CLASS_REG
CARDBUS_ID_REG -> PCI_ID_REG
cardbus_product_id_t -> pci_product_id_t
cardbus_vendor_id_t -> pci_vendor_id_t
Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Feb 25 00:47:39 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -4
lines
Cardbus_free_tag() and cardbus_free_tag() are no-ops, so get rid of them
to simplify the code a bit.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Feb 24 23:38:40 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +33 -34
lines
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.
Poison new uses of cardbusreg_t and cardbustag_t by deleting the type
definitions.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:57 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -4
lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Feb 23 19:28:00 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -18
lines
Remove unused functions pci_disable_retry() and cardbus_disable_retry().
Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Jan 8 19:47:42 2010 UTC (14 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -4
lines
Expand PMF_FN_* macros.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Dec 15 22:17:12 2009 UTC (14 years, 11 months ago) by snj
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -8
lines
Move to 2-clause license. Approved by HAYAKAWA Koichi (copyright holder).
Revision 1.91.4.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:19 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.4.1: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.4.1: +4 -4
lines
sync with head
Revision 1.95.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:15 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +6 -6
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue May 12 12:11:17 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -4
lines
struct cfdata * -> cfdata_t, no functional changes intended.
Revision 1.91.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:35 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +39 -35
lines
sync with head.
Revision 1.95.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:20 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +4 -4
lines
Sync with HEAD.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Apr 2 00:09:33 2009 UTC (15 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -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.91.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:02 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.91.6.1: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.6.1: +22 -27
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.87.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:05 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.87.6.1: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.6.1: +36 -32
lines
Sync with HEAD.
Revision 1.91.8.2: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:20 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.91.8.1: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.8.1: +22 -27
lines
Sync with head.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Jun 25 11:42:32 2008 UTC (16 years, 5 months ago) by drochner
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
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,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
jym-xensuspend
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +21 -19
lines
split device/softc for pccbb, the cardbus half of cardslot and cardbus
(not yet pcmcia, there is a lot of md code involved)
Revision 1.94: download - view: text, markup, annotated - select for diffs
Tue Jun 24 19:44:52 2008 UTC (16 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3
lines
clean up the cardbus interrupt stuff:
There were cardbus_intr_line_t and cardbus_intr_handle_t used intermixed
for the same variable, and that variable is pretty much useless because
cardbus doesn't follow the PCI interrupt swizzling etc scheme.
Useless interrupt numbers were printed on cardbus device attach.
So as a first step to sanity, kill cardbus_intr_handle_t and poison
cardbus_intr_line_t to discourage printing it as a %d.
Use cardbus_intr_line_t consistently throughout the code.
Remove the "interrupting at foo" messages because the information
is misleading. We could come up with a better interrupt vector
information, but because cardbus interrupts are mediated by pccbb
it would still be misleading.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Jun 24 17:32:09 2008 UTC (16 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -9
lines
clean up some useless code and variables in cardbus attachment
Revision 1.91.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:01 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +18 -9
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.91.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:04 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +18 -9
lines
Sync with head.
Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:33 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +18 -9
lines
sync with head.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Jun 11 07:01:54 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +18 -9
lines
*Always* update the desired power status of each CardBus function,
even if we cannot remove power from the function because its device
property 'pmf-powerdown' is present and equal to false.
Because we were not tracking the power status properly before, we
were not taking cards out of reset after a suspend/resume cycle on
their CardBus bridge. We would lose the use of the card that way.
Revision 1.87.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:38 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +35 -33
lines
Sync with HEAD.
Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:15 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +35 -33
lines
sync with head.
Revision 1.75.18.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:36 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.75.18.2: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.18.2: +37 -33
lines
sync with HEAD
Revision 1.61.4.9: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:40 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.8: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.4.8: +7 -4
lines
sync with head.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Mar 12 18:02:21 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
hpcarm-cleanup-nbase,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa,
simonb-wapbl
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +6 -3
lines
Use device_t and its accessors throughout. Use aprint_*_dev().
Improve PMF-ability.
Add a 'flags' argument to suspend/resume handlers and
callers such as pmf_system_suspend().
Define a flag, PMF_F_SELF, which indicates to PMF that a
device is suspending/resuming itself. Add helper routines,
pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
that call pmf_device_suspend(dev, PMF_F_SELF) and
pmf_device_resume(dev, PMF_F_SELF), respectively. Use
PMF_F_SELF to suspend/resume self in ath(4), audio(4),
rtw(4), and sip(4).
In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
callbacks, provided by the bus front-end, with
self-suspension/resumption. Also, clean up the bus
front-ends. Make sure that the interrupt handler is
disestablished during suspension. Get rid of driver-private
flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
device_is_active()/device_has_power() calls, instead.
In the network-class suspend handler, call if_stop(, 0)
instead of if_stop(, 1), because the latter is superfluous
(bus- and driver-suspension hooks will 'disable' the NIC),
and it may cause recursion.
In the network-class resume handler, prevent infinite
recursion through if_init() by getting out early if we are
self-suspending (PMF_F_SELF).
rtw(4) improvements:
Destroy rtw(4) callouts when we detach it. Make rtw at
pci detachable. Print some more information with the "rx
frame too long" warning.
Remove activate() methods:
Get rid of rtw_activate() and ath_activate(). The device
activate() methods are not good for much these days.
Make ath at cardbus resume with crypto functions intact:
Introduce a boolean device property, "pmf-powerdown". If
pmf-powerdown is present and false, it indicates that a
bus back-end should not remove power from a device.
Honor this property in cardbus_child_suspend().
Set this property to 'false' in ath_attach(), since removing
power from an ath at cardbus seems to lobotomize the WPA
crypto engine. XXX Should the pmf-powerdown property
propagate toward the root of the device tree?
Miscellaneous ath(4) changes:
Warn if ath(4) tries to write crypto keys to suspended
hardware.
Reduce differences between FreeBSD and NetBSD in ath(4)
multicast filter setup.
Make ath_printrxbuf() print an rx descriptor's status &
key index, to help debug crypto errors.
Shorten a staircase in ath_ioctl(). Don't check for
ieee80211_ioctl() return code ERESTART, it never happens.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Feb 28 14:25:12 2008 UTC (16 years, 9 months ago) by drochner
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3
lines
Extend the pmf suspend/resume hooks by a shutdown method, so drivers
can register a shutdown handler explicitely.
Install a pci bus shutdown handler which disables bus master accesses
for all childs, so the drivers don't need to care.
This will hopefully be sufficient to replace the shutdownhooks
(together with the powerhooks). (It has been suggested to use some
general event notification framework for shutdown handlers, but there
might be cases where shutdown handlers must be run in an order following
the device hierarchy, which wouldn't be easy with event handlers
not tied to drivers.)
approved by David Young
Revision 1.61.4.8: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:31 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.7: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.7: +30 -31
lines
sync with head.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Feb 23 00:30:56 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: hpcarm-cleanup-base
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -7
lines
Reduce diffs between cardbus_set_powerstate_int() and
pci_set_powerstate_int().
Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Feb 22 23:30:42 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +29 -26
lines
Make the CardBus D2/D3 power-handling more alike to PCI's, but
without the typos. :-)
Use device_t and accessors. Use aprint_*_dev(). Use PMF_FN_*.
Revision 1.76.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:36 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.76.2.3: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.3: +16 -11
lines
Sync with HEAD.
Revision 1.61.4.7: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:33 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.6: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.6: +4 -2
lines
sync with head.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Feb 6 22:06:28 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -2
lines
Assert that 'offset' is divisible by four, since we're using it to
index a PCI configuration register.
Revision 1.61.4.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:39 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.5: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.5: +232 -81
lines
sync with head
Revision 1.75.18.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:28 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.75.18.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.18.1: +274 -102
lines
sync with HEAD
Revision 1.81.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:57 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.81.2.1: preferred, colored; branchpoint 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +8 -6
lines
Sync with HEAD
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jan 3 23:15:43 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +7 -6
lines
Disable pci_disable_retry() and cardbus_disable_retry(), with a
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Jan 2 23:04:25 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3
lines
Don't assign a cardbus function tag to a cardbus chipset tag.
Michael Lorenz, macallan@, actually found this bug.
(I will change cardbus_chipset_tag_t to a struct * from void *, so
that the compiler will detect similar typos in the future.)
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jan 2 22:29:00 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -3
lines
Do not read past the CIS region. Stops an MCHK exception on macppc
(reported by macallan@).
I originally detected this bug by activating 'PCI master target
abort' interrupts on the AMD Elan SC520 processor. Lo and behold,
several interrupts occurred before the system had finished booting!
NetBSD should probably activate PCI exception reporting whenever
it is available.
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:57 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +20 -6
lines
Sync with HEAD
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Jan 2 02:05:19 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +6 -5
lines
Add a debug message with aprint_debug_dev(). Use the right bus
tag.
Revision 1.76.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:57 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.76.2.2: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.2: +225 -77
lines
Sync with HEAD.
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:04 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +225 -77
lines
Sync with head.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Dec 16 21:28:30 2007 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +16 -3
lines
Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment
of this entire device tree:
pci0 at mainbus0
elansc0 at pci0
gpio0 at elansc0
cbb0 at pci0
cardslot0 at cbb0
cardbus0 at cardslot0
pcmcia0 at cardslot0
cbb1 at pci0
cardslot1 at cbb1
cardbus1 at cardslot1
rtw0 at cardbus1
pcmcia1 at cardslot1
sip0 at pci0
nsphyter0 at sip0
sip1 at pci0
nsphyter1 at sip1
Whew!
Revision 1.80.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:25:32 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +211 -76
lines
sync with head.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:27:55 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +211 -76
lines
Merge jmcneill-pm branch.
Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:25 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.76.2.1: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.2.1: +7 -6
lines
Sync with HEAD.
Revision 1.75.16.9: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:07 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.75.16.8: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.16.8: +8 -8
lines
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.61.4.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:41 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.4: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.4: +44 -23
lines
sync with head
Revision 1.75.16.8: download - view: text, markup, annotated - select for diffs
Sat Dec 1 17:57:26 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.75.16.7: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.7: +3 -3
lines
Sync with HEAD.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Dec 1 17:56:59 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem,
vmlocking2
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
One of these aprint_normals should have been aprint_naive
Revision 1.75.16.7: download - view: text, markup, annotated - select for diffs
Sat Dec 1 05:51:31 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.75.16.6: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.6: +7 -6
lines
Sync with HEAD.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Dec 1 05:51:16 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +7 -6
lines
aprintify
Revision 1.75.16.6: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:54:24 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.75.16.5: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.5: +40 -20
lines
Sync with HEAD.
Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:45 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +40 -20
lines
Sync with HEAD.
Revision 1.75.22.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:18 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.75.22.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.22.1: +38 -18
lines
Sync with HEAD
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Nov 16 20:25:47 2007 UTC (17 years ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -4
lines
Take out some debug messages that accidentally slipped in. Thanks,
Bernd Ernesti, for letting me know! :-)
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Nov 16 18:36:52 2007 UTC (17 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +42 -20
lines
Improve Cardbus performance, error handling, and error reporting.
Let the TI1420 PCI-Cardbus bridge do burst reads from the primary
(PCI) bus. This ought to improve Tx performance on Cardbus NICs.
This optimization may apply to other TI bridges, but I only have
a datasheet for the TI1420. :-/
Activate PCI Parity Error and System Error reporting on PCI-Cardbus
bridges.
To avoid data destruction, set the Master Abort mode to 1. Stops
the bridge from silently discarding writes from the secondary bus
to the primary bus (Cardbus writes to PCI). Also, stops the bridge
from fulfilling a read by a bus master on the secondary bus that
failed on the primary bus with 0xffffffff (Cardbus reads from PCI).
Now the bus will indicate an error condition (SERR) instead of
silently destroying/corrupting data.
Forward system error indications from the secondary to the primary
bus. Detect parity errors on the secondary.
Set a Cardbus card's Latency Timer to something reasonable, according
to the Cardbus card's Minimum Grant and the bandwidth available on
the PCI bus. Restore the Latency Timer when re-enabling a card
(e.g., after power reactivation).
Revision 1.75.18.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:48 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
sync with HEAD
Revision 1.75.16.5: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:15 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.75.16.4: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.4: +71 -198
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.61.4.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:08 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.3: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.3: +3 -3
lines
sync with head.
Revision 1.75.16.4: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:18 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.75.16.3: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.3: +3 -3
lines
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.
Revision 1.75.22.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:11 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
Sync with HEAD.
Revision 1.75.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:06:56 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +3 -3
lines
Sync with head.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:38 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.75.16.3: download - view: text, markup, annotated - select for diffs
Thu Oct 4 21:43:28 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.75.16.2: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.2: +249 -50
lines
Port generic PCI power handlers to cardbus.
Revision 1.75.16.2: download - view: text, markup, annotated - select for diffs
Tue Sep 11 11:51:22 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.75.16.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.16.1: +3 -2
lines
Missing break after PNP_REQUEST_SET_STATE case in cardbus_net_generic_power
Revision 1.75.16.1: download - view: text, markup, annotated - select for diffs
Thu Aug 23 14:22:37 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +134 -72
lines
Provide cardbus_{set,get}_powerstate instead of the former
cardbus_powerstate / cardbus_setpowerstate.
Provide cardbus_conf_{capture,restore} and cardbus_net_generic_power.
In general: reduce diff to PCI.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:51 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +4 -4
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.61.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:00 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.2: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.2: +4 -4
lines
sync with head.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Feb 17 20:20:08 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-idlelwp-base8,
vmlocking-base,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
mjf-ufs-trans,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup,
ad-audiomp-base,
ad-audiomp
Branch point for: vmlocking,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4
lines
Use the ("%s: ...", __func__) idiom to correct function names and
help them stay correct.
Revision 1.61.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:57 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.4.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.4.1: +4 -3
lines
sync with head.
Revision 1.72.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:58 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.72.8.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.8.1: +7 -7
lines
sync with head.
Revision 1.72.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:04 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +4 -3
lines
Sync with head.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:48 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: yamt-idlelwp
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +7 -7
lines
__unused removal on arguments; approved by core.
Revision 1.72.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:35 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +8 -7
lines
sync with head
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:55 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +8 -7
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.68.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:44 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +16 -13
lines
sync with head
Revision 1.68.8.2: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:50:37 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.68.8.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.8.1: +8 -6
lines
sync with head.
Revision 1.61.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:45 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +32 -60
lines
sync with head.
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:12 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +8 -6
lines
Sync with head.
Revision 1.68.6.2: download - view: text, markup, annotated - select for diffs
Wed Jun 7 15:51:08 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
Diff to: previous 1.68.6.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.6.1: +8 -6
lines
Sync with head.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Jun 4 19:27:59 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
simonb-timecounters-base,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +8 -6
lines
Don't allocate 2K on the stack...
Revision 1.68.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:51 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +10 -9
lines
Sync with head.
Revision 1.68.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:32 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +10 -9
lines
sync with head.
Revision 1.68.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:54 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +10 -9
lines
sync with head.
Revision 1.68.12.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:18 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +10 -9
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Mar 29 06:22:38 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
elad-kernelauth-base
Branch point for: chap-midi
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -5
lines
Use device_private().
Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Mar 29 06:00:46 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3
lines
Replace device_locators() with device_locator(), and use it.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:29 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +6 -5
lines
Use device_unit().
Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 24 22:31:52 2006 UTC (18 years, 8 months ago) by riz
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +7 -6
lines
Pull up following revision(s) (requested by drochner in ticket #1214):
sys/dev/cardbus/cardbus.c: revision 1.65
fix parsing of some informational CIS tuples: correct length and handle
the case correctly where a string is terminated with 0x00 0xff
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:15 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2
lines
merge ktrace-lwp.
Revision 1.47.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:54 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.6: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.6: +18 -49
lines
Sync with HEAD. Here we go again...
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 26 08:32:45 2005 UTC (19 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -4
lines
sync with head
Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Oct 25 16:37:50 2005 UTC (19 years, 1 month ago) by drochner
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -4
lines
finally nuke the useless cardbus "dev" locator
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Sep 9 14:50:58 2005 UTC (19 years, 3 months ago) by drochner
Branches: MAIN
CVS tags: yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +8 -17
lines
remove the useless (always 0) device number from cardbus driver state,
autoconf attach structures and configuration cycle functions
(just leave the kernel configuration attribute for now to avoid breaking
config(1) files)
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Sep 8 15:02:48 2005 UTC (19 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +7 -6
lines
fix parsing of some informational CIS tuples: correct length and handle
the case correctly where a string is terminated with 0x00 0xff
Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Aug 26 11:01:42 2005 UTC (19 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3
lines
use XXXCF_NLOCS constants instead of magic numbers
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Aug 25 22:33:18 2005 UTC (19 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -23
lines
kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
then fail
else
ask device match function
This is handled by config_stdsubmatch() now.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Aug 25 18:35:39 2005 UTC (19 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +9 -11
lines
replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:46 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +5 -5
lines
sync with -current
Revision 1.60.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:55 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +5 -5
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.47.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:02 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.5: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.5: +5 -5
lines
Sync with HEAD.
Hi Perry!
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:59 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
kent-audio2-base
Branch point for: yamt-lazymbuf,
netbsd-3
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -5
lines
nuke trailing whitespace
Revision 1.47.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:45 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.4: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.4: +52 -33
lines
Sync with HEAD
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Oct 14 03:24:00 2004 UTC (20 years, 2 months ago) by enami
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +16 -16
lines
Redo previous two commit a bit different way;
- Just read as much as we can.
- Handle some special tuples.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Oct 10 22:26:34 2004 UTC (20 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3
lines
Terminate the search loop when something is found rather than when
first iteration is done.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Oct 10 22:10:06 2004 UTC (20 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -2
lines
One more obvious test.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Oct 10 22:00:36 2004 UTC (20 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +28 -17
lines
Don't overrun when decoding tuples.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Oct 10 21:58:46 2004 UTC (20 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +21 -16
lines
Cosmetic changes.
Revision 1.47.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:25 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.3: +2 -2
lines
Fix the sync with head I botched.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:26 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.2: +2 -2
lines
Sync with HEAD.
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:57:34 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +93 -43
lines
Sync with HEAD.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Aug 23 18:21:51 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -2
lines
it is sufficient to include "locators.h" in cardbus.c
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Aug 23 17:52:45 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +21 -50
lines
kick out the error-prone handcrafted single-linked list of cardbus
functions; replace by a simple *array[8]
Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Aug 23 16:41:48 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +16 -7
lines
make the "selective probing" work, and minor cleanup
(avoid using the macros which hide cfdata members, this doesn't help
for anything)
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Aug 19 14:50:52 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +95 -27
lines
support rescan / manual detach
This code needs cleanup, at least a reasonable linked list
implementation (fixed a bug in detach_card() in the process which
left a dangling pointer around).
Also removed a questionable and undocumented use of the parent's
device unit number as locator value.
(As with the pcmcia code: someone please review wrt powerup/down etc.)
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:45:46 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +128 -10
lines
Sync with HEAD
Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Aug 2 19:14:28 2004 UTC (20 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4
lines
cardbusdevs -> pcidevs
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 23 22:15:16 2004 UTC (20 years, 4 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +9 -7
lines
Pull up revision 1.50 (requested by mycroft in ticket #692):
If the CIS pointer is all-0s, don't try to read the CIS.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Jul 22 16:18:32 2004 UTC (20 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -7
lines
If the CIS pointer in all-0s, don't try to read the CIS.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat May 8 23:40:01 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +117 -2
lines
Cleanup and remove suplicate copies of the incorrect power setup code.
Thanks to mycroft for suggesting this.
XXX: This is a copy of the pci code; another reason cardbus needs to die.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Apr 23 21:13:07 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3
lines
pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
Revision 1.28.2.8: download - view: text, markup, annotated - select for diffs
Fri Jan 3 17:07:34 2003 UTC (21 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.28.2.7: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.7: +9 -12
lines
Sync with HEAD.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jan 1 00:10:17 2003 UTC (21 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-2-0-base,
nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Branch point for: netbsd-2-0,
ktrace-lwp
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -12
lines
Use aprint_normal() in cfprint routines.
Revision 1.28.2.7: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:33 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.6: preferred, colored
Changes since revision 1.28.2.6: +7 -8
lines
Catch up to -current.
Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:31 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.35.2.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.2: +7 -8
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Oct 2 16:33:40 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Add trailing ; to CFATTACH_DECL.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Sep 30 20:52:26 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -5
lines
Use CFATTACH_DECL().
Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Sep 27 20:37:40 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
Declare all cfattach structures const.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Sep 27 03:18:09 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Sep 27 02:24:29 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:45:56 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.1: +4 -5
lines
catch up with -current on kqueue branch
Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:32:58 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +4 -5
lines
catch up with -current.
Revision 1.28.2.6: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:44:21 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.5: preferred, colored
Changes since revision 1.28.2.5: +4 -5
lines
Catch up to -current.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jun 1 23:50:56 2002 UTC (22 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -5
lines
SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:53:43 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +16 -11
lines
Sync kqueue branch with -current.
Revision 1.28.2.5: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:23 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.4: preferred, colored
Changes since revision 1.28.2.4: +2 -6
lines
Catch up to -current.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Nov 23 10:20:47 2001 UTC (23 years ago) by enami
Branches: MAIN
CVS tags: newlock-base,
newlock,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -7
lines
Use __func__ instead of __FUNCTION__.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Nov 21 09:08:38 2001 UTC (23 years ago) by enami
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +7 -9
lines
Don't use __func__ as variable. It prevents compilation.
Use __FUNCTION__ instead.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Nov 15 09:48:02 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -3
lines
don't need <sys/types.h> when including <sys/param.h>
Revision 1.28.2.4: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:14:00 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.3: preferred, colored
Changes since revision 1.28.2.3: +16 -7
lines
Catch up to -current.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Nov 13 12:51:12 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -1
lines
add RCSID
Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:17:57 2001 UTC (23 years, 1 month ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +13 -7
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Nov 6 03:11:10 2001 UTC (23 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +13 -7
lines
Make some messages only appear with bootverbose.
Add bus number to attach args.
Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:05 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.2: preferred, colored
Changes since revision 1.28.2.2: +6 -1
lines
Catch up with -current.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Jul 6 18:05:25 2001 UTC (23 years, 5 months ago) by mcr
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2,
thorpej-devvp-base,
thorpej-devvp,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-mips-cache,
kqueue
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -1
lines
record handles for memory and io spaces
Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:01:21 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.1: preferred, colored
Changes since revision 1.28.2.1: +28 -8
lines
Catch up to -current.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed May 9 18:16:39 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -1
lines
Make sure `bhlc' is initialzed before we consult it to determine
the number of functions on the card.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed May 9 12:06:25 2001 UTC (23 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
Fix grammaer in error message.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Apr 25 09:29:36 2001 UTC (23 years, 7 months ago) by haya
Branches: MAIN
CVS tags: thorpej_scsipi_beforemerge
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +20 -8
lines
Initialise all function's latency timer and cacheline size.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Apr 25 09:20:32 2001 UTC (23 years, 7 months ago) by haya
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -1
lines
Set function-in-use flag before calling power control function in
order to prevent turn on power twice. This change does not prevent
power-off/power-on conflicts.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:48:17 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.3.2.1: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +601 -650
lines
Sync with HEAD
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:55:53 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +601 -650
lines
Catch up with -current.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Mar 28 01:55:55 2001 UTC (23 years, 8 months ago) by enami
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_base
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -10
lines
- Unmap space used to read tuple.
- No need to zero clear temporary storage twice.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Mar 28 01:53:14 2001 UTC (23 years, 8 months ago) by enami
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +604 -649
lines
Cosmetic changes; mostly knf.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:39:52 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +501 -180
lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 12 12:42:03 2000 UTC (24 years, 2 months ago) by wiz
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2
lines
typo in comment (consifuration -> configuration)
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jul 2 06:25:46 2000 UTC (24 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -6
lines
nuke some final __BROKEN_INDIRECT_CONFIG bits that weren't caught by
unifdef last time. (bloody things just won't stay dead!)
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:06:20 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +1 -22
lines
Sync w/ netbsd-1-5-base.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Jun 16 23:41:33 2000 UTC (24 years, 6 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -22
lines
beat back the undead: __BROKEN_INDIRECT_CONFIG had risen, and was
terrorizing innocent hackers...
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Apr 17 09:16:38 2000 UTC (24 years, 7 months ago) by joda
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -3
lines
extract serial funce
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Apr 2 19:11:37 2000 UTC (24 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1
lines
Add a flag to tell whether a MAC address was actually found in the CIS.
XXX This whole piece of code should go away ASAP. We should use a callback
as in the PCMCIA code. In fact, we should use the PCMCIA code...
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Mar 22 09:35:06 2000 UTC (24 years, 8 months ago) by haya
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -18
lines
1. Do not apply 5 V on a CardBus card.
2. Do not avoid ISA hole when a device requires more than
256-byte io space.
3. Remove sending CardBus bridge's function number to
cardbus stack. This number is not needed for anyone.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Mar 7 09:36:52 2000 UTC (24 years, 9 months ago) by haya
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2
lines
Fix CardBus device number. Though CardBus device number should be 0,
the value of bridge's function number was assigned to the device
number.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 7 00:30:57 2000 UTC (24 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -5
lines
Called the power function even for 5V cards. This at least gives the power
a chance to stabilize before we frob the card.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Feb 18 18:55:31 2000 UTC (24 years, 9 months ago) by soren
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -7
lines
Remove redundant CIS definitions.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 31 08:49:07 2000 UTC (24 years, 10 months ago) by haya
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +13 -4
lines
Force power off when a CardBus card is detached.
Use tsleep when kernel thread works.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jan 26 09:04:59 2000 UTC (24 years, 10 months ago) by haya
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +43 -3
lines
Add cardbus detach functionality. Add a function
cardbus_detach_card() in cardbus.c and enable detach code in cardslot.c
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Jan 13 10:27:31 2000 UTC (24 years, 11 months ago) by joda
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4
lines
(cardbus_attach_card): zero out ca
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:37 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +1 -1
lines
Pull up to last week's -current.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Dec 11 00:29:11 1999 UTC (25 years ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Branch point for: wrstuden-devbsize
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +43 -3
lines
Add cardbus_get_capability(), cloned from pci_get_capability().
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Nov 18 16:57:41 1999 UTC (25 years ago) by joda
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -1
lines
include dev/cardbus/cardbusdevs.h
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Nov 18 15:11:15 1999 UTC (25 years ago) by joda
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2
lines
use CARDBUS_VENDOR_INVALID
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Nov 15 06:01:11 1999 UTC (25 years, 1 month ago) by haya
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +78 -68
lines
Fill 0 into CardBus base address registers before a card is
configured.
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:16 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +419 -171
lines
Sync with -current
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Nov 12 18:18:38 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -3
lines
(cardbus_attach_card): don't free cc
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Nov 9 15:03:59 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3
lines
make this compile with CARDBUS_DEBUG
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 8 20:19:10 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +149 -50
lines
Let decode_tuples take function to call for each tuple, and use this
to get some vital information from the CIS (some network cards need
this to get the mac-address). This should be merged with the related
code for PCMCIA cards, but that requires more thought.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Nov 1 09:59:23 1999 UTC (25 years, 1 month ago) by haya
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +14 -14
lines
Change the interface of cardbus_function_enable() and
cardbus_function_disable().
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Oct 29 12:02:13 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +119 -100
lines
handle multi function cards
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Oct 29 11:30:27 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +164 -29
lines
add support for reading memory mapped CIS via BAR or EXROM register
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Oct 29 07:29:08 1999 UTC (25 years, 1 month ago) by haya
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -2
lines
Remove unnecessary check in cardbusmatch.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Oct 27 14:01:04 1999 UTC (25 years, 1 month ago) by joda
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
(cardbus_attach_card): don't mask everything *but* the latency timer
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 27 09:29:18 1999 UTC (25 years, 1 month ago) by haya
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -8
lines
Use opt_cardbus.h for cardbus.c and opt_cardslot.h for cardslot.c.
Remove unnecessary include from cardbus.c.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Oct 15 10:59:56 1999 UTC (25 years, 2 months ago) by augustss
Branches: MAIN
Branch point for: thorpej_scsipi,
fvdl-softdep
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +13 -3
lines
Comment out some debug settings.
Change attach printing so it looks more standard.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:41:27 1999 UTC (25 years, 2 months ago) by haya
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1
lines
add NetBSD ID tag
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:07:17 1999 UTC (25 years, 2 months ago) by haya
Branches: MAIN
This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.
TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.
The affected files are listed below.
sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h
The added files are listed below.
sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h
CVSweb <webmaster@jp.NetBSD.org>