1 /* 2 * Copyright 2007, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * François Revol <revol@free.fr> 7 * 8 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>. 9 * All rights reserved. Distributed under the terms of the MIT License. 10 */ 11 12 13 #include <OS.h> 14 15 #include <arch_cpu.h> 16 #include <arch/system_info.h> 17 #include <boot/kernel_args.h> 18 19 20 status_t 21 arch_get_system_info(system_info *info, size_t size) 22 { 23 return B_OK; 24 } 25 26 27 void 28 arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu) 29 { 30 switch (node->type) { 31 case B_TOPOLOGY_ROOT: 32 node->data.root.platform = B_CPU_PPC_64; 33 break; 34 35 case B_TOPOLOGY_PACKAGE: 36 //TODO node->data.package.vendor = sCPUVendor; 37 node->data.package.cache_line_size = CACHE_LINE_SIZE; 38 break; 39 40 case B_TOPOLOGY_CORE: 41 //TODO node->data.core.model = sPVR; 42 //TODO node->data.core.default_frequency = sCPUClockFrequency; 43 break; 44 45 default: 46 break; 47 } 48 } 49 50 51 status_t 52 arch_system_info_init(struct kernel_args *args) 53 { 54 return B_OK; 55 } 56