summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atapi.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-13 19:38:12 +0000
committerpeter <peter@FreeBSD.org>1999-04-13 19:38:12 +0000
commit7d0299e0a54d7a75324ab8c53af872c54a8cb175 (patch)
tree721a4a6c49e2837082092fa69e5e8d565b19106a /sys/i386/isa/atapi.h
parentdfdcc6233207986cb1e4fdc12bd940925c5f19c6 (diff)
downloadFreeBSD-src-7d0299e0a54d7a75324ab8c53af872c54a8cb175.zip
FreeBSD-src-7d0299e0a54d7a75324ab8c53af872c54a8cb175.tar.gz
Shoot the LKM support in the old wd/wdc/atapi driver set in the head and
perform a cleanup/unifdef sweep over it to tidy things up. The atapi code is permanently attached to the wd driver and is always probed. I will add an extra option bit in the flags to disable an atapi probe on either the master or slave if needed, if people want this. Remember, this driver is destined to die some time. It's possible that it will loose all atapi support down the track and only be used for dumb non-ATA disks and all ata/atapi devices will be handled by the new ata system. ATAPI, ATAPI_STATIC and CMD640 are no longer options, all are implicit. Previously discussed with: sos
Diffstat (limited to 'sys/i386/isa/atapi.h')
-rw-r--r--sys/i386/isa/atapi.h28
1 files changed, 6 insertions, 22 deletions
diff --git a/sys/i386/isa/atapi.h b/sys/i386/isa/atapi.h
index 1973325..afa76ea 100644
--- a/sys/i386/isa/atapi.h
+++ b/sys/i386/isa/atapi.h
@@ -268,37 +268,21 @@ extern struct atapidrv atapi_drvtab[4]; /* delayed attach info */
extern int atapi_ndrv; /* the number of potential drives */
extern struct atapi *atapi_tab; /* the table of atapi controllers */
-#ifndef ATAPI_STATIC
-# define atapi_start (*atapi_start_ptr)
-# define atapi_intr (*atapi_intr_ptr)
-# define atapi_debug (*atapi_debug_ptr)
-# define atapi_request_wait (*atapi_request_wait_ptr)
-# define atapi_request_callback (*atapi_request_callback_ptr)
-# define atapi_request_immediate (*atapi_request_immediate_ptr)
-#endif
-
-#ifndef ATAPI_MODULE
int atapi_attach (int ctlr, int unit, int port);
-#endif
-
-/*
- * These "functions" are declared with archaic `extern's because they are
- * actually pointers in the !ATAPI_STATIC case.
- */
-extern int atapi_start (int ctrlr);
-extern int atapi_intr (int ctrlr);
-extern void atapi_debug (struct atapi *ata, int on);
-extern struct atapires atapi_request_wait (struct atapi *ata, int unit,
+int atapi_start (int ctrlr);
+int atapi_intr (int ctrlr);
+void atapi_debug (struct atapi *ata, int on);
+struct atapires atapi_request_wait (struct atapi *ata, int unit,
u_char cmd, u_char a1, u_char a2, u_char a3, u_char a4,
u_char a5, u_char a6, u_char a7, u_char a8, u_char a9,
u_char a10, u_char a11, u_char a12, u_char a13, u_char a14, u_char a15,
char *addr, int count);
-extern void atapi_request_callback (struct atapi *ata, int unit,
+void atapi_request_callback (struct atapi *ata, int unit,
u_char cmd, u_char a1, u_char a2, u_char a3, u_char a4,
u_char a5, u_char a6, u_char a7, u_char a8, u_char a9,
u_char a10, u_char a11, u_char a12, u_char a13, u_char a14, u_char a15,
char *addr, int count, atapi_callback_t *done, void *x, void *y);
-extern struct atapires atapi_request_immediate (struct atapi *ata, int unit,
+struct atapires atapi_request_immediate (struct atapi *ata, int unit,
u_char cmd, u_char a1, u_char a2, u_char a3, u_char a4,
u_char a5, u_char a6, u_char a7, u_char a8, u_char a9,
u_char a10, u_char a11, u_char a12, u_char a13, u_char a14, u_char a15,
OpenPOWER on IntegriCloud