-/* $OpenBSD: nvme.c,v 1.91 2021/02/25 07:30:36 jan Exp $ */
+/* $OpenBSD: nvme.c,v 1.92 2021/05/28 01:51:11 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
void nvme_scsi_capacity16(struct scsi_xfer *);
void nvme_scsi_capacity(struct scsi_xfer *);
-#define nvme_read4(_s, _r) \
- bus_space_read_4((_s)->sc_iot, (_s)->sc_ioh, (_r))
-#define nvme_write4(_s, _r, _v) \
- bus_space_write_4((_s)->sc_iot, (_s)->sc_ioh, (_r), (_v))
/*
* Some controllers, at least Apple NVMe, always require split
* transfers, so don't use bus_space_{read,write}_8() on LP64.
-/* $OpenBSD: nvmevar.h,v 1.20 2020/07/22 13:16:04 krw Exp $ */
+/* $OpenBSD: nvmevar.h,v 1.21 2021/05/28 01:51:11 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
int nvme_intr(void *);
int nvme_intr_intx(void *);
+#define nvme_read4(_s, _r) \
+ bus_space_read_4((_s)->sc_iot, (_s)->sc_ioh, (_r))
+#define nvme_write4(_s, _r, _v) \
+ bus_space_write_4((_s)->sc_iot, (_s)->sc_ioh, (_r), (_v))
+
#define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname)