Changeset c621f4aa in mainline for uspace/app/sbi/src/mytypes.h


Ignore:
Timestamp:
2010-07-25T10:11:13Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
377cce8
Parents:
24a2517 (diff), a2da43c (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.
Message:

Merge with mainline.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/mytypes.h

    r24a2517 rc621f4aa  
    11/*
    2  * Copyright (c) 2006 Martin Decky
     2 * Copyright (c) 2010 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef BOOT_ppc32_ASM_H_
    30 #define BOOT_ppc32_ASM_H_
     29#ifndef MYTYPES_H_
     30#define MYTYPES_H_
    3131
    32 #define PAGE_WIDTH  12
    33 #define PAGE_SIZE   (1 << PAGE_WIDTH)
     32/** Boolean type compatible with builtin C 'boolean' operators. */
     33typedef enum {
     34        b_false = 0,
     35        b_true = 1
     36} bool_t;
    3437
    35 #define TRANS_SIZE   1024
    36 #define BOOT_OFFSET  0x8000
     38/** Node state for walks. */
     39typedef enum {
     40        ws_unvisited,
     41        ws_active,
     42        ws_visited
     43} walk_state_t;
    3744
    38 #define BALLOC_MAX_SIZE  (128 * 1024)
     45/** Static vs. nonstatic */
     46typedef enum {
     47        sn_nonstatic,
     48        sn_static
     49} statns_t;
    3950
    40 #ifndef __ASM__
     51/** Error return codes. */
     52#include <errno.h>
     53#define EOK 0
    4154
    42 #include "types.h"
    43 #include "main.h"
    44 #include "ofwarch.h"
    45 
    46 #define PA2KA(x)  (((uintptr_t) (x)) + 0x80000000)
    47 
    48 extern uint8_t balloc_base[BALLOC_MAX_SIZE];
    49 extern uintptr_t trans[TRANS_SIZE];
    50 
    51 extern void halt();
    52 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size,
    53     uintptr_t trans[], unsigned int kernel_size, void *real_mode) __attribute__((noreturn));
    54 extern void real_mode();
    55 
    56 #else
    57 
    58 #define PA2KA(x)  ((x) + 0x80000000)
     55#include "bigint_t.h"
     56#include "builtin_t.h"
     57#include "cspan_t.h"
     58#include "input_t.h"
     59#include "intmap_t.h"
     60#include "lex_t.h"
     61#include "list_t.h"
     62#include "parse_t.h"
     63#include "rdata_t.h"
     64#include "run_t.h"
     65#include "stree_t.h"
     66#include "strtab_t.h"
     67#include "stype_t.h"
     68#include "tdata_t.h"
    5969
    6070#endif
    61 
    62 #endif
Note: See TracChangeset for help on using the changeset viewer.