aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2000-04-27 21:08:24 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2000-04-27 21:08:24 +0000
commit7fe1aaca86eecc8f3b7cd05ec2bc1506c5008ca0 (patch)
treec952f9421b16f1c0172a2ccfcdb0de8549ffa2ee
parenta343b08831c940cff6a3dd5c89f888785685ec45 (diff)
Notes
-rw-r--r--share/examples/ppi/Makefile4
-rw-r--r--sys/dev/ppbus/ppbconf.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/share/examples/ppi/Makefile b/share/examples/ppi/Makefile
index 1836d8abc17cc..60ba1fa91d48f 100644
--- a/share/examples/ppi/Makefile
+++ b/share/examples/ppi/Makefile
@@ -5,4 +5,8 @@
PROG= ppilcd
NOMAN= YES
+# XXX This should not be done in fact. The header files should
+# be copied to /usr/include/sys/dev/ppbus during make world
+CFLAGS += -I/sys/dev/ppbus
+
.include <bsd.prog.mk>
diff --git a/sys/dev/ppbus/ppbconf.h b/sys/dev/ppbus/ppbconf.h
index 93fc886311b80..96b7b1bf15c99 100644
--- a/sys/dev/ppbus/ppbconf.h
+++ b/sys/dev/ppbus/ppbconf.h
@@ -250,6 +250,7 @@ struct ppb_data {
void *ppb_owner; /* device which owns the bus */
};
+#ifdef _KERNEL
extern int ppb_attach_device(device_t);
extern int ppb_request_bus(device_t, device_t, int);
extern int ppb_release_bus(device_t, device_t);
@@ -263,6 +264,7 @@ extern int ppb_get_epp_protocol(device_t);
extern int ppb_set_mode(device_t, int); /* returns old mode */
extern int ppb_get_mode(device_t); /* returns current mode */
extern int ppb_write(device_t, char *, int, int);
+#endif /* _KERNEL */
/*
* These are defined as macros for speedup.