1 /* 2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef KERNEL_ARCH_M68K_KERNEL_ARGS_H 6 #define KERNEL_ARCH_M68K_KERNEL_ARGS_H 7 8 #ifndef KERNEL_BOOT_KERNEL_ARGS_H 9 # error This file is included from <boot/kernel_args.h> only 10 #endif 11 12 #define _PACKED __attribute__((packed)) 13 14 //#define MAX_VIRTUAL_RANGES_TO_KEEP 32 15 16 // kernel args 17 typedef struct { 18 int cpu_type; 19 int fpu_type; 20 int mmu_type; 21 int platform; 22 bool has_lpstop; //XXX: use bit flags 23 // architecture specific 24 uint64 cpu_frequency; 25 uint64 bus_frequency; 26 uint64 time_base_frequency; 27 28 // page root table 29 uint32 phys_pgroot; 30 uint32 vir_pgroot; 31 //XXX: 32 addr_range page_table; // virtual address and size of the page table 33 addr_range exception_handlers; 34 addr_range framebuffer; // maps where the framebuffer is located, in physical memory 35 int screen_x, screen_y, screen_depth; 36 37 // The virtual ranges we want to keep in the kernel. E.g. those belonging 38 // to the Open Firmware. 39 // uint32 num_virtual_ranges_to_keep; 40 // addr_range virtual_ranges_to_keep[MAX_VIRTUAL_RANGES_TO_KEEP]; 41 } arch_kernel_args; 42 43 #endif /* KERNEL_ARCH_M68K_KERNEL_ARGS_H */ 44