Changeset 86ffa27f in mainline for kernel/arch/mips64/include/arch.h
- Timestamp:
- 2011-08-07T11:21:44Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc574511
- Parents:
- 15f3c3f (diff), e8067c0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips64/include/arch.h
r15f3c3f r86ffa27f 1 1 /* 2 * Copyright (c) 200 6 Jakub Jermar2 * Copyright (c) 2005 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 #ifndef KERN_FHC_H_ 30 #define KERN_FHC_H_ 29 /** @addtogroup mips64 30 * @{ 31 */ 32 /** @file 33 */ 31 34 32 #i nclude <genarch/ofw/ofw_tree.h>33 # include <typedefs.h>34 #include <ddi/irq.h> 35 #ifndef KERN_mips64_ARCH_H_ 36 #define KERN_mips64_ARCH_H_ 37 35 38 #include <typedefs.h> 36 39 37 typedef struct { 38 uint64_t addr; 39 uint32_t size; 40 } __attribute__ ((packed)) ofw_fhc_reg_t; 40 #define TASKMAP_MAX_RECORDS 32 41 #define CPUMAP_MAX_RECORDS 32 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 44 extern size_t cpu_count; 41 45 42 46 typedef struct { 43 uint64_t child_base;44 uint64_t parent_base;45 uint32_t size;46 } __attribute__ ((packed)) ofw_fhc_range_t;47 void *addr; 48 size_t size; 49 char name[BOOTINFO_TASK_NAME_BUFLEN]; 50 } utask_t; 47 51 48 52 typedef struct { 49 uint64_t addr; 50 uint32_t size; 51 } __attribute__ ((packed)) ofw_central_reg_t; 53 uint32_t cpumap; 54 size_t cnt; 55 utask_t tasks[TASKMAP_MAX_RECORDS]; 56 } bootinfo_t; 52 57 53 typedef struct { 54 uint64_t child_base; 55 uint64_t parent_base; 56 uint32_t size; 57 } __attribute__ ((packed)) ofw_central_range_t; 58 59 extern bool ofw_fhc_apply_ranges(ofw_tree_node_t *, ofw_fhc_reg_t *, 60 uintptr_t *); 61 extern bool ofw_central_apply_ranges(ofw_tree_node_t *, ofw_central_reg_t *, 62 uintptr_t *); 63 64 extern bool ofw_fhc_map_interrupt(ofw_tree_node_t *, ofw_fhc_reg_t *, 65 uint32_t, int *, cir_t *, void **); 58 extern void arch_pre_main(void *entry, bootinfo_t *bootinfo); 66 59 67 60 #endif 61 62 /** @} 63 */
Note:
See TracChangeset
for help on using the changeset viewer.