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/atapi-cd.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/atapi-cd.c')
-rw-r--r-- | sys/dev/ata/atapi-cd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 9c1133e..60d2302 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.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 @@ -1033,7 +1033,7 @@ acdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) break; case CDRIOCWRITESPEED: - { + { int speed = *(int *)addr; if (speed < 177) @@ -1060,11 +1060,11 @@ acdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) break; case CDRIOCREADFORMATCAPS: - error = acd_read_format_caps(cdp, (struct cdr_format_capacities *)addr); + error = acd_read_format_caps(cdp, (struct cdr_format_capacities *)addr); break; case CDRIOCFORMAT: - error = acd_format(cdp, (struct cdr_format_params *)addr); + error = acd_format(cdp, (struct cdr_format_params *)addr); break; case DVDIOCREPORTKEY: |