diff options
author | sos <sos@FreeBSD.org> | 2003-02-20 20:02:32 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2003-02-20 20:02:32 +0000 |
commit | 93c9b5f5d15135bbb2fbe83962364b1b8d98dd7b (patch) | |
tree | 21f00885355e44a0cfacbbf172b07133dc03eb36 /sys/dev/ata/ata-card.c | |
parent | 465aae958c94f33f1c58bf6e4932b8bbb8ac7c73 (diff) | |
download | FreeBSD-src-93c9b5f5d15135bbb2fbe83962364b1b8d98dd7b.zip FreeBSD-src-93c9b5f5d15135bbb2fbe83962364b1b8d98dd7b.tar.gz |
First round off updates/fixes to the ATA driver.
This moves all chipset specific code to a new file 'ata-chipset.c'.
Extensive use of tables and pointers to avoid having the same switch
on chipset type in several places, and to allow substituting various
functions for different HW arch needs.
Added PIO mode setup and all DMA modes.
Support for all known SiS chipsets. Thanks to Christoph Kukulies for
sponsoring a nice ASUS P4S8X SiS648 based board for this work!
Tested on: i386, PC98, alpha and sparc64
Diffstat (limited to 'sys/dev/ata/ata-card.c')
-rw-r--r-- | sys/dev/ata/ata-card.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ata/ata-card.c b/sys/dev/ata/ata-card.c index ef1c338..31ff4ab 100644 --- a/sys/dev/ata/ata-card.c +++ b/sys/dev/ata/ata-card.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998,1999,2000,2001,2002 Søren Schmidt <sos@FreeBSD.org> + * Copyright (c) 1998 - 2003 Søren Schmidt <sos@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -61,12 +61,6 @@ ata_pccard_match(device_t dev) return(ENXIO); } -static int -ata_pccard_intrnoop(struct ata_channel *ch) -{ - return 1; -} - static void ata_pccard_locknoop(struct ata_channel *ch, int type) { @@ -116,8 +110,7 @@ ata_pccard_probe(device_t dev) ch->unit = 0; ch->flags |= (ATA_USE_16BIT | ATA_NO_SLAVE); - ch->intr_func = ata_pccard_intrnoop; - ch->lock_func = ata_pccard_locknoop; + ch->locking = ata_pccard_locknoop; return ata_probe(dev); } |