-
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_v8: device.h param.h topology.h
Reviewed-by: Ingo Molnar <mingo@elte.hu> Acked-by: John Linn <john.linn@xilinx.com> Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
- Loading branch information
Michal Simek
committed
Mar 27, 2009
1 parent
4115ac8
commit 0a7d800
Showing
3 changed files
with
62 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Arch specific extensions to struct device | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License v2. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_DEVICE_H | ||
#define _ASM_MICROBLAZE_DEVICE_H | ||
|
||
struct device_node; | ||
|
||
struct dev_archdata { | ||
/* Optional pointer to an OF device node */ | ||
struct device_node *of_node; | ||
}; | ||
|
||
#endif /* _ASM_MICROBLAZE_DEVICE_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,30 @@ | ||
/* | ||
* 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_PARAM_H | ||
#define _ASM_MICROBLAZE_PARAM_H | ||
|
||
#ifdef __KERNEL__ | ||
#define HZ CONFIG_HZ /* internal kernel timer frequency */ | ||
#define USER_HZ 100 /* for user interfaces in "ticks" */ | ||
#define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ | ||
#endif /* __KERNEL__ */ | ||
|
||
#ifndef HZ | ||
#define HZ 100 | ||
#endif | ||
|
||
#define EXEC_PAGESIZE 4096 | ||
|
||
#ifndef NOGROUP | ||
#define NOGROUP (-1) | ||
#endif | ||
|
||
#define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
|
||
#endif /* _ASM_MICROBLAZE_PARAM_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,11 @@ | ||
#include <asm-generic/topology.h> | ||
|
||
#ifndef _ASM_MICROBLAZE_TOPOLOGY_H | ||
#define _ASM_MICROBLAZE_TOPOLOGY_H | ||
|
||
struct device_node; | ||
static inline int of_node_to_nid(struct device_node *device) | ||
{ | ||
return 0; | ||
} | ||
#endif /* _ASM_MICROBLAZE_TOPOLOGY_H */ |