1a7c23bb4SPulkoMandy /* 2a7c23bb4SPulkoMandy * Copyright 2007, Haiku Inc. All rights reserved. 3a7c23bb4SPulkoMandy * Distributed under the terms of the MIT License. 4a7c23bb4SPulkoMandy * 5a7c23bb4SPulkoMandy * Authors: 6a7c23bb4SPulkoMandy * François Revol <revol@free.fr> 7a7c23bb4SPulkoMandy * 8a7c23bb4SPulkoMandy * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>. 9a7c23bb4SPulkoMandy * All rights reserved. Distributed under the terms of the MIT License. 10a7c23bb4SPulkoMandy */ 11a7c23bb4SPulkoMandy 12a7c23bb4SPulkoMandy #include <OS.h> 13a7c23bb4SPulkoMandy 14a7c23bb4SPulkoMandy #include <arch_cpu.h> 15a7c23bb4SPulkoMandy #include <arch/system_info.h> 16a7c23bb4SPulkoMandy #include <boot/kernel_args.h> 17a7c23bb4SPulkoMandy 18a7c23bb4SPulkoMandy 19a7c23bb4SPulkoMandy static uint64 sCPUClockFrequency; 20a7c23bb4SPulkoMandy static uint64 sBusClockFrequency; 21a7c23bb4SPulkoMandy static uint16 sCPURevision; 22a7c23bb4SPulkoMandy 23a7c23bb4SPulkoMandy 24a7c23bb4SPulkoMandy void arch_fill_topology_node(cpu_topology_node_info * node,int32 cpu)25a7c23bb4SPulkoMandyarch_fill_topology_node(cpu_topology_node_info* node, int32 cpu) 26a7c23bb4SPulkoMandy { 27a7c23bb4SPulkoMandy } 28a7c23bb4SPulkoMandy 29a7c23bb4SPulkoMandy 30a7c23bb4SPulkoMandy status_t arch_system_info_init(struct kernel_args * args)31a7c23bb4SPulkoMandyarch_system_info_init(struct kernel_args *args) 32a7c23bb4SPulkoMandy { 33a7c23bb4SPulkoMandy return B_OK; 34a7c23bb4SPulkoMandy } 35a7c23bb4SPulkoMandy 36*22fdfc44SJérôme Duval 37*22fdfc44SJérôme Duval status_t arch_get_frequency(uint64 * frequency,int32 cpu)38*22fdfc44SJérôme Duvalarch_get_frequency(uint64 *frequency, int32 cpu) 39*22fdfc44SJérôme Duval { 40*22fdfc44SJérôme Duval *frequency = sCPUClockFrequency; 41*22fdfc44SJérôme Duval return B_OK; 42*22fdfc44SJérôme Duval } 43