Subversion Repositories HelenOS

Rev

Rev 1789 | Rev 1881 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1789 Rev 1790
Line 44... Line 44...
44
 
44
 
45
/** OpenFirmware command structure
45
/** OpenFirmware command structure
46
 *
46
 *
47
 */
47
 */
48
typedef struct {
48
typedef struct {
49
    const char *service;        /**< Command name */
49
    ofw_arg_t service;      /**< Command name. */
50
    unsigned long nargs;        /**< Number of in arguments */
50
    ofw_arg_t nargs;        /**< Number of in arguments. */
51
    unsigned long nret;     /**< Number of out arguments */
51
    ofw_arg_t nret;         /**< Number of out arguments. */
52
    ofw_arg_t args[MAX_OFW_ARGS];   /**< List of arguments */
52
    ofw_arg_t args[MAX_OFW_ARGS];   /**< List of arguments. */
53
} ofw_args_t;
53
} ofw_args_t;
54
 
54
 
55
typedef struct {
55
typedef struct {
56
    void *start;
56
    void *start;
57
    unsigned int size;
57
    uint32_t size;
58
} memzone_t;
58
} memzone_t;
59
 
59
 
60
typedef struct {
60
typedef struct {
61
    unsigned int total;
61
    uint32_t total;
62
    unsigned int count;
62
    uint32_t count;
63
    memzone_t zones[MEMMAP_MAX_RECORDS];
63
    memzone_t zones[MEMMAP_MAX_RECORDS];
64
} memmap_t;
64
} memmap_t;
65
 
65
 
66
typedef struct {
66
typedef struct {
67
    void *addr;
67
    void *addr;
68
    unsigned int width;
68
    uint32_t width;
69
    unsigned int height;
69
    uint32_t height;
70
    unsigned int bpp;
70
    uint32_t bpp;
71
    unsigned int scanline;
71
    uint32_t scanline;
72
} screen_t;
72
} screen_t;
73
 
73
 
74
typedef struct {
74
typedef struct {
75
    void *addr;
75
    void *addr;
76
    unsigned int size;
76
    uint32_t size;
77
} keyboard_t;
77
} keyboard_t;
78
 
78
 
79
typedef struct {
79
typedef struct {
80
    unsigned int info;
80
    uint32_t info;
81
    unsigned int addr_hi;
81
    uint32_t addr_hi;
82
    unsigned int addr_lo;
82
    uint32_t addr_lo;
83
} pci_addr_t;
83
} pci_addr_t;
84
 
84
 
85
typedef struct {
85
typedef struct {
86
    pci_addr_t addr;
86
    pci_addr_t addr;
87
    unsigned int size_hi;
87
    uint32_t size_hi;
88
    unsigned int size_lo;
88
    uint32_t size_lo;
89
} pci_reg_t;
89
} pci_reg_t;
90
 
90
 
91
extern uintptr_t ofw_cif;
91
extern uintptr_t ofw_cif;
92
 
92
 
93
extern phandle ofw_aliases;
93
extern phandle ofw_aliases;