The NetBSD Project

CVS log for src/sys/dev/pci/ohci_pci.c

[BACK] Up to [cvs.netbsd.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.47.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:51 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.47: +13 -8 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 15:34:49 2012 UTC (5 weeks, 4 days ago) by riz
Branch: netbsd-6
Changes since 1.48: +12 -3 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Pull up following revision(s) (requested by macallan in ticket #182):
	sys/dev/pci/ohci_pci.c: revision 1.49
abort attach if memory access is not enabled
this avoids a panic later on when trying to attach to an unconfigured ohci
found for example in later iBooks when DIAGNOSTIC is set

Revision 1.47.8.3 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:27 2012 UTC (7 weeks, 1 day ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47.8.2: +12 -3 lines
Diff to previous 1.47.8.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

sync to latest -current.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Apr 5 04:04:05 2012 UTC (7 weeks, 2 days ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, HEAD
Changes since 1.48: +12 -3 lines
Diff to previous 1.48 (colored)

abort attach if memory access is not enabled
this avoids a panic later on when trying to attach to an unconfigured ohci
found for example in later iBooks when DIAGNOSTIC is set

Revision 1.47.8.2 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:45 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47.8.1: +3 -7 lines
Diff to previous 1.47.8.1 (colored) to branchpoint 1.47 (colored)

merge to -current.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jan 30 19:41:22 2012 UTC (3 months, 3 weeks ago) by drochner
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.47: +3 -7 lines
Diff to previous 1.47 (colored)

Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.

Revision 1.47.8.1 / (download) - annotate - [select for diffs], Fri Dec 9 01:52:59 2011 UTC (5 months, 2 weeks ago) by mrg
Branch: jmcneill-usbmp
CVS Tags: jmcneill-usbmp-pre-base2
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

- make pipe->close method take the thread lock

- convert usb_taskq to use mutex/cv

- convert needs_explore usage into a cv on the thread lock

- remove KERNEL_*LOCK from uaudio and umidi, since we're supposedly
  MPSAFE here now

- use IPL_SCHED instead of IPL_USB (aka biglocked) interrupts

- drop the audio thread lock when calling into usb when it may sleep,
  avoiding a deadlock between audiowrite and audioioctl.  this fixes
  mixerctl -a vs. playing hanging the system
  XXX probably need to check this in a bunch more places.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:17 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.46: +6 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:51 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.44: +6 -3 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Mon Apr 4 22:48:15 2011 UTC (13 months, 3 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.46: +6 -3 lines
Diff to previous 1.46 (colored)

Deregister PMF handlers during detachment.  Complete the host controller
shutdown.

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:50 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.38.4.2: +3 -2 lines
Diff to previous 1.38.4.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Tue May 25 08:37:10 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Revert earlier changes to callers of pci_find{vendor,product} since
the original routine entrypoint name has been restored.

Requested by dyoung@ and mrg@

Revision 1.45 / (download) - annotate - [select for diffs], Mon May 24 20:29:49 2010 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Update all callers of the pci_find{vendor,product} routines to now call
these routines through their global pointers.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:39 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 11 04:00:36 2010 UTC (2 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

various aprint_* fixes.

Revision 1.39.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:27 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.39: +47 -22 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:58 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.38.4.1: +47 -22 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored)

sync with head.

Revision 1.39.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:57 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.39: +47 -22 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Apr 26 08:54:13 2009 UTC (3 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

detach ohci on shutdown

Revision 1.42 / (download) - annotate - [select for diffs], Sun Apr 26 08:46:10 2009 UTC (3 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.41: +37 -17 lines
Diff to previous 1.41 (colored)

Fix error handling.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 17 19:44:13 2009 UTC (3 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.40: +8 -8 lines
Diff to previous 1.40 (colored)

Use device_t instead of 'struct device *' or device_ptr_t.  Use cfdata_t
instead of 'struct cfdata *'. Delete some gratuitous parentheses.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Apr 17 17:31:01 2009 UTC (3 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.39: +7 -2 lines
Diff to previous 1.39 (colored)

Disable interrupts on the h/w before disestablishing the PCI interrupt
handler.

Revision 1.33.10.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:42 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.33.10.1: +0 -7 lines
Diff to previous 1.33.10.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:21 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.38: +2 -9 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with head.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:44 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.38: +2 -9 lines
Diff to previous 1.38 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:55 2008 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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, hpcarm-cleanup-nbase, 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
Changes since 1.38: +2 -9 lines
Diff to previous 1.38 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.33.10.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:52 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.33: +17 -14 lines
Diff to previous 1.33 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Mar 29 02:20:41 2008 UTC (4 years, 1 month ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Fix ohci brokenness in previous commit.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Mar 28 17:14:45 2008 UTC (4 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.36: +8 -5 lines
Diff to previous 1.36 (colored)

split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:48 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.33: +12 -12 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync with head.

Revision 1.31.26.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:49 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.31.26.2: +12 -12 lines
Diff to previous 1.31.26.2 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with HEAD

Revision 1.28.2.5 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:12 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.2.4: +9 -10 lines
Diff to previous 1.28.2.4 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 7 21:48:46 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.35: +7 -9 lines
Diff to previous 1.35 (colored)

Use device_t and accessors.

In ohci_{pci,cardbus}_attach, do not get the device_t by casting
the softc to void *, but use `self' instead.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 7 21:36:51 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

Register the shutdown hook using pmf_device_register1().

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:35 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.2.3: +5 -4 lines
Diff to previous 1.28.2.3 (colored) to branchpoint 1.28 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Feb 22 22:22:27 2008 UTC (4 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.33: +5 -4 lines
Diff to previous 1.33 (colored)

Add method to detach children.

Temporary: use PMF_FN_PROTO, PMF_FN_ARGS.

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:07 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.2.2: +7 -2 lines
Diff to previous 1.28.2.2 (colored) to branchpoint 1.28 (colored)

sync with head

Revision 1.31.26.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:53 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.31.26.1: +7 -2 lines
Diff to previous 1.31.26.1 (colored) to branchpoint 1.31 (colored)

sync with HEAD

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:01 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.32: +7 -2 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with head.

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:16 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.32: +7 -2 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:11 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.32: +7 -2 lines
Diff to previous 1.32 (colored)

Merge jmcneill-pm branch.

Revision 1.31.24.5 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:30 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.31.24.4: +3 -3 lines
Diff to previous 1.31.24.4 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.31.26.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:21 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

sync with HEAD

Revision 1.31.24.4 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:26 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.31.24.3: +4 -9 lines
Diff to previous 1.31.24.3 (colored) to branchpoint 1.31 (colored)

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.28.2.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:20 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.2.1: +3 -3 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored)

sync with head.

Revision 1.31.24.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:40 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.31.24.2: +3 -3 lines
Diff to previous 1.31.24.2 (colored) to branchpoint 1.31 (colored)

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.31.30.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:13 2007 UTC (4 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.31.8.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:10 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:53 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.31.24.2 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:49 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.31.24.1: +7 -59 lines
Diff to previous 1.31.24.1 (colored) to branchpoint 1.31 (colored)

Extend device API by device_power_private and device_power_set_private.
The latter is a temporary mean until the pnp_register API itself is
overhault. This functions allow a generic power handler to store its
state independent of the driver.

Use this and revamp the PCI power handling. Pretty much all PCI devices
had power handlers that did the same thing, generalize this in
pci_generic_power_register/deregister and the handler. This interface
offers callbacks for the drivers to save and restore state on
transistions. After a long discussion with jmcneill@ it was considered
to be powerful enough until evidence is shown that devices can handle
D1/D2 with less code and higher speed than without the full
save/restore. The generic code is carefully written to handle device
without PCI-PM support and ensure that the correct registers are written
to when D3 loses all state.

Reimplement the generic PCI network device handling on
top of PCI generic power handling.

Introduce pci_disable_retry as used and implemented locally at least by
ath(4) and iwi(4). Use it in this drivers to restore behaviour from
before the introduction of generic PCI network handling.

Convert all PCI drivers that were using pnp_register to the new
framework. The only exception is vga(4) as it is commonly used as
console device. Add a note therein that this should be fixed later.

Revision 1.31.24.1 / (download) - annotate - [select for diffs], Tue Aug 14 20:59:18 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.31: +64 -2 lines
Diff to previous 1.31 (colored)

Add ohci power management support, currently untested.

Revision 1.31.18.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:33 2007 UTC (5 years ago) by itohy
Branch: itohy-usb1
Changes since 1.31: +9 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Overhaul of USB stack, mostly DMA related

This applies to NetBSD 4.99.13 (March 1, 2007)

usbdi(9) interface is based on FreeBSD version, excluding
 - removal of portability code

Patch most NetBSD changes, excluding
 - DMA memory "reserve", since we don't need contiguous buffers any longer
 - volatiles in DMA structure, since it should not be needed
   with proper bus_dmamap_sync(9)s

DMA/non-DMA memory management overhaul
 - Move all DMA related code to usb_mem.[ch]
   (add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
   XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
 - Add corresponding non-DMA code to usb_mem_nodma.[ch] .
   Currently just use malloc(9).
 - Above files are conditionally used by config framework (added
   attributes to conf/files and dev/usb/files.usb).
 - Add diagnostic panics when resource allocation is requested
   on interrupt context.
 - Change memory allocations (that require context) from NOWAIT to WAITOK.

Allocate DMA/non-DMA buffer per host interface, not globally.
 advantage:	Buffers can be freed on detaching host interface.
		Activity of a host interface does not affect others.
 disadvantages:	It possibly consumes more memory.

API changes
 - usbd_alloc_xfer() is changed:
    old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
    new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
		usbd_pipe_handle pipe);
 - pipe argument of usbd_setup_*xfer() are now unused
   XXX the pipe argument should be removed?
 - add mapping APIs
 - async request will be processed as a task (kernel thread context),
   and delayed to some extent
 - usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
   (mapped/allocated/refered buffer for HCI driver)
 - usb_port.h: change usb_proc_ptr from  struct ptoc *  to struct lwp *
 - usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
 - usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0

changes to USB device drivers
 - atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
   uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
   uscanner, ustir, utoppy:
    * catch up API change of usbd_alloc_xfer()
 - umass, usscanner:
    * catch up API change of usbd_alloc_xfer()
    * eliminate memory copy for large transfer

ohci
 - free resources on detach
 - add lots of bus_dmamap_sync() operations
 - simplify the code of loading std chain
 - rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
 - add workaround for CMD Tech 670 and 673 chipsets
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

slhci
 - allocate xfer and slhci_xfer at once, and simplify relevant code
 - add slhci_detach()
 - remove second arg of slhci_attach() since it is the same as the first arg.
 - add support for "mapping" (no, it doesn't map since it doesn't do DMA)
   buffer and mbuf
 - add pcmcia frontend
 - NOT TESTED, missing hardware

ehci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf
 - done only simple test

uhci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

To do
 - review, test, debug
 - rewrite network drivers to utilize usbd_map_buffer_mbuf()
 - rewrite uaudio(4) to eliminate memcpy
 - "pipe" argument of usbd_setup_*xfer() should eventually be removed

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:46 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored)

sync with head.

Revision 1.29.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:45 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.29.22.1: +4 -4 lines
Diff to previous 1.29.22.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.29.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, 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, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, itohy-usb1-base, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, matt-armv6, jmcneill-pm, itohy-usb1, bouyer-xenamd64
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

__unused removal on arguments; approved by core.

Revision 1.29.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:18 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:32 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.23.6.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.23.6.4: +8 -12 lines
Diff to previous 1.23.6.4 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with HEAD. Here we go again...

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 28 00:28:42 2005 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.27: +8 -12 lines
Diff to previous 1.27 (colored)

Use ANSI function decls and static.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with -current

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:11 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.23.6.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:21 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.23.6.3: +4 -4 lines
Diff to previous 1.23.6.3 (colored) to branchpoint 1.23 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, 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, netbsd-3, kent-audio2-base
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

nuke trailing whitespace

Revision 1.23.6.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.23.6.2: +2 -2 lines
Diff to previous 1.23.6.2 (colored) to branchpoint 1.23 (colored)

Fix the sync with head I botched.

Revision 1.23.6.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:04 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.23.6.1: +2 -2 lines
Diff to previous 1.23.6.1 (colored) to branchpoint 1.23 (colored)

Sync with HEAD.

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:10 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.23: +8 -9 lines
Diff to previous 1.23 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 2 18:43:38 2004 UTC (7 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

For the PCIVERBOSE case, separate vendors and products into separate tables.
Eliminating redundant pointers in the tables saves nearly 20K (20% of the table
size).  In the process, add a pci_findproduct() and make that and
pci_findvendor() return a "const char *".

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 23 21:13:06 2004 UTC (8 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:12 2004 UTC (8 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.23: +5 -6 lines
Diff to previous 1.23 (colored)

sprintf -> snprintf

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:11 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.18.2.1: +3 -5 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Catch up to -current.

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:58 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.18.4.1: +4 -6 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:47 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
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-base, 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-0, netbsd-2, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Sep 30 20:37:54 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -6 lines
Diff to previous 1.21 (colored)

Use CFATTACH_DECL().

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 27 20:40:32 2002 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Declare all cfattach structures const.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:52 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.18: +17 -1 lines
Diff to previous 1.18 (colored)

Sync kqueue branch with -current.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:22 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.18: +17 -1 lines
Diff to previous 1.18 (colored)

Catch up to -current.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:46 2001 UTC (10 years, 6 months ago) by lukem
Branch: 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, ifpoll, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

add RCSID

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:14 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.18: +14 -1 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 6 03:17:36 2001 UTC (10 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.18: +14 -1 lines
Diff to previous 1.18 (colored)

Add some data structures to keep enable finding companion controllers
for EHCI.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:11 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14.2.1: +2 -3 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 28 22:59:14 2000 UTC (11 years, 4 months ago) by sommerfeld
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:29 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14: +17 -32 lines
Diff to previous 1.14 (colored)

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.17 / (download) - annotate - [select for diffs], Wed Sep 6 00:17:23 2000 UTC (11 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.16: +10 -24 lines
Diff to previous 1.16 (colored)

ANSIfy.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:46 2000 UTC (12 years, 1 month ago) by augustss
Branch: 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, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Change my email address.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 25 09:20:55 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.14: +7 -8 lines
Diff to previous 1.14 (colored)

Move the size of the mapped bus_space region into the bus independent softc.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:20 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.13: +56 -23 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Pull up to last week's -current.

Revision 1.6.2.1.4.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:05 1999 UTC (12 years, 5 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.6.2.1: +1 -24 lines
Diff to previous 1.6.2.1 (colored) next main 1.6.2.2 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 12 11:21:24 1999 UTC (12 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.13: +56 -23 lines
Diff to previous 1.13 (colored)

Deallocate resources (bus space and interrupts) when detaching from
the bus.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 15 10:25:30 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

Add preliminary (untested) code for detaching the USB host controller
(needed for CardBus based controllers).

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 14 01:07:13 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

And commit two files I forgot in the rearrangement for testing for
interrupt context.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 4 22:00:32 1999 UTC (12 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.10: +4 -5 lines
Diff to previous 1.10 (colored)

Make sure not to use the io handle before it's been initialized.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Aug 21 21:35:36 1999 UTC (12 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored)

Disable interrupts early.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Jun 28 23:37:42 1999 UTC (12 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.6.2.1: +1 -24 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

pullup 1.7->1.8 (wrstuden)

Revision 1.6.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:18:37 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.6.2.1: +3 -25 lines
Diff to previous 1.6.2.1 (colored) next main 1.6.2.2 (colored)

Sync w/ -current.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 20 09:52:35 1999 UTC (13 years ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

Keep track of vendor id and make sure the vendor string is NUL terminated.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 13 23:34:38 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.7: +1 -24 lines
Diff to previous 1.7 (colored)

Rework the way ukbd attaches itself as the console (again).  We now allow
the code to pick the first USB keyboard instance as the console, ignoring
which USB controller it's on.  Should eventually allow detaching of the
console keyboard.

From Jason Thorpe <thorpej@nas.nasa.gov>

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Thu May 6 19:23:10 1999 UTC (13 years ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: kame, chs-ubc2
Changes since 1.6: +24 -1 lines
Diff to previous 1.6 (colored)

pullup 1.6->1.7 (thorpej)

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 6 19:12:22 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.6: +24 -1 lines
Diff to previous 1.6 (colored)

Add a way for machine-dependent code to tell a USB controller that it
has the console input device.  The USB keyboard driver uses this to
attach the first USB keyboard instance as the console keyboard.

Unfortunately, this must still be deferred to autoconfiguration time,
but there's not much we can do about that right now.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 27 13:03:58 1998 UTC (13 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Fold lines to 80 chars.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 25 22:32:04 1998 UTC (13 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 25 23:23:02 1998 UTC (13 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.3: +5 -7 lines
Diff to previous 1.3 (colored)

Use PCI class/subclass/interface to match USB host controllers instead
of vendor/product id.  This makes the probe find more controllers
without recompilation.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 25 15:15:39 1998 UTC (13 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.2: +5 -3 lines
Diff to previous 1.2 (colored)

I forgot to commit these when usb_mem was added.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 22 10:43:37 1998 UTC (13 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.1: +7 -5 lines
Diff to previous 1.1 (colored)

Add an Acer labs USB controller.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 12 19:51:58 1998 UTC (13 years, 10 months ago) by augustss
Branch: MAIN

Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>