-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microblaze: convert all simple headers to use asm-generic
All the simple microblaze header files were adapted to use their asm-generic implementations. These files are more simple and were quite straightforward to change. fb.h, vga.h and parport.h previously did not exist, using the generic version makes it possible to build more drivers successfully in allyesonfig. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
- Loading branch information
Remis Lima Baima
authored and
Michal Simek
committed
Jul 6, 2009
1 parent
14f8738
commit 0a58458
Showing
19 changed files
with
21 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1 @@ | ||
/* | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_BITOPS_H | ||
#define _ASM_MICROBLAZE_BITOPS_H | ||
|
||
/* | ||
* Copyright 1992, Linus Torvalds. | ||
*/ | ||
|
||
#include <asm/byteorder.h> /* swab32 */ | ||
#include <asm/system.h> /* save_flags */ | ||
|
||
/* | ||
* clear_bit() doesn't provide any barrier for the compiler. | ||
*/ | ||
#define smp_mb__before_clear_bit() barrier() | ||
#define smp_mb__after_clear_bit() barrier() | ||
#include <asm-generic/bitops.h> | ||
#include <asm-generic/bitops/__fls.h> | ||
|
||
#endif /* _ASM_MICROBLAZE_BITOPS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
/* | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_BUG_H | ||
#define _ASM_MICROBLAZE_BUG_H | ||
|
||
#include <linux/kernel.h> | ||
#include <asm-generic/bug.h> | ||
|
||
#endif /* _ASM_MICROBLAZE_BUG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
/* | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_BUGS_H | ||
#define _ASM_MICROBLAZE_BUGS_H | ||
|
||
static inline void check_bugs(void) | ||
{ | ||
/* nothing to do */ | ||
} | ||
|
||
#endif /* _ASM_MICROBLAZE_BUGS_H */ | ||
#include <asm-generic/bugs.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <asm-generic/fb.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#ifdef CONFIG_MMU | ||
# include "mmu_context_mm.h" | ||
#else | ||
# include "mmu_context_no.h" | ||
# include <asm-generic/mmu_context.h> | ||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <asm-generic/parport.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#include <linux/io.h> | ||
#include <asm-generic/pci.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
/* | ||
* Copyright (C) 2008 Michal Simek <monstr@monstr.eu> | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_SCATTERLIST_H | ||
#define _ASM_MICROBLAZE_SCATTERLIST_H | ||
|
||
struct scatterlist { | ||
#ifdef CONFIG_DEBUG_SG | ||
unsigned long sg_magic; | ||
#endif | ||
unsigned long page_link; | ||
dma_addr_t dma_address; | ||
unsigned int offset; | ||
unsigned int length; | ||
}; | ||
|
||
#define sg_dma_address(sg) ((sg)->dma_address) | ||
#define sg_dma_len(sg) ((sg)->length) | ||
|
||
#define ISA_DMA_THRESHOLD (~0UL) | ||
|
||
#endif /* _ASM_MICROBLAZE_SCATTERLIST_H */ | ||
#include <asm-generic/scatterlist.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
/* | ||
* Copyright (C) 2009 Michal Simek <monstr@monstr.eu> | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_SERIAL_H | ||
#define _ASM_MICROBLAZE_SERIAL_H | ||
|
||
# define BASE_BAUD (1843200 / 16) | ||
|
||
#endif /* _ASM_MICROBLAZE_SERIAL_H */ | ||
#include <asm-generic/serial.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
#ifndef _ASM_MICROBLAZE_SHMPARAM_H | ||
#define _ASM_MICROBLAZE_SHMPARAM_H | ||
|
||
#define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ | ||
|
||
#endif /* _ASM_MICROBLAZE_SHMPARAM_H */ | ||
#include <asm-generic/shmparam.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
|
||
#include <asm-generic/vga.h> |