Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/machine_func.h

    reff1f033 ra71c158  
    4343
    4444#include <console/console.h>
    45 #include <typedefs.h>
     45#include <arch/types.h>
    4646#include <arch/exception.h>
    4747
     48#define MACHINE_GENFUNC machine_genfunc
     49
    4850struct arm_machine_ops {
    49         void (*machine_init)(void);
    50         void (*machine_timer_irq_start)(void);
    51         void (*machine_cpu_halt)(void);
    52         void (*machine_get_memory_extents)(uintptr_t *, uintptr_t *);
    53         void (*machine_irq_exception)(unsigned int, istate_t *);
    54         void (*machine_frame_init)(void);
    55         void (*machine_output_init)(void);
    56         void (*machine_input_init)(void);
    57         size_t (*machine_get_irq_count)(void);
    58         const char *(*machine_get_platform_name)(void);
     51        void            (*machine_init)(void);
     52        void            (*machine_timer_irq_start)(void);
     53        void            (*machine_cpu_halt)(void);
     54        uintptr_t       (*machine_get_memory_size)(void);
     55        void            (*machine_irq_exception)(int, istate_t*);
     56        void            (*machine_frame_init)(void);
     57        void            (*machine_output_init)(void);
     58        void            (*machine_input_init)(void);
    5959};
    6060
    61 /** Pointer to arm_machine_ops structure being used. */
    62 extern struct arm_machine_ops *machine_ops;
     61extern struct arm_machine_ops machine_ops;
    6362
    64 /** Initialize machine_ops pointer. */
    65 extern void machine_ops_init(void);
    6663
    6764/** Maps HW devices to the kernel address space using #hw_map. */
     
    7673extern void machine_cpu_halt(void);
    7774
    78 /** Get extents of available memory.
     75
     76/** Returns size of available memory.
    7977 *
    80  * @param start         Place to store memory start address.
    81  * @param size          Place to store memory size.
     78 *  @return Size of available memory.
    8279 */
    83 extern void machine_get_memory_extents(uintptr_t *start, uintptr_t *size);
     80extern uintptr_t machine_get_memory_size(void);
     81
    8482
    8583/** Interrupt exception handler.
     
    8886 * @param istate Saved processor state.
    8987 */
    90 extern void machine_irq_exception(unsigned int exc_no, istate_t *istate);
     88extern void machine_irq_exception(int exc_no, istate_t *istate);
    9189
    9290
     
    106104extern void machine_input_init(void);
    107105
    108 extern size_t machine_get_irq_count(void);
    109 
     106extern void machine_genfunc(void);
    110107#endif
    111108
Note: See TracChangeset for help on using the changeset viewer.