The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.217.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:55 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.217: +7 -7 lines
Diff to previous 1.217 (colored) next main 1.218 (colored)

sync with head

Revision 1.217.2.1 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:31 2010 UTC (18 months, 2 weeks ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.217: +24 -7 lines
Diff to previous 1.217 (colored) next main 1.218 (colored)

Sync with HEAD.

Revision 1.219 / (download) - annotate - [select for diffs], Sat Nov 6 00:29:09 2010 UTC (18 months, 2 weeks ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, 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-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, HEAD
Changes since 1.218: +2 -19 lines
Diff to previous 1.218 (colored)

Rework pciide(4) detachment to take the legacy interrupt mapping into
consideration and avoid future code duplication.

Ports wanting to enable detachment of controllers with compatibility-mapped
channels will need to supply a pciide_machdep_compat_intr_disestablish()
function.

Revision 1.218 / (download) - annotate - [select for diffs], Fri Nov 5 19:50:18 2010 UTC (18 months, 2 weeks ago) by jakllsch
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.217: +24 -7 lines
Diff to previous 1.217 (colored)

pciide(4): Sprinkle static, add detachment support.

Revision 1.216.4.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:58 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.216: +2 -7 lines
Diff to previous 1.216 (colored) next main 1.217 (colored)

sync with head

Revision 1.217 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:15 2009 UTC (2 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.216: +2 -7 lines
Diff to previous 1.216 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.215.48.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.215: +10 -9 lines
Diff to previous 1.215 (colored) next main 1.216 (colored)

Sync with HEAD.

Revision 1.212.4.2 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:51 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.212.4.1: +10 -9 lines
Diff to previous 1.212.4.1 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored)

sync with head.

Revision 1.215.44.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:49 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.215: +10 -9 lines
Diff to previous 1.215 (colored) next main 1.216 (colored)

sync with head.

Revision 1.215.24.1 / (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.215: +10 -9 lines
Diff to previous 1.215 (colored) next main 1.216 (colored)

sync with HEAD

Revision 1.216 / (download) - annotate - [select for diffs], Tue Mar 18 20:46:37 2008 UTC (4 years, 2 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp
Changes since 1.215: +10 -9 lines
Diff to previous 1.215 (colored)

Split device_t and softc for ATA devices, as well as wd(4).  Other
cosmetic changes where appropriate.

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

sync with head.

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

sync with head.

Revision 1.213.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:33 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.213: +5 -9 lines
Diff to previous 1.213 (colored) next main 1.214 (colored)

Sync with head.

Revision 1.215 / (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-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-net80211-sync-base, nick-net80211-sync, 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, mjf-devfs-base, mjf-devfs, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Changes since 1.214: +4 -4 lines
Diff to previous 1.214 (colored)

__unused removal on arguments; approved by core.

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

sync with head

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

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

Revision 1.213 / (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.212: +2 -2 lines
Diff to previous 1.212 (colored)

merge ktrace-lwp.

Revision 1.210.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:12 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.210: +5 -5 lines
Diff to previous 1.210 (colored) next main 1.211 (colored)

sync with -current

Revision 1.210.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.210.6.1: +3 -3 lines
Diff to previous 1.210.6.1 (colored) to branchpoint 1.210 (colored) next main 1.211 (colored)

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

Revision 1.194.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:23 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.194.2.4: +3 -3 lines
Diff to previous 1.194.2.4 (colored) next main 1.195 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.212 / (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-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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, 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, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.211: +3 -3 lines
Diff to previous 1.211 (colored)

nuke trailing whitespace

Revision 1.210.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:48 2005 UTC (7 years, 3 months ago) by yamt
Branch: yamt-km
Changes since 1.210: +4 -4 lines
Diff to previous 1.210 (colored)

sync with head.

Revision 1.194.2.4 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:40 2005 UTC (7 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.194.2.3: +4 -4 lines
Diff to previous 1.194.2.3 (colored)

Sync with HEAD.

Revision 1.211 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:45 2005 UTC (7 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2, matt-timespec
Changes since 1.210: +4 -4 lines
Diff to previous 1.210 (colored)

de-__P

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

Fix the sync with head I botched.

Revision 1.194.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:05 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.194.2.1: +3 -3 lines
Diff to previous 1.194.2.1 (colored)

Sync with HEAD.

Revision 1.210 / (download) - annotate - [select for diffs], Fri Sep 17 23:04:02 2004 UTC (7 years, 8 months ago) by enami
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.209: +3 -3 lines
Diff to previous 1.209 (colored)

Whitespace nit.

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

Sync with HEAD

Revision 1.153.2.17 / (download) - annotate - [select for diffs], Mon Jul 12 21:24:55 2004 UTC (7 years, 10 months ago) by he
Branch: netbsd-1-6
Changes since 1.153.2.16: +135 -3 lines
Diff to previous 1.153.2.16 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Pull up revision 1.187 (via patch, requested by grant in ticket #1720):
  Add support for SATALink 3112.

Revision 1.153.2.16 / (download) - annotate - [select for diffs], Sun Mar 28 08:50:41 2004 UTC (8 years, 2 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.153.2.15: +6 -2 lines
Diff to previous 1.153.2.15 (colored) to branchpoint 1.153 (colored)

Pullup rev 1.196 via patch (requested by bouyer in ticket #1632)

Add support for VIA VT8237 (KT600) IDE controller. PR#22453

Revision 1.153.2.15 / (download) - annotate - [select for diffs], Sun Mar 28 08:17:13 2004 UTC (8 years, 2 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.153.2.14: +6 -6 lines
Diff to previous 1.153.2.14 (colored) to branchpoint 1.153 (colored)

Pullup rev 1.195 (requested by bouyer in ticket #1630)

Correct offset for the promise "magic registers" (it depends on channel number).
This makes cable detect work properly for newer promise (pdc268 and newer).

Revision 1.209 / (download) - annotate - [select for diffs], Wed Oct 8 11:51:59 2003 UTC (8 years, 7 months ago) by bouyer
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
Changes since 1.208: +3 -5310 lines
Diff to previous 1.208 (colored)

Split pciide in per-chip family driver, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0007.html
We now have:
acardide*       at pci? dev ? function ?        # Acard IDE controllers
aceride*        at pci? dev ? function ?        # Acer Lab IDE controllers
cmdide*         at pci? dev ? function ?        # CMD tech IDE controllers
cypide*         at pci? dev ? function ?        # Cypress IDE controllers
hptide*         at pci? dev ? function ?        # Triones/HighPoint IDE controllers
optiide*        at pci? dev ? function ?        # Opti IDE controllers
piixide*        at pci? dev ? function ?        # Intel IDE controllers
pdcide*         at pci? dev ? function ?        # Promise IDE controllers
siside*         at pci? dev ? function ?        # SiS IDE controllers
slide*          at pci? dev ? function ?        # Symphony Labs IDE controllers
viaide*         at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers
pciide*         at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver

serverworks driver not commited yet; there are still copyright issues about
it.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Oct 8 10:58:12 2003 UTC (8 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.207: +23 -4 lines
Diff to previous 1.207 (colored)

Make the ATA mid-layer appears as atabus, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0006.html
This adds a device (atabus) between IDE controllers and wd or atapibus, to
have each ATA channel show up in the device tree. Later there will be atabus
devices in /dev, so that we can do IOCTL on them.
Each atabus has its own kernel thread, to handle operations that needs polling,
e.g. reset and others.

Device probing on each bus it defered to the atabus thread creation.
This allows to do the reset and basic device probes in parallel, which reduce
boot time on systems with several pciide controllers.

Revision 1.207 / (download) - annotate - [select for diffs], Sun Oct 5 17:48:49 2003 UTC (8 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.206: +4 -5 lines
Diff to previous 1.206 (colored)

Remove references to University of California from my copyright notices.

Revision 1.206 / (download) - annotate - [select for diffs], Thu Sep 25 19:29:49 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.205: +3 -3 lines
Diff to previous 1.205 (colored)

Hide the use of config_interrupts() in one place.

Revision 1.205 / (download) - annotate - [select for diffs], Tue Sep 23 09:19:24 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.204: +3 -3 lines
Diff to previous 1.204 (colored)

Fix more probe delay and/or failure problems:
1) Don't wait for DRQ on an IDENTIFY command -- if it's not set when we see
   BSY clear, abort the command and ignore the drive.  (Do this by testing
   for DRQ in the read/write cases in __wdccommand_intr().)
2) Don't wait for DRQ to deassert when we finish an IDENTIFY (or any other
   non-block command that reads data) -- we don't do this for block I/O, and
   empirically it doesn't clear on my CF cards at all, causing a pointless 1s
   delay.
3) Add comments to some of the delay()s, and add missing ones in wdcreset()
   and the WDCC_RECAL in the so-called "pre-ATA" probe.
4) Slightly simplify the reset sequence -- we were doing an extra I/O.
5) Modify the register writability test to make sure that registers are not
   overlapped -- this can happen in some weird cases with a missing device 1.
6) Check the error register value after the reset -- if it's not 01h or 81h,
   as appropriate (see ATA spec), punt.
Tested with a number of ATA-only, ATAPI-only, mixed ATA-ATAPI, CF, and IDE
disk configurations.

Also remove the SINGLE_DRIVE nonsense again.

Revision 1.204 / (download) - annotate - [select for diffs], Sun Sep 21 11:30:43 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.203: +2 -3 lines
Diff to previous 1.203 (colored)

Ops, remove a line that escaped out of my local tree.

Revision 1.203 / (download) - annotate - [select for diffs], Sun Sep 21 11:20:37 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.202: +18 -12 lines
Diff to previous 1.202 (colored)

The return value from pciide_mapregs_* are ignored; make them return void.
Re-add support for HPT366 in compat mode.

Revision 1.202 / (download) - annotate - [select for diffs], Sun Sep 21 11:14:02 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.201: +3 -3 lines
Diff to previous 1.201 (colored)

Since we can't detect ghost drives in the wdc back-end, resurect
WDC_CAPABILITY_SINGLE_DRIVE.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Sep 20 22:46:02 2003 UTC (8 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.200: +24 -10 lines
Diff to previous 1.200 (colored)

Make sure the message from pciide_chipen() starts at the beginning of line.

Revision 1.200 / (download) - annotate - [select for diffs], Fri Sep 19 21:36:05 2003 UTC (8 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.199: +73 -275 lines
Diff to previous 1.199 (colored)

1) Use config_interrupts() to attach IDE and ATAPI drives.  This eliminates
   most polling.
2) Clean up some goofiness in pciide -- get rid of the whole "candisable" path
   (it's gratuitous) and simplify the code by calling pciide_map_compat_intr(),
   *_set_modes() and wdc_print_modes() from central locations.
3) Add a register writability and register ghost test to eliminate phantom
   drives more quickly.

Revision 1.199 / (download) - annotate - [select for diffs], Wed Sep 17 16:55:20 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.198: +6 -2 lines
Diff to previous 1.198 (colored)

Add back support for the legacy VT8237 IDE controller.
This wasn't an error, on this chipset we have the SATA controller on function
0 of the IDE controller, not the pcib bridge.
Fix provided by Stephen Degler.

Revision 1.198 / (download) - annotate - [select for diffs], Mon Sep 15 20:24:42 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.197: +10 -4 lines
Diff to previous 1.197 (colored)

Add support for Intel 82801EB Serial ATA. Not tested with a drive yet,
Matthias Scheler tested that the controller attaches properly.

Revision 1.197 / (download) - annotate - [select for diffs], Mon Sep 15 20:15:44 2003 UTC (8 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.196: +59 -6 lines
Diff to previous 1.196 (colored)

Add support for VIA 8237 Serial ATA. From Stephen Degler in kern/22727,
with some cleanup by me.

Revision 1.196 / (download) - annotate - [select for diffs], Sun Aug 17 15:52:06 2003 UTC (8 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.195: +6 -2 lines
Diff to previous 1.195 (colored)

Add support for VIA VT8237 (KT600) IDE controller. From Stephen Degler in
PR port-i386/22453.

Revision 1.153.2.14 / (download) - annotate - [select for diffs], Sat Aug 16 15:58:24 2003 UTC (8 years, 9 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.153.2.13: +5 -3 lines
Diff to previous 1.153.2.13 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.194 (requested by bouyer in ticket #1369):
Correct setup of General Purpose Register for PDC20265 (Ultra/100) and newer.
From Andreas Johansson in private mail.

Revision 1.153.2.13 / (download) - annotate - [select for diffs], Sat Aug 16 15:53:03 2003 UTC (8 years, 9 months ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.12: +17 -6 lines
Diff to previous 1.153.2.12 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.193 via patch (requested by bouyer in ticket #1367):
Add support for ICH5, from Quentin Garnier in private mail.

Revision 1.195 / (download) - annotate - [select for diffs], Sun Aug 10 14:51:55 2003 UTC (8 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.194: +6 -6 lines
Diff to previous 1.194 (colored)

Corect offset for the promise "magic registers" (it depends on channel number).
This makes cable detect work properly for newer promise (pdc268 and newer).

Revision 1.194 / (download) - annotate - [select for diffs], Sat Jun 28 23:13:26 2003 UTC (8 years, 10 months ago) by bouyer
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.193: +5 -3 lines
Diff to previous 1.193 (colored)

Correct setup of General Purpose Register for PDC20265 (Ultra/100) and newer.
From Andreas Johansson in private mail.

Revision 1.193 / (download) - annotate - [select for diffs], Sat Jun 28 23:04:11 2003 UTC (8 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.192: +15 -5 lines
Diff to previous 1.192 (colored)

Add support for ICH5, from Quentin Garnier in private mail.

Revision 1.153.2.12 / (download) - annotate - [select for diffs], Mon Jun 16 21:13:25 2003 UTC (8 years, 11 months ago) by grant
Branch: netbsd-1-6
Changes since 1.153.2.11: +264 -43 lines
Diff to previous 1.153.2.11 (colored) to branchpoint 1.153 (colored)

Apply patch (requested by bouyer in ticket #1234):

Rework SiS support: more controller supported (up to Ultra/133) and better
support for the older ones.
Information for this work extracted from Soeren Schmidt's FreeBSD driver.

Ops, I commited the previous change (improved SiS support) from the wrong tree.
Sync with the latest diff I made available, and also include changes from
kern/18015 which is much better than the hack I've done.

Revision 1.192 / (download) - annotate - [select for diffs], Sat May 17 21:52:04 2003 UTC (9 years ago) by thorpej
Branch: MAIN
Changes since 1.191: +139 -127 lines
Diff to previous 1.191 (colored)

* Use aprint*().
* Add Ultra/133 to wdc_print_modes().

Revision 1.153.2.11 / (download) - annotate - [select for diffs], Mon Apr 28 06:25:40 2003 UTC (9 years, 1 month ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.10: +64 -0 lines
Diff to previous 1.153.2.10 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.191 (requested by nakayama in ticket #1275):
Make DMA mode works on Promise Ultra66/100 with 48-bit LBA drives.
Ok'ed by bouyer in tech-kern@netbsd.org.

Revision 1.191 / (download) - annotate - [select for diffs], Mon Apr 28 05:20:31 2003 UTC (9 years, 1 month ago) by nakayama
Branch: MAIN
Changes since 1.190: +66 -2 lines
Diff to previous 1.190 (colored)

Make DMA mode works on Promise Ultra66/100 with 48-bit LBA drives.
Ok'ed by bouyer in tech-kern@netbsd.org.

Revision 1.190 / (download) - annotate - [select for diffs], Sat Apr 19 23:37:26 2003 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.189: +17 -21 lines
Diff to previous 1.189 (colored)

PR/21236: Simon Hitzemann: Fix missing space in error format. While I am
there make a single copy of the error string instead of 6 and share it.

Revision 1.189 / (download) - annotate - [select for diffs], Sat Apr 5 13:00:15 2003 UTC (9 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.188: +6 -6 lines
Diff to previous 1.188 (colored)

Add '(ICH3)' to the names of 82801CA for consistency with other 82801xx names

Revision 1.188 / (download) - annotate - [select for diffs], Fri Apr 4 11:01:48 2003 UTC (9 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.187: +17 -6 lines
Diff to previous 1.187 (colored)

Support for ICH4M IDE Controller

Revision 1.187 / (download) - annotate - [select for diffs], Thu Mar 20 04:22:49 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.186: +135 -3 lines
Diff to previous 1.186 (colored)

Add support for the Silicon Image SATALink 3112 Serial ATA controller.

Revision 1.186 / (download) - annotate - [select for diffs], Wed Mar 19 15:13:57 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.185: +4 -2 lines
Diff to previous 1.185 (colored)

Fix pasto.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Mar 18 01:41:54 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.184: +3 -2 lines
Diff to previous 1.184 (colored)

Add register definitions for the Intel i31244 Serial ATA controller.

Revision 1.184 / (download) - annotate - [select for diffs], Tue Mar 18 01:13:08 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.183: +110 -2 lines
Diff to previous 1.183 (colored)

Add very basic support for the Intel i31244 Serial ATA controller.
We only support legacy (i.e. PCI IDE compatible) mode, for now.  Also
note that DMA is disabled for rev 0 chips unless explicitly enabled
with PCIIDE_I31244_ENABLEDMA.

Revision 1.183 / (download) - annotate - [select for diffs], Sat Mar 15 12:23:34 2003 UTC (9 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.182: +9 -8 lines
Diff to previous 1.182 (colored)

Ops, I commited the previous change (improved SiS support) from thr wrong tree.
Sync with the latest diff I made available, and also include changes from
kern/20710 which is much better than the hack I've done.

Revision 1.182 / (download) - annotate - [select for diffs], Fri Mar 14 22:46:05 2003 UTC (9 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.181: +263 -44 lines
Diff to previous 1.181 (colored)

Rework SiS support: more controller supported (up to Ultra/133) and better
support for the older ones.
Information for this work extracted from Soeren Schmidt's FreeBSD driver.

Revision 1.181 / (download) - annotate - [select for diffs], Fri Feb 28 22:07:05 2003 UTC (9 years, 2 months ago) by enami
Branch: MAIN
Changes since 1.180: +11 -3 lines
Diff to previous 1.180 (colored)

Match ServerWorks CSB6 IDE controller.

Revision 1.180 / (download) - annotate - [select for diffs], Mon Jan 27 18:21:23 2003 UTC (9 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.179: +5 -2 lines
Diff to previous 1.179 (colored)

Experimental support for RAID volumes configured by ATA "RAID" controllers.
Such RAID controllers are actually just IDE controllers with a BIOS that
can create RAID volumes and write the configuration info to config blocks
on the disks.  The BIOS can do I/O to these volumes, and the OS must
understand the config blocks and implement RAID in software in order to be
able to use these volumes.

Only SPAN (simple concatenation) and RAID0 are supported at this time,
and writing back config blocks is also not supported at this time.  Currently,
only the Promise configuration scheme is supported, although supporting
the Highpoint scheme should not be too difficult.

In any case, this is sufficient to use the Promise RAID0 volume (thus
preserving the win2k AS installation) on this new Intel server I have.

Thanks to Soren Schmidt for doing the work in FreeBSD; it made this
task much easier.  The config block parsing code is adapted from his
work.

Revision 1.179 / (download) - annotate - [select for diffs], Sat Jan 25 04:45:24 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.178: +24 -6 lines
Diff to previous 1.178 (colored)

Add a couple more Promise ATA133 controllers.

Revision 1.178 / (download) - annotate - [select for diffs], Fri Jan 24 05:51:04 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.177: +5 -4 lines
Diff to previous 1.177 (colored)

* Enable Ultra133 on the NVIDIA nForce 2.
* Make sure to test for PCI_VENDOR_AMD before testing for any
  AMD products.

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jan 24 04:53:13 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.176: +55 -14 lines
Diff to previous 1.176 (colored)

Add support for the NVIDIA nForce ATA100 and nForce2 ATA133
IDE controllers, which are more-or-less compatible with the
AMD controllers.

XXX Need to determine the correct timing value for the nForce2
XXX at Ultra133, so we cap it at Ultra100, for now.

Revision 1.107.2.20 / (download) - annotate - [select for diffs], Sun Dec 29 20:49:28 2002 UTC (9 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.107.2.19: +7 -2 lines
Diff to previous 1.107.2.19 (colored) next main 1.108 (colored)

Sync with HEAD.

Revision 1.176 / (download) - annotate - [select for diffs], Thu Dec 26 20:54:03 2002 UTC (9 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.175: +7 -2 lines
Diff to previous 1.175 (colored)

Recognize Promise Serial ATA/150 TX2plus

Revision 1.107.2.19 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:25 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.107.2.18: +10 -5 lines
Diff to previous 1.107.2.18 (colored)

Sync with HEAD.

Revision 1.153.2.10 / (download) - annotate - [select for diffs], Thu Nov 28 13:31:31 2002 UTC (9 years, 5 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.153.2.9: +6 -2 lines
Diff to previous 1.153.2.9 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.174 (requested by kent in ticket #1019):
Add support for VIA VT8235

Revision 1.175 / (download) - annotate - [select for diffs], Wed Nov 20 19:20:24 2002 UTC (9 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.174: +12 -7 lines
Diff to previous 1.174 (colored)

For sis_setup_channel, acer_setup_channel, hpt_setup_channel,
pdc202xx_setup_channel, pdc20268_setup_channel:
Properly compute the address of the DMA control register for channel 1.
I think the controllers ignore these bits, I suspect it's only there so that
the BIOS can tell the OS is has configured DMA, but better be correct.
Thanks to Alexander Yurchenko for pointing this out.

Revision 1.153.2.9 / (download) - annotate - [select for diffs], Fri Nov 1 16:37:42 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.8: +9 -3 lines
Diff to previous 1.153.2.8 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.168 (requested by bouyer in ticket #728):
Support Ultra/133 on promise controllers that can do it.

Revision 1.153.2.8 / (download) - annotate - [select for diffs], Fri Nov 1 16:33:33 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.7: +8 -6 lines
Diff to previous 1.153.2.7 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.167 (requested by bouyer in ticket #727):
Correct setup for Ultra133 capable VIA chipsets, From Matthias Drochner
on current-users, with cross-check and some improvement from linux-2.4.19
and FreeBSD-current.
Also don't set the APO_UDMA_CLK66 bit for Ultra/100 capable chipset, and
support Ultra/133 for the VT8233A.

Revision 1.153.2.7 / (download) - annotate - [select for diffs], Fri Nov 1 16:20:50 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.6: +96 -21 lines
Diff to previous 1.153.2.6 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.166 (requested by bouyer in ticket #725):
Add support for HPT372. From sdegler@kashmir.degler.net in kern/17908,
with some improvement from me, and from FreeBSD.

Revision 1.153.2.6 / (download) - annotate - [select for diffs], Fri Nov 1 13:23:06 2002 UTC (9 years, 6 months ago) by tron
Branch: netbsd-1-6
Changes since 1.153.2.5: +21 -5 lines
Diff to previous 1.153.2.5 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.165 (requested by bouyer in ticket #724):
Add support for Promise Ultra133TX2 and Ultra133TX2v2, from FreeBSD and
stephen@degler.net in kern/17509.

Revision 1.107.2.18 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:17 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.17: +8 -4 lines
Diff to previous 1.107.2.17 (colored)

Catch up to -current.

Revision 1.121.2.7 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:09 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.121.2.6: +7 -7 lines
Diff to previous 1.121.2.6 (colored) next main 1.122 (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.174 / (download) - annotate - [select for diffs], Sat Oct 5 17:07:32 2002 UTC (9 years, 7 months ago) by kent
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.173: +6 -2 lines
Diff to previous 1.173 (colored)

Add support for VIA VT8235

Revision 1.173 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:51 2002 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.172: +3 -3 lines
Diff to previous 1.172 (colored)

Add trailing ; to CFATTACH_DECL.

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

Use CFATTACH_DECL().

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

Declare all cfattach structures const.

Revision 1.170 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:27 2002 UTC (9 years, 8 months ago) by provos
Branch: MAIN
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.107.2.17 / (download) - annotate - [select for diffs], Tue Sep 17 21:20:26 2002 UTC (9 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.16: +1 -1 lines
Diff to previous 1.107.2.16 (colored)

Catch up to -current.

Revision 1.169 / (download) - annotate - [select for diffs], Sun Sep 15 20:27:09 2002 UTC (9 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored)

Fix typo in comment. From Alexander Yurchenko <grange@rt.mipt.ru>

Revision 1.121.2.6 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:32 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.121.2.5: +337 -40 lines
Diff to previous 1.121.2.5 (colored)

sync kqueue branch with HEAD

Revision 1.152.2.3 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:43 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.152.2.2: +337 -40 lines
Diff to previous 1.152.2.2 (colored) next main 1.153 (colored)

catch up with -current.

Revision 1.107.2.16 / (download) - annotate - [select for diffs], Tue Aug 27 23:46:55 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.15: +128 -29 lines
Diff to previous 1.107.2.15 (colored)

Catch up to -current.

Revision 1.168 / (download) - annotate - [select for diffs], Sun Aug 25 17:26:58 2002 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.167: +7 -1 lines
Diff to previous 1.167 (colored)

Support Ultra/133 on promise controllers that can do it.

Revision 1.167 / (download) - annotate - [select for diffs], Sun Aug 25 17:25:33 2002 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.166: +8 -6 lines
Diff to previous 1.166 (colored)

Correct setup for Ultra133 capable VIA chipsets, From Matthias Drochner
on current-users, with cross-check and some improvement from linux-2.4.19
and FreeBSD-current.
Also don't set the APO_UDMA_CLK66 bit for Ultra/100 capable chipset, and
support Ultra/133 for the VT8233A.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Aug 23 16:24:54 2002 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.165: +98 -23 lines
Diff to previous 1.165 (colored)

Add support for HPT372. From sdegler@kashmir.degler.net in kern/17908,
with some improvement from me, and from FreeBSD.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Aug 23 16:02:32 2002 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.164: +21 -5 lines
Diff to previous 1.164 (colored)

Add support for Promise Ultra133TX2 and Ultra133TX2v2, from FreeBSD and
stephen@degler.net in kern/17509.

Revision 1.107.2.15 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:45 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.14: +2 -1 lines
Diff to previous 1.107.2.14 (colored)

Catch up to -current.

Revision 1.164 / (download) - annotate - [select for diffs], Sat Aug 10 16:33:23 2002 UTC (9 years, 9 months ago) by toshii
Branch: MAIN
Changes since 1.163: +4 -3 lines
Diff to previous 1.163 (colored)

Use UDMA/100 on SiS745 chipset.

Revision 1.153.2.5 / (download) - annotate - [select for diffs], Fri Aug 2 05:55:43 2002 UTC (9 years, 9 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Changes since 1.153.2.4: +7 -2 lines
Diff to previous 1.153.2.4 (colored) to branchpoint 1.153 (colored)

pull up revisions 1.158-1.160 (requested by bouyer in ticket #603):
    1.160:
	Ops, this had already been commited by cjs.  Still, call the
	controller ATA133, even though we use it at ATA100 for now ...
    1.159:
	Add VIA VT8233A support (at Ultra/100 until someone can test 133 for
	me).  From Ryo HAYASAKA, PR kern/17206.
    1.158:
	Recognise the VT8233A ATA100 controller and use Ultra-DMA mode
	5 with it.

Revision 1.153.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 06:14:28 2002 UTC (9 years, 9 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.153.2.3: +17 -6 lines
Diff to previous 1.153.2.3 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.163 (requested by bouyer in ticket #590):
Add support for the 82801DB ICH4 IDE controller, from kern/17757 by
Andreas Wrede <andreas@planix.com>

Revision 1.107.2.14 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:27 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.13: +208 -11 lines
Diff to previous 1.107.2.13 (colored)

Catch up to -current.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Jul 30 21:01:57 2002 UTC (9 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.162: +19 -8 lines
Diff to previous 1.162 (colored)

Add support for the 82801DB ICH4 IDE controller, from kern/17757 by
Andreas Wrede <andreas@planix.com>

Revision 1.162 / (download) - annotate - [select for diffs], Fri Jul 26 14:11:35 2002 UTC (9 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.161: +3 -3 lines
Diff to previous 1.161 (colored)

Spell '[Rr]ight' correctly. From Jim Bernard.

Revision 1.161 / (download) - annotate - [select for diffs], Fri Jul 26 10:23:30 2002 UTC (9 years, 10 months ago) by onoe
Branch: MAIN
Changes since 1.160: +187 -2 lines
Diff to previous 1.160 (colored)

Add support of Silicon Image 0680 Ultra ATA/133 ATA Controller.
It's ugly that all register values are written in numeric, but I can't
find any definition of the registers to be written in literal.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Jul 22 20:56:57 2002 UTC (9 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.159: +2 -6 lines
Diff to previous 1.159 (colored)

Ops, this had already been commited by cjs.
Still, call the controller ATA133, even though we use it at ATA100 for now ...

Revision 1.159 / (download) - annotate - [select for diffs], Mon Jul 22 20:51:02 2002 UTC (9 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.158: +7 -2 lines
Diff to previous 1.158 (colored)

Add VIA VT8233A support (at Ultra/100 until someone can test 133 for me).
From Ryo HAYASAKA, PR kern/17206.

Revision 1.121.2.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:59 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.121.2.4: +438 -80 lines
Diff to previous 1.121.2.4 (colored)

catch up with -current on kqueue branch

Revision 1.152.2.2 / (download) - annotate - [select for diffs], Thu Jun 20 16:33:46 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.152.2.1: +17 -34 lines
Diff to previous 1.152.2.1 (colored)

catch up with -current.

Revision 1.107.2.13 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:47 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.12: +70 -59 lines
Diff to previous 1.107.2.12 (colored)

Catch up to -current.

Revision 1.153.2.3 / (download) - annotate - [select for diffs], Mon Jun 10 17:08:01 2002 UTC (9 years, 11 months ago) by tv
Branch: netbsd-1-6
Changes since 1.153.2.2: +4 -0 lines
Diff to previous 1.153.2.2 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.157 (requested by taca in ticket #228):
Add support for VIA Technologies's VT8231 IDE Controller to ATA/100.

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 16:23:56 2002 UTC (9 years, 11 months ago) by tv
Branch: netbsd-1-6
Changes since 1.153.2.1: +3 -3 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored)

Pull up revision 1.156 (requested by bouyer in ticket #214):
Ops, use the proper setup_channel() function for promise adapters.
Using pdc202xx_setup_channel() for PDC20268 and newer is wrong, and will
cause trap trying to read from a non-existent register on some arches
(e.g. macppc).
pointed out by Makoto Fujiwara on port-macppc.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Jun 10 08:41:11 2002 UTC (9 years, 11 months ago) by cjs
Branch: MAIN
Changes since 1.157: +4 -0 lines
Diff to previous 1.157 (colored)

Recognise the VT8233A ATA100 controller and use Ultra-DMA mode 5 with it.

Revision 1.157 / (download) - annotate - [select for diffs], Sun Jun 9 16:52:26 2002 UTC (9 years, 11 months ago) by taca
Branch: MAIN
Changes since 1.156: +6 -2 lines
Diff to previous 1.156 (colored)

Add support for VIA Technologies's VT8231 IDE Controller to ATA/100.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Jun 8 17:54:59 2002 UTC (9 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Ops, use the proper setup_channel() function for promise adapters.
Using pdc202xx_setup_channel() for PDC20268 and newer is wrong, and will
cause trap trying to read from a non-existent register on some arches
(e.g. macppc).
pointed out by Makoto Fujiwara on port-macppc.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Tue Jun 4 11:11:59 2002 UTC (9 years, 11 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.153: +2 -33 lines
Diff to previous 1.153 (colored)

pull up rev 1.154 (requested by bouyer in #129):
Remove the "set south-bridge's enable bit" code. It doens't seems to make
any difference for rev 0xc3 controllers, and hang on 0xc4 controllers.
Fixes kern/16954

Revision 1.155 / (download) - annotate - [select for diffs], Tue Jun 4 08:58:20 2002 UTC (9 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.154: +8 -2 lines
Diff to previous 1.154 (colored)

AMD 8111 DMA support.

Revision 1.154 / (download) - annotate - [select for diffs], Sat Jun 1 18:07:42 2002 UTC (9 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.153: +2 -33 lines
Diff to previous 1.153 (colored)

Remove the "set south-bridge's enable bit" code. It doens't seems to make
any difference for rev 0xc3 controllers, and hang on 0xc4 controllers.
Fixes kern/16954

Revision 1.152.2.1 / (download) - annotate - [select for diffs], Thu May 30 14:46:27 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.152: +49 -19 lines
Diff to previous 1.152 (colored)

Catch up with -current.

Revision 1.153 / (download) - annotate - [select for diffs], Sun May 19 17:40:46 2002 UTC (10 years ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.152: +49 -19 lines
Diff to previous 1.152 (colored)

Add support for HPT374. Submited by Matthew Rezny in kern/16897, with
minor adjustements by me.

Revision 1.152 / (download) - annotate - [select for diffs], Wed Apr 24 13:49:34 2002 UTC (10 years, 1 month ago) by aymeric
Branch: MAIN
Branch point for: gehenna-devsw
Changes since 1.151: +7 -8 lines
Diff to previous 1.151 (colored)

OPTi changes:
o keep WDC_CAPABILITY_DATA32 regardless of the version of the chip.
o correct typo to disable DMA correctly

Revision 1.151 / (download) - annotate - [select for diffs], Tue Apr 23 20:41:17 2002 UTC (10 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.150: +3 -4 lines
Diff to previous 1.150 (colored)

More copyright fixes, pointed out by Thomas. Thanks !

Revision 1.68.2.33 / (download) - annotate - [select for diffs], Mon Apr 22 22:07:16 2002 UTC (10 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.68.2.32: +7 -3 lines
Diff to previous 1.68.2.32 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Pull up revision 1.150 (requested by bouyer):
  Fix use of bus_space_unmap() for the native case.  Fixes PR#16307.

Revision 1.107.2.12 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:05 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.11: +357 -19 lines
Diff to previous 1.107.2.11 (colored)

Catch up to -current.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Apr 14 16:55:08 2002 UTC (10 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.149: +8 -4 lines
Diff to previous 1.149 (colored)

bus_space_unmap() ctl_baseioh instead of ctl_ioh for the native case.
Pointed out by enami, and should fix kern/16307.

Revision 1.149 / (download) - annotate - [select for diffs], Fri Apr 12 18:02:04 2002 UTC (10 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.148: +184 -11 lines
Diff to previous 1.148 (colored)

Add support for the ServerWorks OSB4 and CSB5 chipsets.
Note:  The code is written a little more cruftily than it should be.  It's also
only tested on the OSB4.  I'm not sure it even makes sense to have support for
`native' mode, but I put it in just in case.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Apr 5 22:16:28 2002 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.147: +2 -4 lines
Diff to previous 1.147 (colored)

Reenable DMA on the Symphony/Winbond chips.  The lossage I saw was
due to a broken pmap_extract() on ARM.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Apr 4 23:47:39 2002 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.146: +4 -2 lines
Diff to previous 1.146 (colored)

Hm, Symphony/Winbond support doens't seem to work quite right
yet; disable it for now.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Apr 3 17:02:21 2002 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.145: +171 -10 lines
Diff to previous 1.145 (colored)

Add bus master DMA support for the Symphony Labs 82C105 PCI IDE
controller.  This part is also found in the Winbond 83C553 Southbrige.

Revision 1.107.2.11 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:41 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.10: +13 -4 lines
Diff to previous 1.107.2.10 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.68.2.32 / (download) - annotate - [select for diffs], Mon Mar 25 17:57:01 2002 UTC (10 years, 2 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.31: +12 -3 lines
Diff to previous 1.68.2.31 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.145 (requested by bouyer):
  Add support for the pciide part of the AMD-768 chipset.

Revision 1.145 / (download) - annotate - [select for diffs], Sun Mar 24 16:58:12 2002 UTC (10 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.144: +13 -4 lines
Diff to previous 1.144 (colored)

Add support for the AMD768. Tested by Murray Armfield <murray@river-styx.org>.

Revision 1.107.2.10 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:08 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.9: +30 -7 lines
Diff to previous 1.107.2.9 (colored)

Catch up to -current.

Revision 1.121.2.4 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:05 2002 UTC (10 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.121.2.3: +30 -7 lines
Diff to previous 1.121.2.3 (colored)

Sync w/ -current.

Revision 1.68.2.31 / (download) - annotate - [select for diffs], Sat Feb 9 18:07:19 2002 UTC (10 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.30: +3 -2 lines
Diff to previous 1.68.2.30 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.143 (requested by bouyer):
  In hpt_pci_intr(), accept interrupt only once IDEDMA_CTL_ACT is
  turned off.  Fixes DMA errors, lost interrupts, and other nasty
  errors with some HPT730s in native mode.

Revision 1.68.2.30 / (download) - annotate - [select for diffs], Wed Feb 6 14:17:51 2002 UTC (10 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.29: +250 -1 lines
Diff to previous 1.68.2.29 (colored) to branchpoint 1.68 (colored)

Pull up revisions 1.112,1.118,1.125,1.128 (via patch, requested by tsutsui):
  Add support for Acard ATP-850/860 pciide controllers.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Jan 29 21:13:17 2002 UTC (10 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.143: +18 -6 lines
Diff to previous 1.143 (colored)

Support Ultra/100 on Intel 830M. From ks@ub.uni-mainz.de on -current-users.

Revision 1.143 / (download) - annotate - [select for diffs], Mon Jan 28 15:30:29 2002 UTC (10 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.142: +4 -3 lines
Diff to previous 1.142 (colored)

In hpt_pci_intr(): There is interrupt pending once IDEDMA_CTL_ACT is
turned off. It seems that IDEDMA_CTL_INTR is asserted before DMA transfer
is complete, leading to race condition in case of interrupt sharing.
Discovered reading the FreeBSD code.

Revision 1.142 / (download) - annotate - [select for diffs], Mon Jan 14 01:35:39 2002 UTC (10 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.141: +12 -2 lines
Diff to previous 1.141 (colored)

Add 82201CA to the chip table.

Revision 1.107.2.9 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:26 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.8: +3 -3 lines
Diff to previous 1.107.2.8 (colored)

More catchup.

Revision 1.121.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:59 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.121.2.2: +239 -80 lines
Diff to previous 1.121.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.141 / (download) - annotate - [select for diffs], Tue Jan 8 11:47:27 2002 UTC (10 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Fix typo in comment. Reported by Alexander Yurchenko in private mail.

Revision 1.107.2.8 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:14 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.7: +171 -64 lines
Diff to previous 1.107.2.7 (colored)

Catch up to -current.

Revision 1.68.2.29 / (download) - annotate - [select for diffs], Sat Jan 5 18:05:58 2002 UTC (10 years, 4 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.28: +5 -1 lines
Diff to previous 1.68.2.28 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.135 (requested by bouyer):
  Support Ultra-DMA 100 on the CMD 0649.

Revision 1.140 / (download) - annotate - [select for diffs], Tue Dec 18 16:40:51 2001 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.139: +3 -3 lines
Diff to previous 1.139 (colored)

Ops, a Ultra100>=TX2 is always in native mode !

Revision 1.139 / (download) - annotate - [select for diffs], Tue Dec 18 16:32:54 2001 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.138: +16 -4 lines
Diff to previous 1.138 (colored)

The CMD0649 has 2 truly independant channel. tested by and patch from
Love <lha@stacken.kth.se>.
I suspect this is true for the 648 too; if someone with a 648 and one device
on each channel could test that all works with one_channel = 1, it would
be great !

Revision 1.138 / (download) - annotate - [select for diffs], Sun Dec 16 23:35:52 2001 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.137: +151 -59 lines
Diff to previous 1.137 (colored)

dd support for the Promise Ultra100TX2, Promise Ultra100TX2v2 and Ultra133
IDE controllers. In part from OpenBSD via ragge, in part from FreeBSD.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Dec 13 20:57:22 2001 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.136: +2 -3 lines
Diff to previous 1.136 (colored)

pdc202xx_setup_channel: remove a duplicate line.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Nov 21 17:33:28 2001 UTC (10 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

Explicitly write explicitly without a second e.

Revision 1.135 / (download) - annotate - [select for diffs], Thu Nov 15 20:48:17 2001 UTC (10 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.134: +6 -2 lines
Diff to previous 1.134 (colored)

Support Ultra/100 on CMD 0649.

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

Catch up to -current.

Revision 1.68.2.28 / (download) - annotate - [select for diffs], Tue Nov 13 21:52:44 2001 UTC (10 years, 6 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.27: +8 -4 lines
Diff to previous 1.68.2.27 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.123 (requested by bouyer):
  Support HPT-370A controllers.  Fixes PR#13540.

Revision 1.68.2.27 / (download) - annotate - [select for diffs], Tue Nov 13 21:48:11 2001 UTC (10 years, 6 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.26: +17 -2 lines
Diff to previous 1.68.2.26 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.121 (requested by bouyer):
  Disable UDMA only for SiS controllers which are really buggy,
  not all the ones with revision 0xd0.

Revision 1.134 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:48 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.133: +4 -1 lines
Diff to previous 1.133 (colored)

add RCSID

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

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

Revision 1.133 / (download) - annotate - [select for diffs], Fri Oct 26 10:38:12 2001 UTC (10 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.132: +5 -1 lines
Diff to previous 1.132 (colored)

Add Via KT266 as an ATA100 controller.

Revision 1.107.2.6 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:27 2001 UTC (10 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.5: +36 -14 lines
Diff to previous 1.107.2.5 (colored)

Catch up to -current.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Oct 21 18:55:14 2001 UTC (10 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.131: +14 -6 lines
Diff to previous 1.131 (colored)

Add a config flag (0x02) that can force DMA to be *disabled* on
chipsets for which it would otherwise be enabled by default.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Oct 16 08:22:50 2001 UTC (10 years, 7 months ago) by tron
Branch: MAIN
Changes since 1.130: +5 -2 lines
Diff to previous 1.130 (colored)

Add UDMA/100 support for SiS chipsets 645, 650 and 730.

Revision 1.130 / (download) - annotate - [select for diffs], Sun Oct 14 11:21:10 2001 UTC (10 years, 7 months ago) by tron
Branch: MAIN
Changes since 1.129: +20 -9 lines
Diff to previous 1.129 (colored)

Use UDMA/100 on SiS 735 chipset.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:02 2001 UTC (10 years, 7 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.128: +34 -11 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

Catch up with -current.

Revision 1.107.2.5 / (download) - annotate - [select for diffs], Wed Sep 26 19:54:56 2001 UTC (10 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.4: +34 -11 lines
Diff to previous 1.107.2.4 (colored)

Catch up to -current.
Again.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Sep 24 20:03:47 2001 UTC (10 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.128: +34 -11 lines
Diff to previous 1.128 (colored)

Ali M5229 IDE controllers: tweak the rigth 0x79 register (the one from the
pci/isa bridge, not the one from the IDE controller).

Revision 1.107.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:01 2001 UTC (10 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.3: +13 -1 lines
Diff to previous 1.107.2.3 (colored)

Catch up to -current.

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:27 2001 UTC (10 years, 9 months ago) by thorpej
Branch: kqueue
Changes since 1.121.2.1: +13 -1 lines
Diff to previous 1.121.2.1 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:20 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.2: +72 -12 lines
Diff to previous 1.107.2.2 (colored)

Catch up with -current.

Revision 1.128 / (download) - annotate - [select for diffs], Thu Aug 23 10:02:25 2001 UTC (10 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.127: +13 -1 lines
Diff to previous 1.127 (colored)

Check 80 pins cable in acard_setup_channel() for Acard ATP860.

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:21 2001 UTC (10 years, 9 months ago) by lukem
Branch: kqueue
Changes since 1.121: +56 -11 lines
Diff to previous 1.121 (colored)

update to -current

Revision 1.127 / (download) - annotate - [select for diffs], Fri Aug 3 01:31:08 2001 UTC (10 years, 9 months ago) by tsutsui
Branch: MAIN
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

Fix some typos in newer ALi M5229 support. Approved by bouyer.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Aug 1 16:29:21 2001 UTC (10 years, 9 months ago) by tsutsui
Branch: MAIN
Changes since 1.125: +1 -2 lines
Diff to previous 1.125 (colored)

Remove unused pciide_print() declaration. From OpenBSD.

Revision 1.68.2.26 / (download) - annotate - [select for diffs], Sun Jul 29 21:17:35 2001 UTC (10 years, 9 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002
Changes since 1.68.2.25: +19 -4 lines
Diff to previous 1.68.2.25 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.120 (requested by scw):
  Workaround for buggy OPTi pciide chipset revisions, as reported
  in PR#11644.

Revision 1.125 / (download) - annotate - [select for diffs], Sat Jul 28 12:07:11 2001 UTC (10 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.124: +1 -3 lines
Diff to previous 1.124 (colored)

Enable the Acard UIDE controllers by default.

My WDC MDMA-only (non-UDMA) drives did not work on the Acard controllers,
but it turns out that the problem was not Acard specific.
These WDC drives do not work on the ESS ISAPnP wdc port nor on
macppc obio wdc port neither, and another Quantum MDMA-only drive
works fine on the Acard.

These WDC drives work fine on my i386 pciide (which is initialized
by the BIOS), so maybe we have to do something in MI wdc to initialize
such drives properly...

Revision 1.124 / (download) - annotate - [select for diffs], Thu Jul 26 20:02:21 2001 UTC (10 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.123: +47 -4 lines
Diff to previous 1.123 (colored)

Better support for newer ALI M5229 chipsets: support Ultra/66 for rev >= 0xC2,
Ultra/100 for revs >= 0xC4.
The the generic PCIIDE interupt routine for chipsets rev >= 0xC2 in native
mode, it seems that newer chipsets don't have the ACER_CHIDS register :(
From Linux and FreeBSD.

Revision 1.123 / (download) - annotate - [select for diffs], Mon Jul 23 14:55:26 2001 UTC (10 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.122: +8 -4 lines
Diff to previous 1.122 (colored)

Handle HPT-370A controllers, from skanto@sjk-software.fi (kern/13540) but
with some differences to the original patch: don't assume all controllers with
rev >= HPT370_REV are HPT370, and explicitely print if we have a chip with a
rev the driver does't know.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Jul 19 16:36:16 2001 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.121: +3 -2 lines
Diff to previous 1.121 (colored)

Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Jul 4 16:26:17 2001 UTC (10 years, 10 months ago) by bouyer
Branch: MAIN
Branch point for: kqueue
Changes since 1.120: +17 -2 lines
Diff to previous 1.120 (colored)

Better fix for rev 1.94 (disable UDMA for SiS controllers with rev 0xd0):
Different chipsets have the same vendor/device/rev ID for the IDE controller,
but only one of them is buggy. So check dev/rev ID of the function 0
(pchb on the buggy one) of the same device to detect the buggy controller.

Revision 1.68.2.25 / (download) - annotate - [select for diffs], Mon Jul 2 13:47:25 2001 UTC (10 years, 10 months ago) by jhawk
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH001
Changes since 1.68.2.24: +2 -2 lines
Diff to previous 1.68.2.24 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.94 (requested by bouyer):
  Don't try to use ultra-dma on sis chips with revision 0xd0. It loses
  immediately with a lost interrupt on udma mode 2, downgrades to mode 1
  at which point it silently corrupts data on high disk activity.

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:08 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.107.2.1: +451 -118 lines
Diff to previous 1.107.2.1 (colored)

Catch up to -current.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Jun 13 09:55:25 2001 UTC (10 years, 11 months ago) by scw
Branch: MAIN
Changes since 1.119: +19 -4 lines
Diff to previous 1.119 (colored)

Workaround for buggy OPTi pciide chipset revisions, as reported
in PR/11644.

Revision 1.119 / (download) - annotate - [select for diffs], Fri Jun 8 04:48:58 2001 UTC (10 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.118: +5 -1 lines
Diff to previous 1.118 (colored)

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.

Revision 1.118 / (download) - annotate - [select for diffs], Wed May 30 20:30:02 2001 UTC (10 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored)

Uninitialised variable (from Krister Walfridsson): in acard_chip_map()
drop compatchan and use the real channel number instead.

Revision 1.68.2.24 / (download) - annotate - [select for diffs], Tue May 15 20:52:51 2001 UTC (11 years ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.23: +129 -93 lines
Diff to previous 1.68.2.23 (colored) to branchpoint 1.68 (colored)

Pull up revisions 1.113-1.116 (via patch, requested by bouyer):
  Add support for newer VIA pciide controllers.
  Add support for the AMD 766 pciide controller.
  Properly distinguish between HPT366 and HPT370 controllers.

Revision 1.117 / (download) - annotate - [select for diffs], Mon May 14 20:41:27 2001 UTC (11 years ago) by matt
Branch: MAIN
Changes since 1.116: +39 -1 lines
Diff to previous 1.116 (colored)

Add latent vendor entries for ServerWorks and Winbond IDE controllers.
No code to use them as yet.

Revision 1.116 / (download) - annotate - [select for diffs], Sun May 6 20:06:35 2001 UTC (11 years ago) by fvdl
Branch: MAIN
Changes since 1.115: +40 -29 lines
Diff to previous 1.115 (colored)

Add amd766 support. Rename some variables to 7x6 now that it supports
both 756 and 766.

Revision 1.115 / (download) - annotate - [select for diffs], Sun May 6 14:32:35 2001 UTC (11 years ago) by fvdl
Branch: MAIN
Changes since 1.114: +2 -1 lines
Diff to previous 1.114 (colored)

Add missing break statement.

Revision 1.114 / (download) - annotate - [select for diffs], Fri May 4 18:38:36 2001 UTC (11 years ago) by bouyer
Branch: MAIN
Changes since 1.113: +7 -2 lines
Diff to previous 1.113 (colored)

Now that we can do it, print "HPT366" or "HPT370" depending on PCI revision.

Revision 1.113 / (download) - annotate - [select for diffs], Fri May 4 15:25:05 2001 UTC (11 years ago) by bouyer
Branch: MAIN
Changes since 1.112: +83 -63 lines
Diff to previous 1.112 (colored)

Better support for VIA chipsets: look at the product/rev ID of the ISA bridge
to guess the pciide capabilities, rather than trying to guess it by ourselve.
Add preliminary support for the 686b (Ultra/100) guessed from FreeBSD/linux
driver (datasheet not publically available,  I contacted via).
Let chip-specific map routine do the autoconf printf if ide_name is NULL
(they may have more details about the controller than we have in pciide_attach)

Revision 1.68.2.23 / (download) - annotate - [select for diffs], Tue Apr 24 23:05:30 2001 UTC (11 years, 1 month ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.22: +2 -6 lines
Diff to previous 1.68.2.22 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.110 (requested by bouyer):
  Revert setting of PDC2xx_SCR for Promise Ultra/100, it seems to
  break with some adapters.

Revision 1.44.2.9 / (download) - annotate - [select for diffs], Mon Apr 23 09:42:29 2001 UTC (11 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.8: +263 -24 lines
Diff to previous 1.44.2.8 (colored) next main 1.45 (colored)

Sync with HEAD.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Apr 21 16:36:37 2001 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.111: +240 -1 lines
Diff to previous 1.111 (colored)

Preliminary support for Acard ATP850/860 UDMA PCI IDE controllers.

XXX Currently disabled by default because it has some problems on macppc.
XXX Maybe some more initialization is needed, but there is few information
XXX about the chips.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Apr 21 16:10:54 2001 UTC (11 years, 1 month ago) by tsutsui
Branch: MAIN
Changes since 1.110: +24 -24 lines
Diff to previous 1.110 (colored)

space -> tab

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:08 2001 UTC (11 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.107: +63 -8 lines
Diff to previous 1.107 (colored)

Catch up with -current.

Revision 1.44.2.8 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:12 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.7: +3 -7 lines
Diff to previous 1.44.2.7 (colored)

Sync with HEAD.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Mar 20 17:56:46 2001 UTC (11 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.109: +2 -6 lines
Diff to previous 1.109 (colored)

Don't set up PDC2xx_SCR the same way for promise Ultra/66 & Ultra/100,
this special setup seems to break some adapters.
Reported by Kazushi Marukawa.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Mar 20 17:54:39 2001 UTC (11 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

Add BUS_DMA_STREAMING for the data bus_dmamap_load().

Revision 1.68.2.22 / (download) - annotate - [select for diffs], Tue Mar 13 21:23:35 2001 UTC (11 years, 2 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.21: +67 -8 lines
Diff to previous 1.68.2.21 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.108 (requested by bouyer):
  Support Ultra/100 speed on Promise Ultra/100, and fix ``bogus
  intr'' messages generated under some conditions.

Revision 1.44.2.7 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:14 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.6: +86 -13 lines
Diff to previous 1.44.2.6 (colored)

Sync with HEAD.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Mar 12 09:53:28 2001 UTC (11 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.107: +67 -8 lines
Diff to previous 1.107 (colored)

Support the Promise Ultra/100 at full speed, and fixes the "bogus intr"
problem some peoples reported for Promise Ultra/100.
Thanks to Chuck Silvers for giving me a Promise Ultra/100 so I could do some
tests.

Revision 1.68.2.21 / (download) - annotate - [select for diffs], Mon Feb 26 21:50:56 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.20: +5 -2 lines
Diff to previous 1.68.2.20 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.107 (requested by bouyer):
  Disable Ultra-DMA on Ali controllers which don't support it.

Revision 1.68.2.20 / (download) - annotate - [select for diffs], Mon Feb 26 21:49:16 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.19: +16 -5 lines
Diff to previous 1.68.2.19 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.106 (requested by bouyer):
  Add support for the Intel 82801BAM IDE controller.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Feb 18 18:07:53 2001 UTC (11 years, 3 months ago) by bouyer
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.106: +5 -2 lines
Diff to previous 1.106 (colored)

ALi controller: can only do UltraDMA for revs >= 0x20.
From OpenBSD.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Feb 18 17:58:59 2001 UTC (11 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.105: +16 -5 lines
Diff to previous 1.105 (colored)

Add support for INTEL 82801BAM IDE controller, from OpenBSD.

Revision 1.68.2.19 / (download) - annotate - [select for diffs], Sun Feb 4 18:55:05 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.18: +15 -2 lines
Diff to previous 1.68.2.18 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.105 (requested by bouyer):
  Fix bug which affects pciide controllers in native mode.  Main
  effect was a non-functionnal IDE controller on some sparc64 and
  macppc when booted from IDE disk.

Revision 1.68.2.18 / (download) - annotate - [select for diffs], Sun Feb 4 18:52:41 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.17: +28 -5 lines
Diff to previous 1.68.2.17 (colored) to branchpoint 1.68 (colored)

Pull up revisions 1.102-1.103 (requested by bouyer):
  Add support for Ultra/100 on Intel ICH2.

Revision 1.68.2.17 / (download) - annotate - [select for diffs], Sun Feb 4 18:44:41 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.16: +50 -3 lines
Diff to previous 1.68.2.16 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.104 (requested by bouyer):
  Run at Ultra/66 on VIA controllers that can do it.

Revision 1.68.2.16 / (download) - annotate - [select for diffs], Sun Feb 4 18:42:34 2001 UTC (11 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.15: +8 -3 lines
Diff to previous 1.68.2.15 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.101 (requested by bouyer):
  Add support for Ultra/100 on the HPT370 controller.

Revision 1.44.2.6 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:30 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.5: +50 -3 lines
Diff to previous 1.44.2.5 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.44.2.5 / (download) - annotate - [select for diffs], Mon Jan 15 09:27:44 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.4: +15 -2 lines
Diff to previous 1.44.2.4 (colored)

req_sense_length is dead.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Jan 12 16:03:59 2001 UTC (11 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.104: +15 -2 lines
Diff to previous 1.104 (colored)

Fix bug which affects pciide controllers in native mode (found by
Paul Kranenburg, many thanks !): the control register I/O is 4 byte long
although only one is used, but the control register is at offset 2, and not
0 as expected by IC code. Use bus_space_subregion() to get a handle which
points to the control register, and is one byte long.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Jan 5 18:04:42 2001 UTC (11 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.103: +50 -3 lines
Diff to previous 1.103 (colored)

Run at Ultra/66 on VIA controllers that can do it. PCI vendor/device/revision
is the same for the Ultra/33 and Ultra/66 version, so test writability of
the U66 enable bit (idea from Chris Cappuccio).
Thanks to David Carrel for testings.

Revision 1.44.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:16 2001 UTC (11 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.3: +41 -14 lines
Diff to previous 1.44.2.3 (colored)

Sync with HEAD

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 5 15:34:05 2001 UTC (11 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Ops, make it compile again.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jan 5 15:29:39 2001 UTC (11 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.101: +28 -5 lines
Diff to previous 1.101 (colored)

Add support for Ultra/100 on intel ICH2; from Tomokazu HARADA in kern/11747.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jan 5 15:20:53 2001 UTC (11 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.100: +8 -3 lines
Diff to previous 1.100 (colored)

Add support for Ultra/100 on the HPT370
XXX the datasheet for the HPT370 is wrong
While I'm there clear the DRIVE_DMA flag when we're going to use Ultra/DMA
where it was missed, so that wdc_print_modes() only prints what's used.

Revision 1.100 / (download) - annotate - [select for diffs], Fri Dec 29 18:59:01 2000 UTC (11 years, 4 months ago) by tsutsui
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

s/AP0_UDMA_MASK/APO_UDMA_MASK/

Revision 1.99 / (download) - annotate - [select for diffs], Thu Dec 28 22:59:15 2000 UTC (11 years, 4 months ago) by sommerfeld
Branch: MAIN
Changes since 1.98: +2 -3 lines
Diff to previous 1.98 (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.98 / (download) - annotate - [select for diffs], Thu Dec 21 01:19:24 2000 UTC (11 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.97: +5 -5 lines
Diff to previous 1.97 (colored)

Disable the 16-bit I/O space hack for ALL PROMISE CONTROLLERS.
This code is TOTALLY BROKEN and causes a NULL POINTER DEREFERENCE whenever it
is fired.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Dec 17 21:50:14 2000 UTC (11 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

Cast a `bus_addr_t' argument to `u_long' for `%lx' format (XXX..)

Revision 1.68.2.15 / (download) - annotate - [select for diffs], Fri Dec 15 04:30:47 2000 UTC (11 years, 5 months ago) by he
Branch: netbsd-1-5
Changes since 1.68.2.14: +15 -3 lines
Diff to previous 1.68.2.14 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.93 (requested by bouyer):
  Add support for Intel ICH2 IDE controller.

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:12:37 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.2: +8 -7 lines
Diff to previous 1.44.2.2 (colored)

Sync with HEAD.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Dec 4 20:25:40 2000 UTC (11 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.95: +7 -6 lines
Diff to previous 1.95 (colored)

Avoid format warnings.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Nov 30 18:11:40 2000 UTC (11 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

Don't restrict I/O space to 16-bits on the Promise Ultra/33 boards.
Empirical evidence suggests that the board works just fine with
an I/O address >= 0x10000.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Nov 26 04:59:18 2000 UTC (11 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Don't try to use ultra-dma on sis chips with revision 0xd0. It loses
immediately with a lost interrupt on udma mode 2, downgrades to mode 1
at which point it silently corrupts data on high disk activity. This
happens on two out of 3 machines I own that exhibit high disk activity.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:18 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44.2.1: +41 -31 lines
Diff to previous 1.44.2.1 (colored)

Sync with HEAD.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:33 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.44: +994 -204 lines
Diff to previous 1.44 (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.93 / (download) - annotate - [select for diffs], Sun Nov 19 15:32:24 2000 UTC (11 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.92: +15 -3 lines
Diff to previous 1.92 (colored)

Add support for Intel ICH2

Revision 1.92 / (download) - annotate - [select for diffs], Tue Nov 14 18:42:58 2000 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.91: +3 -1 lines
Diff to previous 1.91 (colored)

NBPG -> PAGE_SIZE

Revision 1.91 / (download) - annotate - [select for diffs], Wed Nov 8 18:22:27 2000 UTC (11 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.90: +10 -8 lines
Diff to previous 1.90 (colored)

Make the test for dmareg >= 0x10000 quirked on IDE_16BIT_IOSPACE

Revision 1.90 / (download) - annotate - [select for diffs], Wed Nov 8 17:57:37 2000 UTC (11 years, 6 months ago) by wrstuden
Branch: MAIN
Changes since 1.89: +2 -23 lines
Diff to previous 1.89 (colored)

Move guts of pciide_print_modes() to wdc_print_modes() so that non-pciide
wdc drivers (like macppc's obio IDE interface) can use it. Also add
support to both wd attach line and to wdc_print_modes() to print
Ultra/{33,66,100} for respective UDMA modes (From Manuel Bouyer).

Revision 1.89 / (download) - annotate - [select for diffs], Sun Nov 5 21:14:59 2000 UTC (11 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.88: +16 -1 lines
Diff to previous 1.88 (colored)

Don't allow use of mapreg is they are at or above 0x10000 in I/O space. (in
other words, if the address uses bits in the top 16 bits, don't use it).

Revision 1.68.2.14 / (download) - annotate - [select for diffs], Wed Oct 4 17:07:44 2000 UTC (11 years, 7 months ago) by bouyer
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.68.2.13: +4 -2 lines
Diff to previous 1.68.2.13 (colored) to branchpoint 1.68 (colored)

Pull up 1.87->1.88, approved by thorpej:
only VT82C586A rev >= 6 supports Ultra-DMA. From OpenBSD.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Oct 4 09:34:09 2000 UTC (11 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

only VT82C586A rev >= 6 supports Ultra-DMA. From OpenBSD.

Revision 1.68.2.13 / (download) - annotate - [select for diffs], Tue Aug 22 02:19:32 2000 UTC (11 years, 9 months ago) by enami
Branch: netbsd-1-5
Changes since 1.68.2.12: +4 -1 lines
Diff to previous 1.68.2.12 (colored) to branchpoint 1.68 (colored)

Pullup rev. 1.87 (approved by jhawk):
Recognize Promise ATA-100 controller as PDC-20262 instead of 20246.

Revision 1.68.2.12 / (download) - annotate - [select for diffs], Tue Aug 22 02:16:44 2000 UTC (11 years, 9 months ago) by enami
Branch: netbsd-1-5
Changes since 1.68.2.11: +6 -1 lines
Diff to previous 1.68.2.11 (colored) to branchpoint 1.68 (colored)

Pullup rev. 1.86 (approved by jhawk and thorpej):
Match the Promise ATA-100 controller found on the mother board
MS-6321 (MSI 694D Pro).  Reported in PR#10756 by Kazuki Sakamoto.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Aug 21 15:52:50 2000 UTC (11 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.86: +5 -2 lines
Diff to previous 1.86 (colored)

Recognize Promise ATA-100 controller as PDC-20262 instead of 20246.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Aug 21 15:43:46 2000 UTC (11 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.85: +6 -1 lines
Diff to previous 1.85 (colored)

Match the Promise ATA-100 controller found on the mother board
MS-6321 (MSI 694D Pro).  Reported in PR#10756 by Kazuki Sakamoto.

Revision 1.33.2.11 / (download) - annotate - [select for diffs], Mon Aug 14 14:19:33 2000 UTC (11 years, 9 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.33.2.10: +8 -3 lines
Diff to previous 1.33.2.10 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Pull up revision 1.84 (via patch, requested by bouyer):
  Change PCIIDE_CMD0646U_UDMA to PCIIDE_CMD0646U_ENABLEUDMA
  for consistency with PCIIDE_AMD756_ENABLEDMA.

Revision 1.33.2.10 / (download) - annotate - [select for diffs], Mon Aug 14 14:15:21 2000 UTC (11 years, 9 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.9: +29 -5 lines
Diff to previous 1.33.2.9 (colored) to branchpoint 1.33 (colored)

Pull up revisions 1.82-1.83 (requested by bouyer):
  Add UltraDMA support for the CMD PCI0646U and PCI0646U2 controllers;
  normally disabled on PCI0646U due to a chip bug, but can be
  enabled with a kernel option.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Aug 9 13:23:07 2000 UTC (11 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.84: +7 -1 lines
Diff to previous 1.84 (colored)

recognize the i440MX mobile chipset's IDE interface

Revision 1.68.2.11 / (download) - annotate - [select for diffs], Thu Aug 3 17:15:40 2000 UTC (11 years, 9 months ago) by bouyer
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.68.2.10: +22 -2 lines
Diff to previous 1.68.2.10 (colored) to branchpoint 1.68 (colored)

Pull up (approved by thorpej):
sys/dev/pci/pciide.c 1.82 -> 1.84
sys/dev/pci/pciide_cmd_reg.h 1.8 -> 1.9
sys/dev/pci/files.pci 1.100 -> 1.101
share/man/man4/pciide.4 1.23 -> 1.24

Add support for the CMD PCI646U. Linux claims that this driver is brocken
with UDMA, so enable Ultra-DMA only if "options PCIIDE_CMD0646U_ENABLEUDMA"
is set.
defopt PCIIDE_CMD0646U_ENABLEUDMA, PCIIDE_AMD756_ENABLEDMA,
       PCIIDE_CMD064x_DISABLE
Fix a typo pointed out by John Hawkinson
Update documentation.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Aug 2 21:49:09 2000 UTC (11 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.83: +8 -3 lines
Diff to previous 1.83 (colored)

PCIIDE_CMD0646U_UDMA->PCIIDE_CMD0646U_ENABLEUDMA for consistency with
    PCIIDE_AMD756_ENABLEDMA
defopt PCIIDE_CMD0646U_ENABLEUDMA, PCIIDE_AMD756_ENABLEDMA,
    PCIIDE_CMD064x_DISABLE
Fix a typo pointed out by John Hawkinson

Revision 1.83 / (download) - annotate - [select for diffs], Wed Aug 2 20:23:45 2000 UTC (11 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.82: +16 -1 lines
Diff to previous 1.82 (colored)

Add support for the CMD PCI646U. Linux claims that this driver is brocken
with UDMA, so enable Ultra-DMA only if "options PCIIDE_CMD0646U_UDMA" is set.

Revision 1.68.2.10 / (download) - annotate - [select for diffs], Wed Aug 2 17:06:17 2000 UTC (11 years, 9 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.9: +14 -5 lines
Diff to previous 1.68.2.9 (colored) to branchpoint 1.68 (colored)

Pull up (approved by thorpej):
pciide_cmd_reg.h 1.7 -> 1.8
pciide.c 1.81 -> 1.82
Add supports for the PCI0646U2, Ultra/33 version of the PCI0646.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Aug 1 21:02:55 2000 UTC (11 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.81: +14 -5 lines
Diff to previous 1.81 (colored)

Add support for the CMD PCI0646U2, an Ultra/33 version of the 0646.
Note: there's also a PCI0646U, for which I don't have docs for now.

Revision 1.33.2.9 / (download) - annotate - [select for diffs], Thu Jul 27 17:45:09 2000 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.8: +10 -2 lines
Diff to previous 1.33.2.8 (colored) to branchpoint 1.33 (colored)

Pull up revision 1.81 (requested by bouyer):
  Clear the interrupt disable bit of the HPT370, and document HPT370
  support.

Revision 1.33.2.8 / (download) - annotate - [select for diffs], Thu Jul 27 17:36:40 2000 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.7: +3 -1 lines
Diff to previous 1.33.2.7 (colored) to branchpoint 1.33 (colored)

Pull up revision 1.80 (requested by bouyer):
  Make pciide compile with ``options PCIIDE_AMD756_ENABLEDMA.''
  Fixes PR#10555.

Revision 1.68.2.9 / (download) - annotate - [select for diffs], Thu Jul 27 16:28:48 2000 UTC (11 years, 10 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.8: +10 -2 lines
Diff to previous 1.68.2.8 (colored) to branchpoint 1.68 (colored)

Pull up (approved by thorpej):
sys/dev/pci/pciide.c 1.80 -> 1.81
sys/dev/pci/pciide_hpt_reg.h 1.1 -> 1.2
distrib/notes/i386/hardware 1.74 -> 1.75
share/man/man4/pciide.4 1.22 -> 1.23
Make sure the HPT370's interrupts disable bit is cleared. Now that HPT370
supports works, document it.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jul 27 14:28:45 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.80: +10 -2 lines
Diff to previous 1.80 (colored)

HPT370: clear disable interrupt bit; make it works in Ultra/66 mode.

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Sun Jul 23 17:31:54 2000 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.6: +5 -4 lines
Diff to previous 1.33.2.6 (colored) to branchpoint 1.33 (colored)

Pull up revision 1.79 (requested by bouyer):
  Handle CMD PCI0646 interrupts as for the PCI0648; makes the
  PCI0646 work in native mode with shared interrupts.

Revision 1.33.2.6 / (download) - annotate - [select for diffs], Sun Jul 23 17:29:08 2000 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.5: +6 -1 lines
Diff to previous 1.33.2.5 (colored) to branchpoint 1.33 (colored)

Pull up revision 1.74 (requested by bouyer):
  Add support for the Promise Ultra/100 PCI IDE controller (in
  Ultra/66 mode only).

Revision 1.68.2.8 / (download) - annotate - [select for diffs], Thu Jul 20 14:25:47 2000 UTC (11 years, 10 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.7: +3 -1 lines
Diff to previous 1.68.2.7 (colored) to branchpoint 1.68 (colored)

Pull up 1.80 (approved by thorpej):
Make is compile when PCIIDE_AMD756_ENABLEDMA is defined; close PR kern/10555.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jul 20 12:19:41 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

Make it compile when PCIIDE_AMD756_ENABLEDMA is defined. From kern/10555
by MURATA Shuuichirou.

Revision 1.68.2.7 / (download) - annotate - [select for diffs], Wed Jul 19 12:29:25 2000 UTC (11 years, 10 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.6: +5 -4 lines
Diff to previous 1.68.2.6 (colored) to branchpoint 1.68 (colored)

Pull up 1.79, approved by thorpej:
Use the CMD PCI0648/9 IRQ ACK code for the 0646 too, makes the 0646 works
in native mode.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Fri Jul 7 17:33:49 2000 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-4
Changes since 1.33.2.4: +1947 -826 lines
Diff to previous 1.33.2.4 (colored) to branchpoint 1.33 (colored)

Apply patch (requested by bouyer):
  Add support for the following PCIIDE controllers:
   o AMD 756
   o CMD PCI0648 and PCI0649
   o Hightpoint HPT366
   o OPTi 82c621 (and a few of its derivatives)
   o Promise Ultra/33 and Ultra/66
   o Intel 82801 (ICH/ICH0)
  Also fix PR#10437 (detect more ATAPI devices).

Revision 1.79 / (download) - annotate - [select for diffs], Fri Jul 7 13:54:25 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.78: +5 -4 lines
Diff to previous 1.78 (colored)

Use the CMD PCI0648/9 IRQ ACK code for the 0646 too, makes the 0646 works
in native mode.

Revision 1.68.2.6 / (download) - annotate - [select for diffs], Fri Jul 7 11:49:14 2000 UTC (11 years, 10 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.5: +21 -3 lines
Diff to previous 1.68.2.5 (colored) to branchpoint 1.68 (colored)

Pull up
pciide.c 1.77 -> 1.78
pciide_amd_reg.h 1.1 -> 1.2
(approved by thorpej): workaround for a bug in some revs of the AMD IDE
controller, which can lock up the machine when multiword DMA is used.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jul 6 15:08:11 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.77: +21 -3 lines
Diff to previous 1.77 (colored)

Work around a bug in AMD756 rev D2, from patches provided by David Sainty:
disable multiword DMA for these chips. multiword DMA can be forced with
options PCIIDE_AMD756_ENABLEDMA on rev D2 chips, but use at your own risk !
While I'm there remove a duplicate allocation of sc_wdcdev.nchannels in HPT
code.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Thu Jul 6 01:20:13 2000 UTC (11 years, 10 months ago) by enami
Branch: netbsd-1-5
Changes since 1.68.2.4: +6 -1 lines
Diff to previous 1.68.2.4 (colored) to branchpoint 1.68 (colored)

Pull up rev. 1.74 (approved by releng-1-5):
Match with promise ultra100/ata contoller.  I haven't actually test this
contoller with ultra100 drive, but it works at least with ultra66 or more
older drive

Revision 1.77 / (download) - annotate - [select for diffs], Wed Jul 5 19:05:31 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.76: +7 -32 lines
Diff to previous 1.76 (colored)

Back out previous, it has to be done in a different way.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jul 5 18:58:41 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.75: +33 -8 lines
Diff to previous 1.75 (colored)

Apply patch from David Sainty <David.Sainty@optimation.co.nz>:
Some AMD controllers have a bug which can look up the machine when using DMA, so
disable DMA for some revisions (info provided by AMD).
"options PCIIDE_AMD756_ENABLEDMA" can be used to force DMA on these chips.

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Wed Jul 5 18:10:57 2000 UTC (11 years, 10 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.3: +2 -2 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored)

Pull up rev 1.75, approved by thorpej:
Fix a error where we would always try to attach channel 0 of an HPT controller
(only aftects HPT370, the 366 has only one channel per pciide function).

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 5 16:11:35 2000 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

HPT: use pciide_channels[i] not pciide_channels[0]. My HPT370 now probes
both channels (but still doesn't work properly; I suspect I got a broken one).

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jul 4 16:34:33 2000 UTC (11 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.73: +6 -1 lines
Diff to previous 1.73 (colored)

Match with promise ultra100/ata contoller.  I haven't actually test this
contoller with ultra100 drive, but it works at least with ultra66 or more
older drive

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jun 28 16:08:49 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.72: +1 -3 lines
Diff to previous 1.72 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Tue Jun 27 17:08:42 2000 UTC (11 years, 11 months ago) by tron
Branch: netbsd-1-5
Changes since 1.68.2.2: +24 -2 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored)

Really pull up revision 1.72.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Tue Jun 27 14:57:05 2000 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68.2.1: +88 -24 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

Pull up
pciide.c  1.69->1.70,  1.71->1.72
pciide_cmd_reg.h 1.6->1.7
Approved by thorpej:
Add support for the CMD PCI0648/0649 IDE controller.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Tue Jun 27 14:07:41 2000 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Pull up 1.69, approved by thorpej:
Fix promise Ultra/66 cable detection: the Ultra/66 cable detection bit
was interpreted backward.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jun 27 05:57:05 2000 UTC (11 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.71: +24 -2 lines
Diff to previous 1.71 (colored)

Add special IRQ handler for CMD PCI0648 and PCI0649 taken from the
experimental version of Manuel Bouyer's driver.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:12 2000 UTC (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.70: +1 -3 lines
Diff to previous 1.70 (colored)

remove/move more mach vm header files:

	<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jun 26 10:07:52 2000 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.69: +87 -23 lines
Diff to previous 1.69 (colored)

Add support for the CMD PCI0648 and PCI0649 IDE controllers.
Thanks to Matthias Scheler for testing.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jun 26 09:55:26 2000 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Correct 80 pin handling for promise Ultra/66: when the bit is set
we *don't* have a Ultra/66 cable.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:07:33 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.58: +530 -79 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jun 12 21:25:01 2000 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Shorter description for the HPT366

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jun 12 21:20:51 2000 UTC (11 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.66: +286 -53 lines
Diff to previous 1.66 (colored)

- add a pciide_irqack() callback, which clears the IDE DMA status bit once
  the IRQ has been cleared on the drive.
- use pa->pa_class instead of re-reading PCI_CLASS_REG when possible
- Add support for Highpoint HPT366 and HPT370 (370 untested), based
  on patches from Roger Brooks  <R.S.Brooks@liverpool.ac.uk> posted on
  current-users Mach, 15. Given how Highpoint docs have been wrong for the
  366, the 370 is likely to not work.
  Thanks to Chris Cappuccio <chris@dqc.org> for sending me the Highpoint
  docs, and to Total Archive (http://www.totalarchive.com/) for sending
  me hardware.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jun 7 20:42:52 2000 UTC (11 years, 11 months ago) by scw
Branch: MAIN
Changes since 1.65: +14 -9 lines
Diff to previous 1.65 (colored)

The OPTi controller supports a 32-bit dataport after all.
Also detect when the chip is sitting on a 25MHz PCIbus and
set the timing registers accordingly.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jun 7 04:31:49 2000 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Add missing break;

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 6 22:56:06 2000 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Improve the Cypress name a little.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jun 6 22:47:22 2000 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +26 -14 lines
Diff to previous 1.62 (colored)

In pciide_mapreg_dma(), check to see what type the BAR is before
mapping the registers, as suggested by a comment in that function.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Jun 6 17:48:12 2000 UTC (11 years, 11 months ago) by soren
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Shorten names of VIA controllers to fit in 80 columns with versions.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 6 17:34:22 2000 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +27 -7 lines
Diff to previous 1.60 (colored)

Actually program the DMA mode of the drives into the Cypress
controller.  Fixes a long-standing problem where IDE DMA wasn't
working on the AlphaPC 164SX.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 4 22:22:12 2000 UTC (11 years, 11 months ago) by gmcgarry
Branch: MAIN
Changes since 1.59: +11 -11 lines
Diff to previous 1.59 (colored)

pciiide -> pciide

Revision 1.59 / (download) - annotate - [select for diffs], Sat May 27 17:18:41 2000 UTC (12 years ago) by scw
Branch: MAIN
Changes since 1.58: +181 -1 lines
Diff to previous 1.58 (colored)

Add support for the OPTi 82c621 PCIIDE controller and its derivatives.
I only have a Compaq laptop on which to test this, so reports of
success/failure in other systems would be welcomed.

Revision 1.58 / (download) - annotate - [select for diffs], Mon May 15 08:46:00 2000 UTC (12 years ago) by bouyer
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.57: +11 -12 lines
Diff to previous 1.57 (colored)

Sync my copyrigth notice.

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 12 17:52:07 2000 UTC (12 years ago) by thorpej
Branch: MAIN
Changes since 1.56: +8 -6 lines
Diff to previous 1.56 (colored)

Print the revision info from the PCI configuration header.  From
Dave Sainty, kern/10025.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 1 14:32:23 2000 UTC (12 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.55: +24 -18 lines
Diff to previous 1.55 (colored)

- DMA code cleanup: pciide_dma_finish() doesn't stop/unload the current DMA op
  if an IRQ was not detected, unless the force flag was given. Use this to
  detect if the IRQ was for us (closer to shared IRQ for controllers which
  don't have their own IRQ handler in pciide.c) and to poll for DMA xfer.
  Also makes the timeout recovery code simpler.
- ATAPI cleanup: don't call controller-specific functions from atapiconf.c
  (wdc_*), so that it's possible to attach an atapibus to something else
  than a wdc/pciide (Hi Lennart :).
  Overload struct scsi_adapter with struct atapi_adapter, defined
  as struct scsi_adapter + atapi-specific callbacks. scsipi_link still points
  to an scsi_adapter, atapi code casts it to atapi_adapter if needed.
  Move atapi_softc to atapiconf.h so that it can be used by the underlying
  controller code (e.g. atapi_wdc.c).
  Add an atapi-specific callback *atapi_probedev(), which probe a drive
  in a controller-specific way, allocate the sc_link and fills in the
  ataparams if needed. It then calls atapi_probedev() (from atapiconf.c)
  to do the generic initialisations and attach the device.
- While I'm there merge and centralise the state definitions in atavar.h.
  It should now be possible to use a common ata/atapi routine to set the
  drive's modes (will do later).

Revision 1.55 / (download) - annotate - [select for diffs], Fri Mar 10 21:21:48 2000 UTC (12 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.54: +2 -3 lines
Diff to previous 1.54 (colored)

Don't reset cp->hw_ok ro 0 when cp isn't initialised in cy693_chip_map()
(used only in failure case). Pointed out by Wolfgang Solfrank.
While I'm here correct indentation.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 9 20:26:31 2000 UTC (12 years, 2 months ago) by soren
Branch: MAIN
Changes since 1.53: +1 -3 lines
Diff to previous 1.53 (colored)

Move PCIIDE_CHANNEL_NAME macro to pciidereg.h.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Mar 6 18:02:26 2000 UTC (12 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.52: +154 -1 lines
Diff to previous 1.52 (colored)

Add support for the AMD 756 DMA/UDMA IDE controller, provided in
PR kern/9536 by Dave Sainty.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 18 13:58:07 2000 UTC (12 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.51: +3 -4 lines
Diff to previous 1.51 (colored)

Clean up revision stuff for the sis. Suggested by Chris Cappuccio.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 16 21:31:28 2000 UTC (12 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.50: +11 -4 lines
Diff to previous 1.50 (colored)

From chris@openbsd.org:
"Don't enable UDMA modes for revisions of SiS 5513 < 0xd0
The only revisions I know which don't actually support UDMA are 0x09 and below..
But the only revision I know which does support UDMA is 0xd0 (and presumably
above that)"

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

Pull up to last week's -current.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Dec 26 21:46:23 1999 UTC (12 years, 5 months ago) by soren
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Lower-case Bus-Master for consistency.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 12 02:53:56 1999 UTC (12 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.48: +8 -15 lines
Diff to previous 1.48 (colored)

Use htole32() and le32toh().

Revision 1.33.2.3.4.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:15 1999 UTC (12 years, 5 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.33.2.3: +9 -8 lines
Diff to previous 1.33.2.3 (colored) next main 1.33.2.4 (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.48 / (download) - annotate - [select for diffs], Sun Nov 28 20:05:18 1999 UTC (12 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.47: +70 -16 lines
Diff to previous 1.47 (colored)

Improve Ultra/66 support now that I've got some docs from Promise.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:10 1999 UTC (12 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.44: +5 -37 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with -current

Revision 1.47 / (download) - annotate - [select for diffs], Sat Nov 13 13:40:28 1999 UTC (12 years, 6 months ago) by soren
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.46: +1 -33 lines
Diff to previous 1.46 (colored)

Export softc.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 3 14:54:07 1999 UTC (12 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

Fix silly error that caused the secondary channel to be ignored if the primary
channel was disabled.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 25 14:13:12 1999 UTC (12 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Add a missing '\n' in the cmd0640 attach printfs.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 2 23:23:03 1999 UTC (12 years, 8 months ago) by ross
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Make it compile.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 1 15:17:07 1999 UTC (12 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

Don't try to unmap unmapped space in case of failure in
pciide_mapregs_compat(). From OpenBSD.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 30 12:49:21 1999 UTC (12 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.41: +84 -53 lines
Diff to previous 1.41 (colored)

Add support for Intel 810 chipset (ICH/ICH0).
While I'm there merge back piix_channel_map into piix_chip_map.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 29 17:20:10 1999 UTC (12 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.40: +964 -575 lines
Diff to previous 1.40 (colored)

Add support for the Promise Ultra/33 and /66 pci IDE controller. In addition to
chip-dependant code this required the following changes:
- Instead of attaching the device in a generic way with some chip-dependant
  routines, use a chip-dependant attach routine with some common code
  factored out. The code is marginally bigger, but this allows the CMD64x
  flag hack to go away.
- For chips that report per-channel 'irq triggered', test this before calling
  wdcintr() for the native-pci irq case (compat intr can't be shared),
  as wdcintr() has no good way to know if a irq was for it or not, and
  ends up with irq loss. XXX for chips that don't have this feature irq sharing
  will not work properly !
- add my copyrigth notice (could have been done some time ago I think :)

There are still some issues to be solved with the Promise controller and
ATAPI devices.
Many thanks to Paul Newhouse for shipping me 2 Ultra/33 boards for doing this
work.

Revision 1.33.2.3.2.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:02:29 1999 UTC (12 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.33.2.3.2.1: +2 -2 lines
Diff to previous 1.33.2.3.2.1 (colored) to branchpoint 1.33.2.3 (colored) next main 1.33.2.4 (colored)

Update from trunk.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jul 12 13:49:38 1999 UTC (12 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Fix typo in a printf, from Soren S. Jorvan.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Thu Jun 24 00:03:52 1999 UTC (12 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.33.2.3: +9 -8 lines
Diff to previous 1.33.2.3 (colored) to branchpoint 1.33 (colored)

pullup 1.37->1.38 (bouyer)

Revision 1.33.2.3.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:18:40 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.33.2.3: +194 -186 lines
Diff to previous 1.33.2.3 (colored)

Sync w/ -current.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jun 8 10:38:15 1999 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.38: +184 -179 lines
Diff to previous 1.38 (colored)

fix a few KNF nits ..

Revision 1.38 / (download) - annotate - [select for diffs], Thu May 27 09:45:50 1999 UTC (13 years ago) by bouyer
Branch: MAIN
Changes since 1.37: +9 -8 lines
Diff to previous 1.37 (colored)

For the PIIX, make sure the PIO_mode and DMA_mode get reset to the values used
by the controller for all drives.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Wed May 5 17:13:24 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.33.2.2: +10 -4 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored)

pullup 1.36->1.37 (bouyer)

Revision 1.37 / (download) - annotate - [select for diffs], Wed May 5 15:24:59 1999 UTC (13 years ago) by bouyer
Branch: MAIN
Changes since 1.36: +10 -4 lines
Diff to previous 1.36 (colored)

Fix the way we compute the mode to use: for multiword DMA, the used mode was
2 less than the one we could really use, so for multiword DMA mode 0 or 1,
the driver tried to use DMA mode 255 or 254 (0 - 2 with a u_int8_t).

Revision 1.36 / (download) - annotate - [select for diffs], Mon May 3 07:44:47 1999 UTC (13 years ago) by ross
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

Protect WDCDEBUG from multiple definitions.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Wed Apr 28 14:18:10 1999 UTC (13 years, 1 month ago) by perry
Branch: netbsd-1-4
Changes since 1.33.2.1: +16 -7 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

sync to 1.35 (thorpej): fixes PCIIDE DMA on big-endian systems

Revision 1.35 / (download) - annotate - [select for diffs], Wed Apr 28 00:18:12 1999 UTC (13 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.34: +16 -7 lines
Diff to previous 1.34 (colored)

Make PCI IDE DMA work on big-endian systems.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Apr 6 17:49:14 1999 UTC (13 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Kill an extra 'pciide0: ' in a printf

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Apr 6 17:48:05 1999 UTC (13 years, 1 month ago) by bouyer
Branch: netbsd-1-4
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Kill an extra 'pciide0:' in a printf.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Feb 22 10:12:00 1999 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.32: +5 -1 lines
Diff to previous 1.32 (colored)

In cy693_setup_channel(), setup timings for IOR too (they were left to 0,
which is a way too higth timing for some devices). Thanks to Ken Wellsch
for trying the multiple debug kernels until the problem was located.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 16 18:11:52 1999 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.31: +8 -2 lines
Diff to previous 1.31 (colored)

Correctly compute PIO/DMA mode for sis and acer chips when the drive support
a DMA mode with higther capabilities than PIO mode.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 2 17:06:05 1999 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-ide-last-dist
Changes since 1.30: +23 -17 lines
Diff to previous 1.30 (colored)

channel_map is called before setup_chip, so whe need to enable the channel
status bits in acer_channel_map().

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 2 16:13:59 1999 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.29: +167 -1 lines
Diff to previous 1.29 (colored)

Support for Acerlab M5229 IDE controller. Thanks to Thilo Manske for testing
the code, and to Takahiro Kambe who run several tests and finally found the
bug by himself :)

Revision 1.29 / (download) - annotate - [select for diffs], Wed Dec 16 13:21:26 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.28: +26 -37 lines
Diff to previous 1.28 (colored)

Defer mapping of pci interrupt to pciide_mapregs_native(). This way,
the native interrupt shouldn't be mapped if a channel is in native mode,
but disabled.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 16 12:48:45 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.27: +592 -540 lines
Diff to previous 1.27 (colored)

Rearange the modes setup to allow these to be dyanmically changed. Fill
in the new "set_mode" callback.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Dec 3 18:24:31 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.26: +16 -16 lines
Diff to previous 1.26 (colored)

Rename pio_mode, etc ...  to PIO_cap, etc ... for consistency with the
ata_drive_datas struct. Suggested by Soren S. Jorvan.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Dec 3 17:27:57 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

Now that vtophy() is no longuer used, re-enable WDCDEBUG, with
wdcdebug_pciide_mask = 0 (so that one can easily patch this variable and give
me more informations :)

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 3 15:38:59 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

add a udma_mode field to wdc_softc, and use it the same way dma_mode is used
(higthest ultra-dma mode supported). There may be a higther ultra-dma mode
defined ...

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 3 13:50:38 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Use correct register when disabling the second channel.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 3 13:30:00 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

Restore changes from revision 1.17:
"If a channel has no drives, do *not* unmap its I/O regions.
 It's not really safe to use them for anything else, and in legacy mode it
 will just cause us to probe the channel again as an ISA device."

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 3 13:25:44 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Correct a few bogons in the SiS chip initialisation.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 3 13:24:11 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.20: +5 -4 lines
Diff to previous 1.20 (colored)

Ouh ! Correct the 8-bit PCI registers reading/writing functions: need to
multiply the register offset by 8.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 2 10:52:25 1998 UTC (13 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.19: +7 -10 lines
Diff to previous 1.19 (colored)

- change drive_flags from u_int8_t to u_int16_t
- keep the modes supported by the drive in struct ata_drive_datas (will be
  later used for downgrading the DMA/PIO mode on error)
- use config flags to force/disable PIO/DMA/UDMA modes
- For the CMD PCI0643/6 setup DMA mode to DMA Read multiple.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 24 19:54:20 1998 UTC (13 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.18: +4 -6 lines
Diff to previous 1.18 (colored)

a small optimization for the compat interrupt handling, possible after
channel_softc is within pciide_channel

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 21 15:55:31 1998 UTC (13 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.17: +840 -573 lines
Diff to previous 1.17 (colored)

some restructuring, more or less to get support for weird IDE controllers,
eg the Cypress ISA bridge:
-put channel mapping into the chip specific part, unify with
 channel_probe() into channel_map()
-use pointer to channel data as function call argument wherever possible
 instead of the channel number
-allow the "compat" channel number to differ from the per-controller
 channel number - for mapping and interrupt functions
-add support for SiS5598 and Cypress 82C693 chips
Mostly done by Manuel, I only contributed to the first 2 items.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 17 17:59:14 1998 UTC (13 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +3 -5 lines
Diff to previous 1.16 (colored)

If a channel has no drives, do *not* unmap its I/O regions.
It's not really safe to use them for anything else, and in legacy mode it
will just cause us to probe the channel again as an ISA device.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 12 15:05:29 1998 UTC (13 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.15: +7 -1 lines
Diff to previous 1.15 (colored)

Force PCI_COMMAND_MASTER_ENABLE if DMA has been setup properly. The BIOS is
supposed to do it but who knows ...

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 11 19:38:27 1998 UTC (13 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.14: +42 -32 lines
Diff to previous 1.14 (colored)

- clearify the boot messages (features supported vs features used). Thanks to
  Havard Eidnes for his complains about this :)
- fix some typo in comments
- hoppefully better detection of drives reporting bogus PIO modes.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 9 09:21:09 1998 UTC (13 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.13: +136 -8 lines
Diff to previous 1.13 (colored)

Support for the CMD PCI064{3,6}. Tested on a 0646 with a
"wd0: PIO mode 4, DMA mode 2, UDMA mode 2" device.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 22 15:11:39 1998 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.12: +12 -2 lines
Diff to previous 1.12 (colored)

Add config flags for pciide: 0x001 forces the use of DMA when the driver
don't know how to set the controller's modes.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 20 18:47:45 1998 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Fix for Apollo DMA mode (not UDMA): DMA mode = PIO mode - 2, not PIO mode + 2 !

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 19 12:24:33 1998 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.10: +30 -15 lines
Diff to previous 1.10 (colored)

Add support for the second flavour of the VIA IDE chip (which has UDMA).
Don't claim DMA support if we don't have explicit support for this chip.
They're to may way to loose when trying to use DMA without configuring the
controller and disks.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 13 08:59:46 1998 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.9: +2 -4 lines
Diff to previous 1.9 (colored)

pciide.c: don't define WDCDEBUG, so it compiles on alpha. Correct a bogon
in the printing of DMA mode (piix3/4 only)
others: set the debug_mask to 0, so that debug messages are turned off by
default but can be easily turned on.
Reset drive_flags to 0 for unconfigured devices, so that they are ignored
later. For configured devices, reset state to 0 after probe/attach.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 12 16:09:20 1998 UTC (13 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +1271 -227 lines
Diff to previous 1.8 (colored)

Merge bouyer-ide

Revision 1.6.2.17 / (download) - annotate - [select for diffs], Mon Oct 5 08:17:35 1998 UTC (13 years, 7 months ago) by bouyer
Branch: bouyer-ide
CVS Tags: bouyer-ide-merge
Changes since 1.6.2.16: +5 -3 lines
Diff to previous 1.6.2.16 (colored) next main 1.7 (colored)

Rename WDC_CAPABILITY_PIO to WDC_CAPABILITY_MODE, as it's used to tell wether
the controller's driver can tell which timing mode it uses. Check this
before setting DMA modes too.
This allow the generic DMA code to work again.

Revision 1.6.2.16 / (download) - annotate - [select for diffs], Sun Oct 4 15:01:55 1998 UTC (13 years, 7 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.15: +167 -58 lines
Diff to previous 1.6.2.15 (colored)

atavar.h: drv_softc is a struct device * instead of void*, as it's mostly
          used for dv_xname
wd.c: convert for drv_softc type change, printf cleanup
wdc.c: always call ata_get_params() (params was used initialised with
       non-32bit controllers, leaving to bogus PIO/DMA mode report).
       Cleaup of the PIO/DMA mode message.
pciide_piix_reg.h: Fix definition of PIIX_IDETIM_CLEAR (unused before)
pciide.c: add a method do disable a channel on know device. If a channel
       doesn't have any drive, we disable it and free its resources if disable
       was successfull. This should help with laptops where the second channel
       of the PIIX4 is unused but not disabled by BIOS. On such laptops,
       irq15 can be used for PCMCIA but it was claimed by pciide.
       Misc printf cleanup.
wdc_isa.c: printf cleanup.

Revision 1.6.2.15 / (download) - annotate - [select for diffs], Fri Oct 2 19:37:21 1998 UTC (13 years, 7 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.14: +4 -1 lines
Diff to previous 1.6.2.14 (colored)

Cleanup a few error message, remove some dead code. Re-add a reset at end of
attach, unless we have WDC_NO_EXTRA_RESETS.
Add support for data32iot/data32ioh from -current: each controller pass
WDC_CAPABILITY_DATA32 if they can do 32bit, and WDC_CAPABILITY_DATA16 if they
can do 16bit. For controller that support both, the usual autodetect
mechanism is still used.

Revision 1.6.2.14 / (download) - annotate - [select for diffs], Sun Sep 20 13:16:17 1998 UTC (13 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.13: +75 -31 lines
Diff to previous 1.6.2.13 (colored)

- always call config_found() from wdcattach(), instead of printing our own
  the "not configured" message ourselve. When no atapibus is configured,
  use a fake ata_atapi_attach, else call wdc_atapibus_attach(). This way we
  don't have to include the whole atapi support in an ata-only config.
- the dma_* function pointers take a 'int flags' as last argument, instead
  of an 'int read'. The 2 valid flags are: WDC_DMA_READ (to select read/write)
  and WDC_DMA_POLL, to signal interrupt-less mode (for core dumps).
- Reworked wdcprobe() so look more like the old one. A status of 0xff is
  interpreted as "no drive" (freebsd does this); this this speed up
  the probe for non-IDE machines (a reset timeout has been bumped to 31s,
  to match the specs). The probe set ups the drive flags to either ATA or
  ATAPI (depend on register signature) or OLD (if register signature don't
  match, but a working drive appears to be there). Later the ATA code
  will look at the OLD flag to decide wether there is no drive, or an old
  (ST506) one if WDC_IDENTIFY fails.
- For known PCI chips, don't use the wdcprobe() heuristic to find wether
  a channel is enabled/disabled; use the chip's specific registers for this.
- Clear the command queue when we have a polled command. This allows dumps to
  work even if a command was being handled by the controller at panic time.
- Increase the number of available DMA segments by one, as user requests may
  not be aligned on a page boundary.

Revision 1.6.2.13 / (download) - annotate - [select for diffs], Fri Aug 21 16:34:47 1998 UTC (13 years, 9 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.12: +1 -1 lines
Diff to previous 1.6.2.12 (colored)

Sync with -current

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 14 20:35:40 1998 UTC (13 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: bouyer-ide-base
Changes since 1.7: +51 -10 lines
Diff to previous 1.7 (colored)

2 changes to pciide_probe_wdc() (used in compatibility mode to check
if i drive is responding):
-if the reset succeeds, check some registers to make sure there is really
 a drive (and not a chipset which echoes back the last written value)
-explicitely select the master before trying to read the master's status

Revision 1.6.2.12 / (download) - annotate - [select for diffs], Thu Aug 13 14:36:13 1998 UTC (13 years, 9 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.11: +130 -82 lines
Diff to previous 1.6.2.11 (colored)

 -  sync with -current
 - full support of CMD PCI0640 chips. This needs a special probe routine, as
   this chip doesn't honnor the "PCI_COMMAND_IO_ENABLE" bit. sigh.
 - do not map the native pci interrupts if we don't have a native channel.
   some chips (e.g. PCI0640) have a valid interrupt value which gets
   established, which may prevent the compat channel or some other ISA
   device from working properly later.
 - b* -> mem*

Revision 1.6.2.11 / (download) - annotate - [select for diffs], Thu Jun 25 11:12:22 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.10: +129 -1 lines
Diff to previous 1.6.2.10 (colored)

Add support for VIA's apollo VP chipset.

Revision 1.6.2.10 / (download) - annotate - [select for diffs], Wed Jun 17 11:55:04 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.9: +5 -5 lines
Diff to previous 1.6.2.9 (colored)

in piix3_4_setup(), drvp is not a pointer to an array, but a pointer to the
rigth element of the array. This was breaking more-or-less badly on configs
with a slave drive on a channel.

Revision 1.6.2.9 / (download) - annotate - [select for diffs], Sat Jun 13 14:25:46 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.8: +3 -2 lines
Diff to previous 1.6.2.8 (colored)

Coorect a comment.

Revision 1.6.2.8 / (download) - annotate - [select for diffs], Fri Jun 12 16:39:05 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.7: +9 -9 lines
Diff to previous 1.6.2.7 (colored)

Correct a bug where the PIO mode would not be set up for the controller,
if UDMA mode is used. Ultra-DMA/33 works !

Revision 1.6.2.7 / (download) - annotate - [select for diffs], Thu Jun 11 09:27:24 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.6: +75 -63 lines
Diff to previous 1.6.2.6 (colored)

pciide: when setting up DMA mode, also enable fast timings for PIO modes
        if possible. For ATAPI devices, commands are always send via PIO.
atapi: matain a drive state (like wd drives) and use it to set up the
       timings if needed.

Revision 1.6.2.6 / (download) - annotate - [select for diffs], Wed Jun 10 11:29:25 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.5: +36 -19 lines
Diff to previous 1.6.2.5 (colored)

 - Fix timing settings for DMA: the controller was always set up to use
   DMA mode 0 (compatible).
 - The 2 Ultra-dma registers are in fact one 32-bit register.
   Change the macros and setup in a way it may now work (but still untested,
   thus not enabled by default).
 - For DMA mode 1, use a more efficient timing than the one suggested
   by intel.
Some work is still needed here to get ATAPI DMA working (should be done soon).

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Tue Jun 9 12:57:40 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.4: +5 -10 lines
Diff to previous 1.6.2.4 (colored)

- sync with trunck
- for the piix, don't set timings for nonexistent drives.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 8 06:55:57 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.6: +1 -9 lines
Diff to previous 1.6 (colored)

Nuke __BROKEN_INDIRECT_CONFIG.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Sat Jun 6 12:50:47 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.3: +2 -2 lines
Diff to previous 1.6.2.3 (colored)

Renamed pciide_pIIx_reg.h to pciide_piix_reg.h via repository copy,
as suggested by Soren S. Jorvan.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Fri Jun 5 17:31:37 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.2: +3 -1 lines
Diff to previous 1.6.2.2 (colored)

Disable Ultra DMA for now, as it does not work.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Fri Jun 5 10:09:14 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.1: +42 -4 lines
Diff to previous 1.6.2.1 (colored)

A few bux fixes (untested):
 - If the PIO mode of the controller is unknown, put the drive in the
   hightest mode it supports. A drive in a faster mode than the controller
   should work.
 - Create DMA maps even for unknown controllers in pciide.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Thu Jun 4 16:53:17 1998 UTC (13 years, 11 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6: +820 -142 lines
Diff to previous 1.6 (colored)

Commit changes to the IDE system in a branch. This allows a better separation
between higth-level and low-level (i.e. registers read/write) and generalize
the queue for all commands. This also add supports for IDE DMA.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 12 23:34:29 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Branch point for: bouyer-ide
Changes since 1.5: +78 -6 lines
Diff to previous 1.5 (colored)

when considering attaching compatibility-mode channels, try a quick reset
and see if anything responds.  if nothing (that's attributable to the
PCI IDE controller) responds, then that channel either has no devices on
it or has been disabled (via a non-standard mechanism) by the BIOS.  If nothing
responds, don't map the compat.-mode interrupt or attach the wdc to that
channel, because the BIOS is likely to assign that IRQ to a different PCI
device.  If that happens, the kernel will panic because that device will
try to map the IRQ level-triggered, but the compat interrupt will have been
mapped edge-triggered.  (One possible way around this is to map the compat
interrupt edge-triggered, but it's not clear reading the spec that this
is correct or desirable.)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 6 19:13:19 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.4: +172 -63 lines
Diff to previous 1.4 (colored)

reorganize mapping/attachment of wdc channels so that it'll be easier to
insert a check to see whether a channel appears to be enabled.  Shouldn't
be necessary, according to the spec, but some PC chipsets allow individual
compatibility channels to be disabled.  "I hate PCs."

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 6 17:41:59 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.3: +8 -1 lines
Diff to previous 1.3 (colored)

despite the spec, some people map the bus master IDE registers into
memory space.  Note that in a comment, but don't try to fix it (for now).

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 4 19:19:21 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

clean up a printf

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 4 19:18:22 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.1: +45 -16 lines
Diff to previous 1.1 (colored)

slight cleanup (consistency, make a few comments better).  add support
for recognizing bus-master DMA interface and mapping the regs (but
still no support for DMA).

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 4 06:35:11 1998 UTC (14 years, 2 months ago) by cgd
Branch: MAIN

PCI IDE glue.  Right now, just glues 'wdc's to PCI IDE controller
channels.  Eventually should do things like support PCI IDE DMA (it _DOES
NOT_ do that now).

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>