Subject: CVS commit: src/sys
To: None <>
From: Jason R Thorpe <>
List: source-changes
Date: 05/25/2004 20:42:41
Module Name:	src
Committed By:	thorpej
Date:		Tue May 25 20:42:41 UTC 2004

Modified Files:
	src/sys/arch/acorn32/eb7500atx: rside.c
	src/sys/arch/acorn32/mainbus: wdc_pioc.c
	src/sys/arch/acorn32/podulebus: icside.c rapide.c simide.c
	src/sys/arch/amiga/dev: wdc_amiga.c
	src/sys/arch/i386/pnpbios: pciide_pnpbios.c
	src/sys/arch/mac68k/obio: wdc_obio.c
	src/sys/arch/macppc/dev: kauai.c wdc_obio.c
	src/sys/arch/playstation2/dev: wdc_spd.c
	src/sys/arch/prep/dev: wdc_obio.c
	src/sys/dev/ic: wdc.c wdc_upc.c wdcreg.h wdcvar.h
	src/sys/dev/isa: wdc_isa.c
	src/sys/dev/isapnp: wdc_isapnp.c
	src/sys/dev/ofisa: wdc_ofisa.c
	src/sys/dev/pci: pciide_common.c satalink.c
	src/sys/dev/pcmcia: wdc_pcmcia.c
	src/sys/dev/podulebus: dtide.c hcide.c

Log Message:
Add the notion of "shadow registers" to the wdc driver.  These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers.  Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/sys/arch/acorn32/eb7500atx/rside.c
cvs rdiff -r1.15 -r1.16 src/sys/arch/acorn32/mainbus/wdc_pioc.c
cvs rdiff -r1.20 -r1.21 src/sys/arch/acorn32/podulebus/icside.c
cvs rdiff -r1.19 -r1.20 src/sys/arch/acorn32/podulebus/rapide.c
cvs rdiff -r1.18 -r1.19 src/sys/arch/acorn32/podulebus/simide.c
cvs rdiff -r1.20 -r1.21 src/sys/arch/amiga/dev/wdc_amiga.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/i386/pnpbios/pciide_pnpbios.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/mac68k/obio/wdc_obio.c
cvs rdiff -r1.12 -r1.13 src/sys/arch/macppc/dev/kauai.c
cvs rdiff -r1.36 -r1.37 src/sys/arch/macppc/dev/wdc_obio.c
cvs rdiff -r1.13 -r1.14 src/sys/arch/playstation2/dev/wdc_spd.c
cvs rdiff -r1.15 -r1.16 src/sys/arch/prep/dev/wdc_obio.c
cvs rdiff -r1.175 -r1.176 src/sys/dev/ic/wdc.c
cvs rdiff -r1.15 -r1.16 src/sys/dev/ic/wdc_upc.c
cvs rdiff -r1.32 -r1.33 src/sys/dev/ic/wdcreg.h
cvs rdiff -r1.56 -r1.57 src/sys/dev/ic/wdcvar.h
cvs rdiff -r1.40 -r1.41 src/sys/dev/isa/wdc_isa.c
cvs rdiff -r1.26 -r1.27 src/sys/dev/isapnp/wdc_isapnp.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/ofisa/wdc_ofisa.c
cvs rdiff -r1.10 -r1.11 src/sys/dev/pci/pciide_common.c
cvs rdiff -r1.13 -r1.14 src/sys/dev/pci/satalink.c
cvs rdiff -r1.67 -r1.68 src/sys/dev/pcmcia/wdc_pcmcia.c
cvs rdiff -r1.15 -r1.16 src/sys/dev/podulebus/dtide.c
cvs rdiff -r1.12 -r1.13 src/sys/dev/podulebus/hcide.c

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