nomali.h (10915:71ace17ccb3d) nomali.h (11313:89fd4a775287)
1/*
1/*
2 * Copyright (c) 2014-2015 ARM Limited
2 * Copyright (c) 2014-2016 ARM Limited
3 * All rights reserved
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *

--- 69 unchanged lines hidden (view full) ---

80
81enum {
82 /** Model is signalling an interrupt */
83 NOMALI_CALLBACK_INT = 0,
84 /** Model read physical memory callback */
85 NOMALI_CALLBACK_MEMREAD,
86 /** Model write physical memory callback */
87 NOMALI_CALLBACK_MEMWRITE,
3 * All rights reserved
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *

--- 69 unchanged lines hidden (view full) ---

80
81enum {
82 /** Model is signalling an interrupt */
83 NOMALI_CALLBACK_INT = 0,
84 /** Model read physical memory callback */
85 NOMALI_CALLBACK_MEMREAD,
86 /** Model write physical memory callback */
87 NOMALI_CALLBACK_MEMWRITE,
88 /** Model reset callback */
89 NOMALI_CALLBACK_RESET,
88
89 /** Number of defined callbacks */
90 NOMALI_CALLBACK_NUM_CALLBACKS
91};
92typedef int nomali_callback_type_t;
93
94enum {
95 NOMALI_INT_GPU = 0,

--- 24 unchanged lines hidden (view full) ---

120 * @param set Non-zero if raising an interrupt, zero if clearing.
121 */
122 void (*interrupt)(nomali_handle_t h, void *usr,
123 nomali_int_t intno, int set);
124 void (*memwrite)(nomali_handle_t h, void *usr,
125 nomali_addr_t addr, uint32_t value);
126 uint32_t (*memread)(nomali_handle_t h, void *usr,
127 nomali_addr_t addr);
90
91 /** Number of defined callbacks */
92 NOMALI_CALLBACK_NUM_CALLBACKS
93};
94typedef int nomali_callback_type_t;
95
96enum {
97 NOMALI_INT_GPU = 0,

--- 24 unchanged lines hidden (view full) ---

122 * @param set Non-zero if raising an interrupt, zero if clearing.
123 */
124 void (*interrupt)(nomali_handle_t h, void *usr,
125 nomali_int_t intno, int set);
126 void (*memwrite)(nomali_handle_t h, void *usr,
127 nomali_addr_t addr, uint32_t value);
128 uint32_t (*memread)(nomali_handle_t h, void *usr,
129 nomali_addr_t addr);
130 void (*reset)(nomali_handle_t h, void *usr);
128 } func;
129} nomali_callback_t;
130
131/**
132 * GPU information struct. See nomali_get_info().
133 */
134typedef struct {
135 /** Size (in bytes) of the register window used by the GPU */

--- 198 unchanged lines hidden ---
131 } func;
132} nomali_callback_t;
133
134/**
135 * GPU information struct. See nomali_get_info().
136 */
137typedef struct {
138 /** Size (in bytes) of the register window used by the GPU */

--- 198 unchanged lines hidden ---