summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atapi.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-04-13 12:45:57 +0000
committerbde <bde@FreeBSD.org>1996-04-13 12:45:57 +0000
commit6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387 (patch)
tree82c451c31a31c4d821ca6348595300d7b8decbb8 /sys/i386/isa/atapi.c
parente97a7a15c60a5616debcd9cc097e3510d9eca133 (diff)
downloadFreeBSD-src-6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387.zip
FreeBSD-src-6eb67292b0fbbd0bd1936d5ccca1d9184f0cd387.tar.gz
Eliminated sloppy common-style declarations. Now there are no duplicated
common labels for LINT. There are still some common declarations for the !KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in tcp_debug.h.
Diffstat (limited to 'sys/i386/isa/atapi.c')
-rw-r--r--sys/i386/isa/atapi.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/i386/isa/atapi.c b/sys/i386/isa/atapi.c
index 6fdbc81..8c51d70 100644
--- a/sys/i386/isa/atapi.c
+++ b/sys/i386/isa/atapi.c
@@ -905,15 +905,7 @@ struct atapires atapi_request_immediate (struct atapi *ata, int unit,
}
#endif /* ATAPI_STATIC */
-#ifdef ATAPI_MODULE
-/*
- * ATAPI loadable driver stubs.
- */
-#include <sys/exec.h>
-#include <sys/conf.h>
-#include <sys/sysent.h>
-#include <sys/lkm.h>
-
+#if defined (ATAPI_MODULE) || !defined(ATAPI_STATIC)
int (*atapi_start_ptr) (int ctrlr);
int (*atapi_intr_ptr) (int ctrlr);
void (*atapi_debug_ptr) (struct atapi *ata, int on);
@@ -932,6 +924,16 @@ struct atapires (*atapi_request_immediate_ptr) (struct atapi *ata, int unit,
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);
+#endif
+
+#ifdef ATAPI_MODULE
+/*
+ * ATAPI loadable driver stubs.
+ */
+#include <sys/exec.h>
+#include <sys/conf.h>
+#include <sys/sysent.h>
+#include <sys/lkm.h>
extern int atapi_lock (int ctlr);
/*
OpenPOWER on IntegriCloud