Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/ata hide active_xfer from drivers
details: https://anonhg.NetBSD.org/src/rev/7f1dc1a6e8c9
branches: jdolecek-ncq
changeset: 352621:7f1dc1a6e8c9
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Apr 11 18:15:03 2017 +0000
description:
hide active_xfer from drivers
diffstat:
sys/dev/ata/ata.c | 6 ++++--
sys/dev/ata/atavar.h | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r 7394cf541754 -r 7f1dc1a6e8c9 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Tue Apr 11 18:14:47 2017 +0000
+++ b/sys/dev/ata/ata.c Tue Apr 11 18:15:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ata.c,v 1.132.8.1 2017/04/10 22:57:02 jdolecek Exp $ */
+/* $NetBSD: ata.c,v 1.132.8.2 2017/04/11 18:15:03 jdolecek Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.1 2017/04/10 22:57:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.2 2017/04/11 18:15:03 jdolecek Exp $");
#include "opt_ata.h"
@@ -46,6 +46,8 @@
#include <sys/bus.h>
#include <sys/once.h>
+#define ATABUS_PRIVATE
+
#include <dev/ata/ataconf.h>
#include <dev/ata/atareg.h>
#include <dev/ata/atavar.h>
diff -r 7394cf541754 -r 7f1dc1a6e8c9 sys/dev/ata/atavar.h
--- a/sys/dev/ata/atavar.h Tue Apr 11 18:14:47 2017 +0000
+++ b/sys/dev/ata/atavar.h Tue Apr 11 18:15:03 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atavar.h,v 1.92.8.1 2017/04/10 22:57:02 jdolecek Exp $ */
+/* $NetBSD: atavar.h,v 1.92.8.2 2017/04/11 18:15:03 jdolecek Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -88,7 +88,9 @@
#define QF_SHARED 0x02 /* this queue is shared */
int queue_active; /* number of active transfers */
int queue_openings; /* max number of active transfers */
+#ifdef ATABUS_PRIVATE
struct ata_xfer *active_xfers[1]; /* active command */
+#endif
};
/* ATA bus instance state information. */
Home |
Main Index |
Thread Index |
Old Index