summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-01-15 06:34:19 +0000
committerdlg <dlg@openbsd.org>2016-01-15 06:34:19 +0000
commite623ca5a3dfbc977c3170fa35b8d5c839dc628e5 (patch)
tree998c62fa05654e2520ca4f23eeeae625bd733a36
parentfix calculation of the max queue entries supported value (diff)
downloadwireguard-openbsd-e623ca5a3dfbc977c3170fa35b8d5c839dc628e5.tar.xz
wireguard-openbsd-e623ca5a3dfbc977c3170fa35b8d5c839dc628e5.zip
feng shui.
dont need a billion tabs for the function prototypes. just some akward line wrappings.
-rw-r--r--sys/dev/ic/nvme.c80
1 files changed, 36 insertions, 44 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 90bb91cf6e0..908811c5895 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.12 2016/01/15 03:28:41 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.13 2016/01/15 06:34:19 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -40,49 +40,41 @@ struct cfdriver nvme_cd = {
DV_DULL
};
-int nvme_ready(struct nvme_softc *, u_int32_t);
-int nvme_enable(struct nvme_softc *, u_int);
-int nvme_disable(struct nvme_softc *);
-
-void nvme_version(struct nvme_softc *, u_int32_t);
-void nvme_dumpregs(struct nvme_softc *);
-int nvme_identify(struct nvme_softc *, u_int);
-void nvme_fill_identify(struct nvme_softc *,
- struct nvme_ccb *, void *);
-
-int nvme_ccbs_alloc(struct nvme_softc *, u_int);
-void nvme_ccbs_free(struct nvme_softc *);
-
-void * nvme_ccb_get(void *);
-void nvme_ccb_put(void *, void *);
-
-int nvme_poll(struct nvme_softc *, struct nvme_queue *,
- struct nvme_ccb *,
- void (*fill)(struct nvme_softc *,
- struct nvme_ccb *, void *));
-void nvme_poll_fill(struct nvme_softc *,
- struct nvme_ccb *, void *);
-void nvme_poll_done(struct nvme_softc *,
- struct nvme_ccb *, struct nvme_cqe *);
-void nvme_empty_done(struct nvme_softc *,
- struct nvme_ccb *, struct nvme_cqe *);
-
-struct nvme_queue * nvme_q_alloc(struct nvme_softc *,
- u_int, u_int, u_int);
-void nvme_q_submit(struct nvme_softc *,
- struct nvme_queue *, struct nvme_ccb *,
- void (*)(struct nvme_softc *,
- struct nvme_ccb *, void *));
-int nvme_q_complete(struct nvme_softc *,
- struct nvme_queue *q);
-void nvme_q_free(struct nvme_softc *,
- struct nvme_queue *);
-
-struct nvme_dmamem * nvme_dmamem_alloc(struct nvme_softc *, size_t);
-void nvme_dmamem_free(struct nvme_softc *,
- struct nvme_dmamem *);
-void nvme_dmamem_sync(struct nvme_softc *,
- struct nvme_dmamem *, int);
+int nvme_ready(struct nvme_softc *, u_int32_t);
+int nvme_enable(struct nvme_softc *, u_int);
+int nvme_disable(struct nvme_softc *);
+
+void nvme_version(struct nvme_softc *, u_int32_t);
+void nvme_dumpregs(struct nvme_softc *);
+int nvme_identify(struct nvme_softc *, u_int);
+void nvme_fill_identify(struct nvme_softc *, struct nvme_ccb *, void *);
+
+int nvme_ccbs_alloc(struct nvme_softc *, u_int);
+void nvme_ccbs_free(struct nvme_softc *);
+
+void * nvme_ccb_get(void *);
+void nvme_ccb_put(void *, void *);
+
+int nvme_poll(struct nvme_softc *, struct nvme_queue *, struct nvme_ccb *,
+ void (*fill)(struct nvme_softc *, struct nvme_ccb *, void *));
+void nvme_poll_fill(struct nvme_softc *, struct nvme_ccb *, void *);
+void nvme_poll_done(struct nvme_softc *, struct nvme_ccb *,
+ struct nvme_cqe *);
+void nvme_empty_done(struct nvme_softc *, struct nvme_ccb *,
+ struct nvme_cqe *);
+
+struct nvme_queue *
+ nvme_q_alloc(struct nvme_softc *, u_int, u_int, u_int);
+void nvme_q_submit(struct nvme_softc *,
+ struct nvme_queue *, struct nvme_ccb *,
+ void (*)(struct nvme_softc *, struct nvme_ccb *, void *));
+int nvme_q_complete(struct nvme_softc *, struct nvme_queue *);
+void nvme_q_free(struct nvme_softc *, struct nvme_queue *);
+
+struct nvme_dmamem *
+ nvme_dmamem_alloc(struct nvme_softc *, size_t);
+void nvme_dmamem_free(struct nvme_softc *, struct nvme_dmamem *);
+void nvme_dmamem_sync(struct nvme_softc *, struct nvme_dmamem *, int);
#define nvme_read4(_s, _r) \
bus_space_read_4((_s)->sc_iot, (_s)->sc_ioh, (_r))