The NetBSD Project

CVS log for src/sys/dev/isa/wdc_isa.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / isa

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.62 / (download) - annotate - [select for diffs], Sun Sep 25 17:09:36 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.61: +2 -3 lines
Diff to previous 1.61 (unified)

Remove unnecessary include of <sys/malloc.h>.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:05 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.59: +6 -14 lines
Diff to previous 1.59 (unified) next main 1.60 (unified)

update from HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 20 07:06:07 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (unified)

move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606

Revision 1.60 / (download) - annotate - [select for diffs], Sat Oct 7 16:05:32 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +6 -14 lines
Diff to previous 1.59 (unified)

Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)

Revision 1.59.28.4 / (download) - annotate - [select for diffs], Wed Sep 27 07:19:34 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.59.28.3: +5 -16 lines
Diff to previous 1.59.28.3 (unified) to branchpoint 1.59 (unified) next main 1.60 (unified)

change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()

Revision 1.59.28.3 / (download) - annotate - [select for diffs], Wed Sep 20 19:59:22 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.59.28.2: +3 -3 lines
Diff to previous 1.59.28.2 (unified) to branchpoint 1.59 (unified)

deallocate the channel structures properly in wdc_isa_probe() also when
already the initial bus_space_map() fails

Revision 1.59.28.2 / (download) - annotate - [select for diffs], Wed Sep 20 19:44:38 2017 UTC (6 years, 6 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.59.28.1: +6 -2 lines
Diff to previous 1.59.28.1 (unified) to branchpoint 1.59 (unified)

initialize properly ata_channel during probe

Revision 1.59.28.1 / (download) - annotate - [select for diffs], Wed Jun 21 19:21:25 2017 UTC (6 years, 9 months ago) by jdolecek
Branch: jdolecek-ncq
Changes since 1.59: +3 -4 lines
Diff to previous 1.59 (unified)

actually remove the KASSERT() for queue_active in wdc.c as it's superfluous,
and make struct ata_queue completly opaque to attachment code; fix two other
places which were not converted to ata_queue_alloc() which were surfaced
by this change

Revision 1.56.12.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:16 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (unified) next main 1.57 (unified)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jul 31 15:50:35 2012 UTC (11 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, jdolecek-ncq-base, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: tls-maxphys, jdolecek-ncq
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (unified)

Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 26 20:49:49 2012 UTC (11 years, 8 months ago) by jakllsch
Branch: MAIN
Changes since 1.57: +1 -1 lines
Diff to previous 1.57 (unified)

Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jul 2 18:15:47 2012 UTC (11 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (unified)

Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
  probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
  really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
  ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
  with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
  University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
  when SATA cable move was needed

Revision 1.55.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:53 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (unified) next main 1.56 (unified)

Sync with HEAD.

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

Revision 1.54.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:49 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.54.4.1: +4 -4 lines
Diff to previous 1.54.4.1 (unified) to branchpoint 1.54 (unified) next main 1.55 (unified)

sync with head.

Revision 1.55.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:46 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (unified) next main 1.56 (unified)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 2 00:09:33 2009 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, 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-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (unified)

During shutdown, detach devices in an orderly fashion.

Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.

Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks.  For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.

Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown.  Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags.  Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).

Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.

Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag.  The default for kern.detachall is 0.  SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.

This is a work in progress.  In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.

Also commit some changes that are not easily untangled from the rest:

(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.

(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs.  Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.

Revision 1.53.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:32 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.53.6.1: +0 -7 lines
Diff to previous 1.53.6.1 (unified) to branchpoint 1.53 (unified) next main 1.54 (unified)

Sync with HEAD.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:04 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.54: +2 -9 lines
Diff to previous 1.54 (unified) next main 1.55 (unified)

sync with head.

Revision 1.54.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:28 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.54: +2 -9 lines
Diff to previous 1.54 (unified)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:52 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.54: +2 -9 lines
Diff to previous 1.54 (unified)

Remove clause 3 and 4 from TNF licenses

Revision 1.53.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:45 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.53: +16 -14 lines
Diff to previous 1.53 (unified)

Sync with HEAD.

Revision 1.46.12.5 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:50 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.4: +16 -14 lines
Diff to previous 1.46.12.4 (unified) to branchpoint 1.46 (unified) next main 1.47 (unified)

sync with head.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:30 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.53: +16 -14 lines
Diff to previous 1.53 (unified) next main 1.54 (unified)

sync with head.

Revision 1.51.24.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:41 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.51.24.1: +41 -20 lines
Diff to previous 1.51.24.1 (unified) to branchpoint 1.51 (unified) next main 1.52 (unified)

sync with HEAD

Revision 1.54 / (download) - annotate - [select for diffs], Tue Mar 18 20:46:36 2008 UTC (16 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.53: +16 -14 lines
Diff to previous 1.53 (unified)

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

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:50 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.52: +30 -11 lines
Diff to previous 1.52 (unified) next main 1.53 (unified)

Sync with HEAD.

Revision 1.46.12.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:21 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.3: +30 -11 lines
Diff to previous 1.46.12.3 (unified) to branchpoint 1.46 (unified)

sync with head

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Thu Jan 10 23:44:19 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.52: +30 -11 lines
Diff to previous 1.52 (unified) next main 1.53 (unified)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jan 10 07:44:08 2008 UTC (16 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.52: +30 -11 lines
Diff to previous 1.52 (unified)

Let us detach atabus* from wdc*, and wdc* from isa*.

Use device_t, device_private().

Revision 1.51.24.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:28:03 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (unified)

sync with HEAD

Revision 1.46.12.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:31:59 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.2: +4 -4 lines
Diff to previous 1.46.12.2 (unified) to branchpoint 1.46 (unified)

sync with head.

Revision 1.51.22.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:45:32 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (unified) next main 1.52 (unified)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.51.28.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:38:27 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (unified) next main 1.52 (unified)

Sync with HEAD.

Revision 1.51.8.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:08:21 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (unified) next main 1.52 (unified)

Sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:24 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs, bouyer-xeni386
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (unified)

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

Revision 1.46.12.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:27 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.1: +4 -3 lines
Diff to previous 1.46.12.1 (unified) to branchpoint 1.46 (unified)

sync with head.

Revision 1.49.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:29 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.49.10.1: +4 -4 lines
Diff to previous 1.49.10.1 (unified) to branchpoint 1.49 (unified) next main 1.50 (unified)

sync with head.

Revision 1.49.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:22 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (unified) next main 1.50 (unified)

Sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:00 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (unified)

__unused removal on arguments; approved by core.

Revision 1.49.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:04 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.49: +5 -4 lines
Diff to previous 1.49 (unified)

sync with head

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

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

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:51:26 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

sync with head

Revision 1.46.12.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:04:21 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (unified)

sync with head.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:06 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

Sync with head.

Revision 1.48.8.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:09 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

sync with head.

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:05 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

sync with head.

Revision 1.48.10.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:21 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Mar 29 04:16:50 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (unified)

Use device_cfdata().

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:08 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (unified) next main 1.48 (unified)

sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jan 16 20:30:19 2006 UTC (18 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (unified)

properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:03 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (unified)

merge ktrace-lwp.

Revision 1.31.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:29:49 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.3: +2 -2 lines
Diff to previous 1.31.2.3 (unified) next main 1.32 (unified)

Fix the sync with head I botched.

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:47:47 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.2: +6 -6 lines
Diff to previous 1.31.2.2 (unified)

Sync with HEAD.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Sep 14 20:20:49 2004 UTC (19 years, 7 months ago) by drochner
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, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.45: +6 -6 lines
Diff to previous 1.45 (unified)

Separate the namespace for default (ie unspecified) locators used
by the isa.c bus driver and the "address/whatever not specified"
argument passed to leaf device drivers.
The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter
"ISA_UNKNOWN_XXX", defined in isavar.h.
This way we save a dependency of every ISA device driver on "locators.h".

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:05 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31.2.1: +70 -75 lines
Diff to previous 1.31.2.1 (unified)

Sync with HEAD.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 20 06:39:38 2004 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +16 -15 lines
Diff to previous 1.44 (unified)

Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Aug 19 23:30:09 2004 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +17 -31 lines
Diff to previous 1.43 (unified)

Use ANSI function decls and "static".

Revision 1.43 / (download) - annotate - [select for diffs], Mon Aug 16 14:47:31 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (unified)

wdc_init_shadow_regs() must now be called after ch_wdc is filled in, or we get
a null pointer dereference.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Aug 14 15:08:06 2004 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +41 -33 lines
Diff to previous 1.41 (unified)

- Split the register handles out of struct wdc_channel into a separate
  wdc_regs structure, and array of which (indexed per channel) is pointed
  to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
  ata_channel.  Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
  maximum number of drives that can be present on the channel.  For now,
  this is always 2.  Add an ATA_MAXDRIVES constant that places an upper
  limit on this value, also currently 2.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:48:00 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.31: +34 -17 lines
Diff to previous 1.31 (unified)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 25 20:42:41 2004 UTC (19 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (unified)

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

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

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

Partially from Jordan Rhody @ Wasabi Systems, Inc.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 3 22:56:53 2004 UTC (20 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (unified)

More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jan 3 01:50:53 2004 UTC (20 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (unified)

Rename "struct channel_softc" to "struct wdc_channel".

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 1 17:18:53 2004 UTC (20 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (unified)

Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers.  Clean up the member names of these structures while at it.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 27 23:02:40 2003 UTC (20 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.36: +25 -7 lines
Diff to previous 1.36 (unified)

There are some cards that map the ATA control and IDE DMA registers
in a different fashion. Individually, they have the same functionality,
but their layout is different. An example of such a chipset is
the Promise 203xx.

To be able to deal with this, transform the cmd and dma bus_space handles
into an array of handles, each seperately created with bus_space_subregion.
The code generated by using the extra indirection shouldn't change much,
since the extra indirection is negated by having the offset calculation
already done in bus_space_subregion. E.g.

	bus_space_write_4(tag, handle, offset, value)

becomes

	bus_space_write_4(tag, handles[offset], 0, value)

Reviewed by Manuel Bouyer. Tested on wdc_isa, wdc_pcmcia, viaide, piixide (i386)
and on cmdide (sparc64).

Revision 1.36 / (download) - annotate - [select for diffs], Wed Oct 8 10:58:12 2003 UTC (20 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified)

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.35 / (download) - annotate - [select for diffs], Thu Sep 25 19:29:49 2003 UTC (20 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified)

Hide the use of config_interrupts() in one place.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 23 09:19:24 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +0 -3 lines
Diff to previous 1.33 (unified)

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.33 / (download) - annotate - [select for diffs], Sun Sep 21 11:14:02 2003 UTC (20 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.32: +5 -2 lines
Diff to previous 1.32 (unified)

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

Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 19 21:36:04 2003 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +4 -7 lines
Diff to previous 1.31 (unified)

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.31 / (download) - annotate - [select for diffs], Fri May 9 23:51:29 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.30: +9 -2 lines
Diff to previous 1.30 (unified)

A few ISA sound drivers like to share dma channels, and hence deferred
isa_dmamap_create() calls to their open/close entrypoints. This worked
with some luck, but broke on i386 when _bus_dmamap_create started
to allocate bounce buffers upfront, since memory below 16M may well
not be available when the sound devices is opened for the Nth time.

To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free,
wrappers around already existing bitmask macros. These are expected
to be used before an isa_dmamap_create call, and after an
isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers,
they're deferred until open/close.

All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done
at attach time.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 22 19:57:14 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.29: +18 -21 lines
Diff to previous 1.29 (unified)

No reason to malloc channel_queue, put it in the softc instead.  Clean up
a few other things while here.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 3 22:07:21 2003 UTC (21 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (unified)

The DMA support here never worked, so yank it out.

Revision 1.19.6.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:42:36 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.19.6.7: +4 -5 lines
Diff to previous 1.19.6.7 (unified) to branchpoint 1.19 (unified) next main 1.20 (unified)

Catch up to -current.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:39:52 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.2: +4 -5 lines
Diff to previous 1.21.2.2 (unified) to branchpoint 1.21 (unified) next main 1.22 (unified)

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

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 2 03:10:50 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (unified)

Fix sizeof and whitespace bug from the script I'm using to do the
CFATTACH_DECL conversion.  (Grumble.)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 2 02:09:20 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +4 -5 lines
Diff to previous 1.26 (unified)

Use CFATTACH_DECL().

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 27 20:38:54 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (unified)

Declare all cfattach structures const.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:06 2002 UTC (21 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.1: +4 -2 lines
Diff to previous 1.21.2.1 (unified) to branchpoint 1.21 (unified)

catch up with -current on kqueue branch

Revision 1.19.6.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:10 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.6: +4 -2 lines
Diff to previous 1.19.6.6 (unified) to branchpoint 1.19 (unified)

Catch up to -current.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 19 05:27:04 2002 UTC (22 years ago) by gmcgarry
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base, gehenna-devsw
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (unified)

Set ndrq to zero if no drq is specified.

Revision 1.19.6.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:48 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.5: +2 -2 lines
Diff to previous 1.19.6.5 (unified) to branchpoint 1.19 (unified)

Catch up to -current.

Revision 1.19.6.5 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:14 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.4: +33 -15 lines
Diff to previous 1.19.6.4 (unified) to branchpoint 1.19 (unified)

More catchup.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:55:45 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.21: +35 -15 lines
Diff to previous 1.21 (unified)

Sync kqueue branch with -current.

Revision 1.19.6.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:30:33 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.3: +2 -3 lines
Diff to previous 1.19.6.3 (unified) to branchpoint 1.19 (unified)

Catch up to -current.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 7 21:47:13 2002 UTC (22 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.23: +33 -15 lines
Diff to previous 1.23 (unified)

Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
  resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
  isa_attach_args.  If either of these members are non-NULL,
  direct configuration of the bus is being performed.  Add an
  ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
  direct configuration is not being performed and the probe fucntion
  is returning success.
* Adapt device drivers -- currently, all driver probe routines return
  "no match" if ISA_DIRECT_CONFIG() evaluates to true.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:10 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.22: +2 -3 lines
Diff to previous 1.22 (unified)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.19.6.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:14:54 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.2: +4 -1 lines
Diff to previous 1.19.6.2 (unified) to branchpoint 1.19 (unified)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 13 08:01:33 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (unified)

add RCSID

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:03:53 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.1: +8 -1 lines
Diff to previous 1.19.6.1 (unified) to branchpoint 1.19 (unified)

Catch up to -current.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 7 06:33:48 2001 UTC (22 years, 10 months ago) by leo
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.20: +8 -1 lines
Diff to previous 1.20 (unified)

Make the  WDC_{ATA|ATAPI}_NOSTREAM flags settable through configuration
options. Needed on the Atari Milan.

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:56:43 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (unified)

Catch up with -current.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:30:39 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15.2.1: +5 -2 lines
Diff to previous 1.15.2.1 (unified) to branchpoint 1.15 (unified) next main 1.16 (unified)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 11 05:10:58 2001 UTC (23 years, 1 month ago) by takemura
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (unified)

Add configration flag 0x02 to set WDC_CAPABILITY_SINGLE_DRIVE.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:41:22 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15: +15 -4 lines
Diff to previous 1.15 (unified)

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.13.2.3 / (download) - annotate - [select for diffs], Fri Jul 7 17:33:49 2000 UTC (23 years, 9 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.13.2.2: +3 -3 lines
Diff to previous 1.13.2.2 (unified) to branchpoint 1.13 (unified) next main 1.14 (unified)

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.19 / (download) - annotate - [select for diffs], Sun Apr 2 02:07:52 2000 UTC (24 years ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: nathanw_sa
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (unified)

sync with ata driver change (dma_start args).

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:35 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (unified)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 8 18:40:51 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (unified)

Cast bus_size_t to u_long for printing.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 7 22:07:31 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +10 -1 lines
Diff to previous 1.15 (unified)

Add a new function call to the ISA DMA API: isa_dmamaxsize(), which returns
the maximum transfer size for the specified DMA channel.  Make all clients
of ISA DMA use this call to determine their maximum transfer size.

Revision 1.13.2.1.4.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:33:54 1999 UTC (24 years, 4 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.13.2.1: +6 -6 lines
Diff to previous 1.13.2.1 (unified) next main 1.13.2.2 (unified)

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.13.2.2 / (download) - annotate - [select for diffs], Mon Jun 21 14:21:58 1999 UTC (24 years, 10 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.13.2.1: +6 -6 lines
Diff to previous 1.13.2.1 (unified) to branchpoint 1.13 (unified)

pullup 1.14->1.15 (bouyer)

Revision 1.13.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:18:04 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.13.2.1: +6 -6 lines
Diff to previous 1.13.2.1 (unified) next main 1.13.2.2 (unified)

Sync w/ -current.

Revision 1.15 / (download) - annotate - [select for diffs], Wed May 19 14:41:25 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.14: +6 -6 lines
Diff to previous 1.14 (unified)

32 bits I/O ocasionally fails on some hardware, so the test succeed but
the kernel can get a 'protection fault trap' later. Enable the 32 bits I/O
test conditionally on a config flag, disabled by default (problem
reported by kurt.schreiner@uni-mainz.de).

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Apr 12 09:14:31 1999 UTC (25 years ago) by bouyer
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.13: +3 -2 lines
Diff to previous 1.13 (unified)

Sync with ic/wdc.c 1.67, ic/wdcvar.h 1.17, isa/wdc_isa.c 1.14:
Revert to a more conservative probe: it controller responded and we don't find
ATAPI signature, assume it and ATA or OLD drive (OLD is only set if the
wdc front end passed WDC_CAPABILITIES_OLD, only used for ISA front-end).
At attach time, issue an IDENTIFY to detect drives and eliminates ghosts.
If IDENTIFY failed and OLD is set, issue a RECAL to check for the presence
of old drives.
Should fix the 'disk dissapeared' problems reported by some users, including
port-arm32/7324.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 11 20:50:29 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (unified)

Fix probe code for IDE devices:
- Don't rely on ATA signature: some ide controllers seems to not transmit it
  properly (SIMIDE on arm32 machines). Instead, when we guess a drive is here
  after reset, just mark it as ATA and OLD is it's not ATAPI.
- at attach time, use IDENTIFY to eliminate ghost from the probe. If the
  drive had the old flag and IDENTIFY failed, issue a WDCC_RECAL command
  to detect a pre-ATA disk. If IDENTIFY succeded, remove the OLD flag,
  it's obviously not a pre-ATA disk.
- add a new controller flag, WDC_CAPABILITY_PREATA, used to shorcut parts
  of the probe (not necessary, but makes the probe/attach faster). This is
  only set by the ISA front-end, all other controllers supported can't have
  pre-ATA drives attached.
The mechanism used are more or less the same as before, they have just been
reordered. Should solve port-arm32/7324 (waiting for feedback).

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 22 03:24:33 1999 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (unified)

Use DMAMODE_DEMAND.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 3 18:24:31 1998 UTC (25 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, bouyer-ide-last-dist
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (unified)

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

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 21 15:41:42 1998 UTC (25 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (unified)

in wdc_softc: access the per-channel data via a pointer array instead of
an array of fixed-sized channel_softc elements. This way IDE controllers
which more than 1 channel (pciide) can extend the channel data easily
for private needs.
To avoid the double dereference at runtime, change the argument of
wdcstart() to the channel data pointer instead of the array index.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 12 16:09:19 1998 UTC (25 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.9: +74 -53 lines
Diff to previous 1.9 (unified)

Merge bouyer-ide

Revision 1.6.2.7 / (download) - annotate - [select for diffs], Sun Oct 4 15:01:56 1998 UTC (25 years, 6 months ago) by bouyer
Branch: bouyer-ide
CVS Tags: bouyer-ide-merge
Changes since 1.6.2.6: +3 -3 lines
Diff to previous 1.6.2.6 (unified) next main 1.7 (unified)

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.6 / (download) - annotate - [select for diffs], Fri Oct 2 19:37:21 1998 UTC (25 years, 6 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.5: +4 -2 lines
Diff to previous 1.6.2.5 (unified)

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.5 / (download) - annotate - [select for diffs], Fri Aug 21 16:34:49 1998 UTC (25 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.4: +22 -20 lines
Diff to previous 1.6.2.4 (unified)

Sync with -current

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 15 10:10:52 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-ide-base
Changes since 1.8: +22 -20 lines
Diff to previous 1.8 (unified)

Assign my copyrights to TNF.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Thu Aug 13 14:37:53 1998 UTC (25 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.3: +1 -9 lines
Diff to previous 1.6.2.3 (unified)

 - sync with -current
 - b* -> mem*

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Sat Jun 13 14:26:17 1998 UTC (25 years, 10 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.2: +0 -0 lines
Diff to previous 1.6.2.2 (unified)

Sync with HEAD.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Tue Jun 9 13:04:24 1998 UTC (25 years, 10 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6.2.1: +6 -12 lines
Diff to previous 1.6.2.1 (unified)

Sync with trunk.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 9 07:25:06 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.7: +1 -9 lines
Diff to previous 1.7 (unified)

Nuke __BROKEN_INDIRECT_CONFIG.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 9 00:05:46 1998 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +6 -4 lines
Diff to previous 1.6 (unified)

Adjust for changes to the ISA DMA API.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Thu Jun 4 16:54:11 1998 UTC (25 years, 10 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.6: +74 -47 lines
Diff to previous 1.6 (unified)

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], Fri Mar 13 16:50:07 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Branch point for: bouyer-ide
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (unified)

don't forget to set dma_arg, when using DMA functions.  also, minor
spacing bogon cleanup.  Pointed out by Kazuki Sakamoto in PR 5157.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 27 19:14:18 1998 UTC (26 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (unified)

I'm not responsible for this address window splitting hack, but I fix it
anyway.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 23 01:04:54 1998 UTC (26 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +6 -5 lines
Diff to previous 1.3 (unified)

Print a newline in wdc_isa_attach().

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 22 23:42:39 1998 UTC (26 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +5 -15 lines
Diff to previous 1.2 (unified)

Half the include files are unnecessary.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 17 00:40:45 1998 UTC (26 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (unified)

Put each of two labels one line to early.  That could cause a panic,
if the wdc space couldn't be mapped.  Pointed out by fvdl@netbsd.org.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 14 23:42:07 1998 UTC (26 years, 3 months ago) by cgd
Branch: MAIN

Various cleanups and bug fixes to the wdc/wd code:
* Fix bug in wdc that would overflow ATAPI transfer length.
* Improve wdc probe code so that 'wdc' is probed in if present
  even if there are no drives attached, and so that it works
  properly even if the only device is an ATAPI slave.
* bus_space-ify.
* split the ISA attachment from the wdc driver, and remove
  ISA dependencies from non-ISA files.
* claim that wd and wdc are now machine-independent (probably not
  completely true, but mostly so; they at least work on arm32 and
  i386).
* Various other minor fixups and cleanups, some of which were pointed
  out by Kazuki Sakamoto.

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>