aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bktr
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2016-08-09 19:32:06 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2016-08-09 19:32:06 +0000
commitbd937497ea2a1111d9cf6ff1cdbe698b3cdd430a (patch)
treecd36a4cc1858d305bf7632b49f8862e1ea5067dc /sys/dev/bktr
parent8e60fa95cb5d4ee7e70601a9b8542240fb1c2522 (diff)
Notes
Diffstat (limited to 'sys/dev/bktr')
-rw-r--r--sys/dev/bktr/bktr_os.c18
-rw-r--r--sys/dev/bktr/bktr_reg.h2
2 files changed, 15 insertions, 5 deletions
diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c
index aa41454f0cab..42069b39db3b 100644
--- a/sys/dev/bktr/bktr_os.c
+++ b/sys/dev/bktr/bktr_os.c
@@ -889,10 +889,11 @@ vm_offset_t vm_page_alloc_contig(vm_offset_t, vm_offset_t,
#if defined(__OpenBSD__)
static int bktr_probe(struct device *, void *, void *);
+static void bktr_attach(struct device *, struct device *, void *);
#else
-static int bktr_probe(struct device *, struct cfdata *, void *);
+static int bktr_probe(device_t, struct cfdata *, void *);
+static void bktr_attach(device_t, device_t, void *);
#endif
-static void bktr_attach(struct device *, struct device *, void *);
struct cfattach bktr_ca = {
sizeof(struct bktr_softc), bktr_probe, bktr_attach
@@ -908,10 +909,11 @@ struct cfdriver bktr_cd = {
int
bktr_probe(parent, match, aux)
- struct device *parent;
#if defined(__OpenBSD__)
+ struct device *parent;
void *match;
#else
+ device_t parent;
struct cfdata *match;
#endif
void *aux;
@@ -933,7 +935,15 @@ bktr_probe(parent, match, aux)
* the attach routine.
*/
static void
-bktr_attach(struct device *parent, struct device *self, void *aux)
+bktr_attach(parent, self, aux)
+#if defined(__OpenBSD__)
+ struct device *parent;
+ struct device *self;
+#else
+ device_t parent;
+ device_t self;
+#endif
+ void *aux;
{
bktr_ptr_t bktr;
u_long latency;
diff --git a/sys/dev/bktr/bktr_reg.h b/sys/dev/bktr/bktr_reg.h
index 4a3af1a490b0..65a6dbc359a0 100644
--- a/sys/dev/bktr/bktr_reg.h
+++ b/sys/dev/bktr/bktr_reg.h
@@ -35,7 +35,7 @@
*/
#ifdef __NetBSD__
-#include <machine/bus.h> /* struct device */
+#include <machine/bus.h> /* device_t */
#include <sys/device.h>
#include <sys/select.h> /* struct selinfo */
# ifdef DEBUG