diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h')
-rw-r--r-- | ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h b/ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h deleted file mode 100644 index cdfd2399..00000000 --- a/ANDROID_3.4.5/arch/sparc/kernel/of_device_common.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _OF_DEVICE_COMMON_H -#define _OF_DEVICE_COMMON_H - -static inline u64 of_read_addr(const u32 *cell, int size) -{ - u64 r = 0; - while (size--) - r = (r << 32) | *(cell++); - return r; -} - -void of_bus_default_count_cells(struct device_node *dev, int *addrc, - int *sizec); -int of_out_of_range(const u32 *addr, const u32 *base, - const u32 *size, int na, int ns); -int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna); -unsigned long of_bus_default_get_flags(const u32 *addr, unsigned long flags); - -int of_bus_sbus_match(struct device_node *np); -void of_bus_sbus_count_cells(struct device_node *child, int *addrc, int *sizec); - -/* Max address size we deal with */ -#define OF_MAX_ADDR_CELLS 4 - -struct of_bus { - const char *name; - const char *addr_prop_name; - int (*match)(struct device_node *parent); - void (*count_cells)(struct device_node *child, - int *addrc, int *sizec); - int (*map)(u32 *addr, const u32 *range, - int na, int ns, int pna); - unsigned long (*get_flags)(const u32 *addr, unsigned long); -}; - -#endif /* _OF_DEVICE_COMMON_H */ |