Skip to content

Commit

Permalink
x86: unify include/asm/agp_32/64.h
Browse files Browse the repository at this point in the history
The 32bit D(n) debug addon can be made exclusive for 32 bit compiles.
Otherwise all the same.

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO authored and Thomas Gleixner committed Oct 17, 2007
1 parent 35cc461 commit c4ac82a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 52 deletions.
30 changes: 27 additions & 3 deletions include/asm-x86/kmap_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
#ifdef CONFIG_X86_32
# include "kmap_types_32.h"
#ifndef _ASM_X86_KMAP_TYPES_H
#define _ASM_X86_KMAP_TYPES_H

#if defined(CONFIG_X86_32) && defined(CONFIG_DEBUG_HIGHMEM)
# define D(n) __KM_FENCE_##n ,
#else
# include "kmap_types_64.h"
# define D(n)
#endif

enum km_type {
D(0) KM_BOUNCE_READ,
D(1) KM_SKB_SUNRPC_DATA,
D(2) KM_SKB_DATA_SOFTIRQ,
D(3) KM_USER0,
D(4) KM_USER1,
D(5) KM_BIO_SRC_IRQ,
D(6) KM_BIO_DST_IRQ,
D(7) KM_PTE0,
D(8) KM_PTE1,
D(9) KM_IRQ0,
D(10) KM_IRQ1,
D(11) KM_SOFTIRQ0,
D(12) KM_SOFTIRQ1,
D(13) KM_TYPE_NR
};

#undef D

#endif
30 changes: 0 additions & 30 deletions include/asm-x86/kmap_types_32.h

This file was deleted.

19 changes: 0 additions & 19 deletions include/asm-x86/kmap_types_64.h

This file was deleted.

0 comments on commit c4ac82a

Please sign in to comment.