All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: lguest <lguest@ozlabs.org>,
	lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	virtualization <virtualization@lists.linux-foundation.org>,
	Glauber de Oliveira Costa <glommer@gmail.com>,
	Jes Sorensen <jes@sgi.com>, Carsten Otte <cotte@de.ibm.com>
Subject: [PATCH 4/7] Moved the io struct up to the generic lg.h
Date: Wed, 08 Aug 2007 20:32:15 -0400	[thread overview]
Message-ID: <20070809003343.664528532@goodmis.org> (raw)
In-Reply-To: 20070809003211.373543702@goodmis.org

[-- Attachment #1: 0004-Moved-the-io-struct-up-to-the-generic-lg.h-file.-Also-added-a-proper-ifdef.txt --]
[-- Type: text/plain, Size: 2018 bytes --]

Move the io struct into the lg.h file since the io.c is generic to other
architectures.

Also added a proper ifdef for the generic lg.h.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 drivers/lguest/i386/lg.h |   11 ++---------
 drivers/lguest/lg.h      |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/drivers/lguest/i386/lg.h b/drivers/lguest/i386/lg.h
index 64f0abe..c5ea14c 100644
--- a/drivers/lguest/i386/lg.h
+++ b/drivers/lguest/i386/lg.h
@@ -20,6 +20,8 @@
 #include <linux/err.h>
 #include <asm/semaphore.h>
 #include "irq_vectors.h"
+/* some files include this, some include the parent */
+#include "../lg.h"
 
 #define GUEST_PL 1
 
@@ -245,15 +247,6 @@ void pin_page(struct lguest *lg, unsigned long vaddr);
 int lguest_device_init(void);
 void lguest_device_remove(void);
 
-/* io.c: */
-void lguest_io_init(void);
-int bind_dma(struct lguest *lg,
-	     unsigned long key, unsigned long udma, u16 numdmas, u8 interrupt);
-void send_dma(struct lguest *info, unsigned long key, unsigned long udma);
-void release_all_dma(struct lguest *lg);
-unsigned long get_dma_buffer(struct lguest *lg, unsigned long key,
-			     unsigned long *interrupt);
-
 /* hypercalls.c: */
 void do_hypercalls(struct lguest *lg);
 void write_timestamp(struct lguest *lg);
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 4c4356e..3147bf6 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -1,3 +1,19 @@
+#ifndef _LGUEST_LG_GENERIC
+#define _LGUEST_LG_GENERIC
+
+struct lguest;
+
+/* io.c: */
+void lguest_io_init(void);
+int bind_dma(struct lguest *lg,
+	     unsigned long key, unsigned long udma, u16 numdmas, u8 interrupt);
+void send_dma(struct lguest *info, unsigned long key, unsigned long udma);
+void release_all_dma(struct lguest *lg);
+unsigned long get_dma_buffer(struct lguest *lg, unsigned long key,
+			     unsigned long *interrupt);
+
 #ifdef CONFIG_X86_32
 #include "i386/lg.h"
 #endif
+
+#endif /* _LGUEST_LG_GENERIC */
-- 
1.4.4.4

-- 

  parent reply	other threads:[~2007-08-09  0:38 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-09  0:32 [PATCH 0/7] Modify lguest32 to make room for lguest64 Steven Rostedt
2007-08-09  0:32 ` [PATCH 1/7] Move lg.h to the i386 specific lguest directory Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  0:32 ` [PATCH 2/7] Added generic lg.h in " Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  0:56   ` Glauber de Oliveira Costa
2007-08-09  0:56   ` Glauber de Oliveira Costa
2007-08-09 12:06     ` Jes Sorensen
2007-08-09 12:06     ` Jes Sorensen
2007-08-09  1:45   ` Stephen Rothwell
2007-08-09  1:45   ` Stephen Rothwell
2007-08-09  2:17     ` Steven Rostedt
2007-08-09  2:17     ` Steven Rostedt
2007-08-09  0:32 ` [PATCH 3/7] Move the lguest files that are i386 specific Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt [this message]
2007-08-09  1:51   ` [PATCH 4/7] Moved the io struct up to the generic lg.h Stephen Rothwell
2007-08-09  2:19     ` Steven Rostedt
2007-08-09  2:19     ` Steven Rostedt
2007-08-09 12:26     ` Jes Sorensen
2007-08-09 12:40       ` Steven Rostedt
2007-08-09 12:40         ` Steven Rostedt
2007-08-09 12:26     ` Jes Sorensen
2007-08-09  1:51   ` Stephen Rothwell
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  0:32 ` [PATCH 5/7] Change lguest launcher to use asm generic include Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  1:05   ` Glauber de Oliveira Costa
2007-08-09  1:05   ` Glauber de Oliveira Costa
2007-08-11  3:11   ` Rusty Russell
2007-08-11  3:11   ` Rusty Russell
2007-08-09  0:32 ` [PATCH 6/7] Remove __pa() use in hvc_lguest Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-09  0:32 ` [PATCH 7/7] Move lguest_dma_info into generic lg.h Steven Rostedt
2007-08-09  0:32 ` Steven Rostedt
2007-08-11  3:42 ` [PATCH 0/7] Modify lguest32 to make room for lguest64 Rusty Russell
2007-08-11  3:42 ` Rusty Russell
2007-08-13  9:50   ` Jes Sorensen
2007-08-13  9:50     ` Jes Sorensen
2007-08-13 15:01   ` Jes Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070809003343.664528532@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=cotte@de.ibm.com \
    --cc=glommer@gmail.com \
    --cc=jes@sgi.com \
    --cc=lguest@ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.