Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   plunky
Date:           Mon Apr  9 10:18:17 UTC 2012

Modified Files:
        src/sys/dev: midi.c midi_if.h midisyn.c midisynvar.h sequencer.c
        src/sys/dev/ic: opl.c oplvar.h
        src/sys/dev/isa: cms.c midi_pcppi.c opl_ess.c opl_isa.c opl_sb.c
            opl_wss.c opl_ym.c
        src/sys/dev/pci: opl_cmpci.c opl_eso.c opl_fms.c opl_sv.c opl_yds.c

Log Message:
Tidy up a little, the way that midi attachment code works

- change midi_attach() to omit the 'parent' arg (there are
  only two callers of this and it is not used)

- change midisyn_attach() to midisyn_init(), so not needing a midi_softc,
  and fix the midi_pcppi driver to set hw_if and hw_hdl directly in
  its midi_softc before calling midi_attach()

- add a device_t to opl_softc structure, change opl drivers to store
  the device 'self' in opl_softc and fix opl_attach() to use this
  opl_softc->dev field directly rather than a field in an otherwise
  unused midi_softc

- remove unnecessary midi_softc from opl and cms drivers (child device
  provides that)

reviewed by mrg


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/midi.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/midi_if.h
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/midisyn.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/midisynvar.h
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/sequencer.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/opl.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/ic/oplvar.h
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/isa/cms.c src/sys/dev/isa/opl_isa.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/isa/midi_pcppi.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/isa/opl_ess.c src/sys/dev/isa/opl_ym.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/isa/opl_sb.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/isa/opl_wss.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/opl_cmpci.c \
    src/sys/dev/pci/opl_fms.c src/sys/dev/pci/opl_yds.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/opl_eso.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/opl_sv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index