lkml.org 
[lkml]   [2003]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: kmap_types.h (was: Re: Linux 2.4.22-pre3)
On Mon, 14 Jul 2003, William Lee Irwin III wrote:
> On Sat, 5 Jul 2003, Marcelo Tosatti wrote:
> >> o [CRYPTO-2.4]: Add dummy kmap_types.h header for sparc64
>
> On Mon, Jul 14, 2003 at 11:55:40AM +0200, Geert Uytterhoeven wrote:
> > What are the actual purpose and semantics of the KM_* types? I need to add them
> > for m68k to make crypto compile.
> > Gr{oetje,eeting}s,
> > Geert
>
> They're per-cpu virtualspace reservations for predetermined purposes.
> It's for a variant of kmap() usable under spinlocks and in interrupt
> handlers. If you don't have highmem, you just don't care.

OK, in that case the one below (copied from PPC/SPARC64) should work fine.
Marcelo, please apply. Thx!

---snip---

M68k: Add <asm/kmap_types.h>

--- linux-2.4.x/include/asm-m68k/kmap_types.h Tue Jun 24 14:30:53 2003
+++ linux-m68k-2.4.x/include/asm-m68k/kmap_types.h Wed Jul 9 17:27:49 2003
@@ -0,0 +1,18 @@
+#ifdef __KERNEL__
+#ifndef _ASM_KMAP_TYPES_H
+#define _ASM_KMAP_TYPES_H
+
+enum km_type {
+ KM_BOUNCE_READ,
+ KM_SKB_SUNRPC_DATA,
+ KM_SKB_DATA_SOFTIRQ,
+ KM_USER0,
+ KM_USER1,
+ KM_BH_IRQ,
+ KM_SOFTIRQ0,
+ KM_SOFTIRQ1,
+ KM_TYPE_NR
+};
+
+#endif
+#endif /* __KERNEL__ */
Gr{oetje,eeting}s,
Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.050 / U:2.108 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site