The NetBSD Project

CVS log for src/sys/arch/hppa/gsc/harmony.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / hppa / gsc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Sun May 15 00:25:15 2022 UTC (23 months ago) by gutteridge
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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
Changes since 1.10: +6 -3 lines
Diff to previous 1.10 (colored)

harmony.c: expand and correct a couple of comments

Revision 1.7.10.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:26 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.7: +12 -41 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sun Feb 28 07:01:01 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.7: +12 -41 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by isaki in ticket #1216):
	sys/arch/hppa/gsc/harmony.c: revision 1.8
	sys/arch/hppa/gsc/harmony.c: revision 1.9
	sys/arch/hppa/gsc/harmony.c: revision 1.10

Fix locking against myself.
trigger_output will be called with sc_intr_lock held.

From source code review, not tested.

Fix my mistakes in rev1.6.
- I had to merge the channel bit and the speed bits.
  Reported by macallan@.
- I also fix my indent, while I'm here.

Simplify harmony_speed_bits().
It no longer needs to write back the speed value.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 4 15:08:44 2021 UTC (3 years, 2 months ago) by isaki
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.9: +10 -36 lines
Diff to previous 1.9 (colored)

Simplify harmony_speed_bits().
It no longer needs to write back the speed value.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 4 15:06:11 2021 UTC (3 years, 2 months ago) by isaki
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Fix my mistakes in rev1.6.
- I had to merge the channel bit and the speed bits.
  Reported by macallan@.
- I also fix my indent, while I'm here.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 3 15:13:49 2021 UTC (3 years, 2 months ago) by isaki
Branch: MAIN
Changes since 1.7: +1 -5 lines
Diff to previous 1.7 (colored)

Fix locking against myself.
trigger_output will be called with sc_intr_lock held.
From source code review, not tested.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:19 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +60 -203 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 8 08:02:37 2019 UTC (4 years, 10 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex, netbsd-9
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
  This eliminates need for audio.c to take care of such (old)
  drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
  It is handled in the audio layer now.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 8 13:40:15 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.5: +42 -177 lines
Diff to previous 1.5 (colored)

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sat May 4 07:20:08 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.5.2.2: +2 -2 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sat May 4 04:51:20 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.5.2.1: +1 -16 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Remove simple flags that indicate whether the device is opened.
These are handled in the upper layer now.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Sun Apr 21 10:11:44 2019 UTC (5 years ago) by isaki
Branch: isaki-audio2
Changes since 1.5: +41 -161 lines
Diff to previous 1.5 (colored)

Adapt to audio2.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 16 12:09:56 2019 UTC (5 years, 1 month ago) by isaki
Branch: MAIN
CVS Tags: isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.4: +20 -29 lines
Diff to previous 1.4 (colored)

Use C99 style struct initializer to audio_hw_if.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:16 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.4.2: +1 -4 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:39 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2.6.1: +1 -4 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:06 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, 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, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi
Changes since 1.3: +1 -4 lines
Diff to previous 1.3 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.2.6.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:39:59 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 13 21:18:42 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

MD rnd.h cleanups.  Please let me know if I broke anything!

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:04 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.4.1: +1434 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.4.1, Sun Aug 10 16:44:34 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -1434 lines
FILE REMOVED

file harmony.c was added on branch tls-maxphys on 2014-08-20 00:03:04 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:34 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base-20150406, nick-nhusb-base, 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
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:50 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1.6.1: +1434 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:11 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.1.4.1: +1434 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:30 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.1.6.1, Mon Feb 24 07:23:43 2014 UTC (10 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.1: +0 -1434 lines
FILE REMOVED

file harmony.c was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000

Revision 1.1.4.1, Mon Feb 24 07:23:43 2014 UTC (10 years, 1 month ago) by rmind
Branch: rmind-smpnet
Changes since 1.1: +0 -1434 lines
FILE REMOVED

file harmony.c was added on branch rmind-smpnet on 2014-05-18 17:45:11 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 24 07:23:43 2014 UTC (10 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: yamt-pagecache, tls-earlyentropy, rmind-smpnet

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.

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>