[521] | 1 | ///////////////////////////////////////////////////////////////////////////// |
---|
[258] | 2 | // File : stdio.h |
---|
| 3 | // Date : 01/04/2010 |
---|
| 4 | // Author : alain greiner & Joel Porquet |
---|
| 5 | // Copyright (c) UPMC-LIP6 |
---|
[521] | 6 | ///////////////////////////////////////////////////////////////////////////// |
---|
[390] | 7 | // The stdio.c and stdio.h files are part of the GIET_VM nano-kernel. |
---|
| 8 | // This library contains all user-level functions that contain a system call |
---|
| 9 | // to access protected or shared ressources. |
---|
[521] | 10 | ///////////////////////////////////////////////////////////////////////////// |
---|
[258] | 11 | |
---|
| 12 | #ifndef _STDIO_H |
---|
| 13 | #define _STDIO_H |
---|
| 14 | |
---|
[663] | 15 | #include "giet_fat32/fat32_shared.h" |
---|
[709] | 16 | #include "giet_common/mips32_registers.h" |
---|
[663] | 17 | |
---|
[258] | 18 | // These define must be synchronised with |
---|
| 19 | // the _syscall_vector defined in file sys_handler.c |
---|
| 20 | |
---|
[521] | 21 | #define SYSCALL_PROC_XYP 0x00 |
---|
| 22 | #define SYSCALL_PROC_TIME 0x01 |
---|
[709] | 23 | #define SYSCALL_PROCS_NUMBER 0x02 |
---|
| 24 | #define SYSCALL_GET_XY 0x03 |
---|
| 25 | // 0x04 |
---|
[713] | 26 | #define SYSCALL_VOBJ_GET_VBASE 0x05 |
---|
| 27 | #define SYSCALL_VOBJ_GET_LENGTH 0x06 |
---|
[521] | 28 | #define SYSCALL_HEAP_INFO 0x07 |
---|
[713] | 29 | #define SYSCALL_FBF_SIZE 0x08 |
---|
| 30 | #define SYSCALL_FBF_ALLOC 0x09 |
---|
[521] | 31 | #define SYSCALL_FBF_CMA_ALLOC 0x0A |
---|
[614] | 32 | #define SYSCALL_FBF_CMA_INIT_BUF 0x0B |
---|
| 33 | #define SYSCALL_FBF_CMA_START 0x0C |
---|
| 34 | #define SYSCALL_FBF_CMA_DISPLAY 0x0D |
---|
| 35 | #define SYSCALL_FBF_CMA_STOP 0x0E |
---|
[722] | 36 | #define SYSCALL_FBF_CMA_CHECK 0x0F |
---|
[258] | 37 | |
---|
[709] | 38 | #define SYSCALL_APPS_STATUS 0x10 |
---|
[614] | 39 | #define SYSCALL_FBF_SYNC_WRITE 0x11 |
---|
| 40 | #define SYSCALL_FBF_SYNC_READ 0x12 |
---|
[709] | 41 | // 0x13 |
---|
[521] | 42 | #define SYSCALL_TIM_ALLOC 0x14 |
---|
| 43 | #define SYSCALL_TIM_START 0x15 |
---|
| 44 | #define SYSCALL_TIM_STOP 0x16 |
---|
[628] | 45 | #define SYSCALL_KILL_APP 0x17 |
---|
| 46 | #define SYSCALL_EXEC_APP 0x18 |
---|
[709] | 47 | // 0x19 |
---|
| 48 | #define SYSCALL_PTHREAD_CONTROL 0x1A |
---|
| 49 | #define SYSCALL_PTHREAD_YIELD 0x1B |
---|
| 50 | #define SYSCALL_PTHREAD_KILL 0x1C |
---|
| 51 | #define SYSCALL_PTHREAD_CREATE 0x1D |
---|
| 52 | #define SYSCALL_PTHREAD_JOIN 0x1E |
---|
| 53 | #define SYSCALL_PTHREAD_EXIT 0x1F |
---|
[258] | 54 | |
---|
[521] | 55 | #define SYSCALL_FAT_OPEN 0x20 |
---|
| 56 | #define SYSCALL_FAT_READ 0x21 |
---|
| 57 | #define SYSCALL_FAT_WRITE 0x22 |
---|
| 58 | #define SYSCALL_FAT_LSEEK 0x23 |
---|
[588] | 59 | #define SYSCALL_FAT_FINFO 0x24 |
---|
[521] | 60 | #define SYSCALL_FAT_CLOSE 0x25 |
---|
[588] | 61 | #define SYSCALL_FAT_REMOVE 0x26 |
---|
| 62 | #define SYSCALL_FAT_RENAME 0x27 |
---|
| 63 | #define SYSCALL_FAT_MKDIR 0x28 |
---|
[661] | 64 | #define SYSCALL_FAT_OPENDIR 0x29 |
---|
| 65 | #define SYSCALL_FAT_CLOSEDIR 0x2A |
---|
| 66 | #define SYSCALL_FAT_READDIR 0x2B |
---|
| 67 | // 0x2C |
---|
[521] | 68 | // 0x2D |
---|
| 69 | // 0x2E |
---|
| 70 | // 0x2F |
---|
[258] | 71 | |
---|
[521] | 72 | #define SYSCALL_NIC_ALLOC 0x30 |
---|
| 73 | #define SYSCALL_NIC_START 0x31 |
---|
| 74 | #define SYSCALL_NIC_MOVE 0x32 |
---|
| 75 | #define SYSCALL_NIC_STOP 0x33 |
---|
| 76 | #define SYSCALL_NIC_STATS 0x34 |
---|
| 77 | #define SYSCALL_NIC_CLEAR 0x35 |
---|
[709] | 78 | #define SYSCALL_TTY_WRITE 0x36 |
---|
| 79 | #define SYSCALL_TTY_READ 0x37 |
---|
| 80 | #define SYSCALL_TTY_ALLOC 0x38 |
---|
[558] | 81 | // 0x39 |
---|
| 82 | // 0x3A |
---|
[521] | 83 | #define SYSCALL_COPROC_COMPLETED 0x3B |
---|
| 84 | #define SYSCALL_COPROC_ALLOC 0x3C |
---|
| 85 | #define SYSCALL_COPROC_CHANNEL_INIT 0x3D |
---|
[558] | 86 | #define SYSCALL_COPROC_RUN 0x3E |
---|
| 87 | #define SYSCALL_COPROC_RELEASE 0x3F |
---|
[450] | 88 | |
---|
[521] | 89 | //////////////////////////////////////////////////////////////////////////// |
---|
[713] | 90 | // Define the error codes for the syscall handlers |
---|
| 91 | // These define must be synchronized with values in the sys_handler.h file |
---|
| 92 | //////////////////////////////////////////////////////////////////////////// |
---|
| 93 | |
---|
| 94 | #define SYSCALL_OK ( 0 ) |
---|
| 95 | #define SYSCALL_VSPACE_NOT_FOUND (-1 ) |
---|
| 96 | #define SYSCALL_THREAD_NOT_FOUND (-2 ) |
---|
| 97 | #define SYSCALL_NOT_IN_SAME_VSPACE (-3 ) |
---|
| 98 | #define SYSCALL_UNCOHERENT_THREAD_CONTEXT (-4 ) |
---|
| 99 | #define SYSCALL_ILLEGAL_THREAD_COMMAND_TYPE (-5 ) |
---|
| 100 | #define SYSCALL_CANNOT_LOAD_DATA_SEGMENT (-6 ) |
---|
| 101 | #define SYSCALL_THREAD_ALREADY_ACTIVE (-7 ) |
---|
| 102 | #define SYSCALL_MAIN_NOT_FOUND (-8 ) |
---|
| 103 | #define SYSCALL_APPLI_CANNOT_BE_KILLED (-9 ) |
---|
| 104 | #define SYSCALL_PTHREAD_ARGUMENT_NOT_SUPPORTED (-10) |
---|
| 105 | #define SYSCALL_ILLEGAL_CLUSTER_COORDINATES (-11) |
---|
| 106 | #define SYSCALL_VSEG_NOT_FOUND (-12) |
---|
| 107 | #define SYSCALL_UNDEFINED_SYSTEM_CALL (-13) |
---|
| 108 | #define SYSCALL_COPROCESSOR_NOT_FOUND (-14) |
---|
| 109 | #define SYSCALL_COPROCESSOR_ILLEGAL_MODE (-15) |
---|
| 110 | #define SYSCALL_COPROCESSOR_NON_ALLOCATED (-16) |
---|
| 111 | #define SYSCALL_CHANNEL_ALREADY_ALLOCATED (-17) |
---|
| 112 | #define SYSCALL_NO_CHANNEL_AVAILABLE (-18) |
---|
| 113 | #define SYSCALL_CHANNEL_NON_ALLOCATED (-19) |
---|
| 114 | #define SYSCALL_ILLEGAL_XY_ARGUMENTS (-20) |
---|
| 115 | #define SYSCALL_OUT_OF_KERNEL_HEAP_MEMORY (-21) |
---|
| 116 | #define SYSCALL_ADDRESS_NON_ALIGNED (-22) |
---|
| 117 | #define SYSCALL_ADDRESS_NON_USER_ACCESSIBLE (-23) |
---|
| 118 | #define SYSCALL_MISSING_INITIALISATION (-24) |
---|
| 119 | #define SYSCALL_SHARED_PERIPHERAL_BUSY (-25) |
---|
| 120 | |
---|
| 121 | //////////////////////////////////////////////////////////////////////////// |
---|
| 122 | // Command values for the giet_pthread_control() syscall |
---|
| 123 | // These define must be synchronized with values in the sys_handler.h file |
---|
| 124 | //////////////////////////////////////////////////////////////////////////// |
---|
| 125 | |
---|
| 126 | #define THREAD_CMD_PAUSE 0 |
---|
| 127 | #define THREAD_CMD_RESUME 1 |
---|
| 128 | #define THREAD_CMD_CONTEXT 2 |
---|
| 129 | |
---|
| 130 | //////////////////////////////////////////////////////////////////////////// |
---|
[368] | 131 | // NULL pointer definition |
---|
[521] | 132 | //////////////////////////////////////////////////////////////////////////// |
---|
[368] | 133 | |
---|
| 134 | #define NULL (void *)0 |
---|
| 135 | |
---|
[521] | 136 | //////////////////////////////////////////////////////////////////////////// |
---|
[258] | 137 | // This generic C function is used to implement all system calls. |
---|
| 138 | // It writes the system call arguments in the proper registers, |
---|
| 139 | // and tells GCC what has been modified by system call execution. |
---|
[438] | 140 | // Returns -1 to signal an error. |
---|
[521] | 141 | //////////////////////////////////////////////////////////////////////////// |
---|
[258] | 142 | static inline int sys_call( int call_no, |
---|
| 143 | int arg_0, |
---|
| 144 | int arg_1, |
---|
| 145 | int arg_2, |
---|
| 146 | int arg_3 ) |
---|
| 147 | { |
---|
| 148 | register int reg_no_and_output asm("v0") = call_no; |
---|
| 149 | register int reg_a0 asm("a0") = arg_0; |
---|
| 150 | register int reg_a1 asm("a1") = arg_1; |
---|
| 151 | register int reg_a2 asm("a2") = arg_2; |
---|
| 152 | register int reg_a3 asm("a3") = arg_3; |
---|
| 153 | |
---|
| 154 | asm volatile( |
---|
| 155 | "syscall" |
---|
[345] | 156 | : "+r" (reg_no_and_output), /* input/output argument */ |
---|
| 157 | "+r" (reg_a0), |
---|
| 158 | "+r" (reg_a1), |
---|
| 159 | "+r" (reg_a2), |
---|
| 160 | "+r" (reg_a3), |
---|
| 161 | "+r" (reg_no_and_output) |
---|
| 162 | : /* input arguments */ |
---|
[258] | 163 | : "memory", |
---|
| 164 | /* These persistant registers will be saved on the stack by the |
---|
| 165 | * compiler only if they contain relevant data. */ |
---|
| 166 | "at", |
---|
| 167 | "v1", |
---|
| 168 | "ra", |
---|
| 169 | "t0", |
---|
| 170 | "t1", |
---|
| 171 | "t2", |
---|
| 172 | "t3", |
---|
| 173 | "t4", |
---|
| 174 | "t5", |
---|
| 175 | "t6", |
---|
| 176 | "t7", |
---|
| 177 | "t8", |
---|
| 178 | "t9" |
---|
| 179 | ); |
---|
[345] | 180 | return (volatile int)reg_no_and_output; |
---|
[258] | 181 | } |
---|
| 182 | |
---|
| 183 | ////////////////////////////////////////////////////////////////////////// |
---|
[295] | 184 | // MIPS32 related system calls |
---|
| 185 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 186 | |
---|
[431] | 187 | extern void giet_proc_xyp( unsigned int* cluster_x, |
---|
| 188 | unsigned int* cluster_y, |
---|
| 189 | unsigned int* lpid ); |
---|
[382] | 190 | |
---|
[438] | 191 | extern unsigned int giet_proctime(); |
---|
| 192 | |
---|
| 193 | extern unsigned int giet_rand(); |
---|
| 194 | |
---|
[382] | 195 | ////////////////////////////////////////////////////////////////////////// |
---|
[709] | 196 | // Threads related system calls |
---|
[382] | 197 | ////////////////////////////////////////////////////////////////////////// |
---|
| 198 | |
---|
[709] | 199 | typedef unsigned int pthread_t; |
---|
[382] | 200 | |
---|
[709] | 201 | typedef unsigned int pthread_attr_t; |
---|
[438] | 202 | |
---|
[709] | 203 | extern int giet_pthread_create( pthread_t* trdid, |
---|
| 204 | pthread_attr_t* attr, |
---|
| 205 | void* function, |
---|
| 206 | void* ptr ); |
---|
[438] | 207 | |
---|
[709] | 208 | extern void giet_pthread_exit( void* string ); |
---|
[647] | 209 | |
---|
[709] | 210 | extern int giet_pthread_join( pthread_t trdid, |
---|
| 211 | void** ptr ); |
---|
[647] | 212 | |
---|
[709] | 213 | extern int giet_pthread_kill( pthread_t thread_id, |
---|
| 214 | int signal ); |
---|
[647] | 215 | |
---|
[709] | 216 | extern void giet_pthread_yield(); |
---|
[689] | 217 | |
---|
[709] | 218 | extern void giet_pthread_assert( unsigned int condition, |
---|
| 219 | char* string ); |
---|
| 220 | |
---|
[713] | 221 | extern void giet_pthread_control( unsigned int command, |
---|
| 222 | char* vspace_name, |
---|
| 223 | char* thread_name ); |
---|
[709] | 224 | |
---|
[382] | 225 | ////////////////////////////////////////////////////////////////////////// |
---|
[647] | 226 | // Application related system calls |
---|
| 227 | ////////////////////////////////////////////////////////////////////////// |
---|
| 228 | |
---|
| 229 | extern int giet_kill_application( char* name ); |
---|
| 230 | |
---|
| 231 | extern int giet_exec_application( char* name ); |
---|
| 232 | |
---|
[713] | 233 | extern void giet_applications_status( char* name ); |
---|
[709] | 234 | |
---|
[647] | 235 | ////////////////////////////////////////////////////////////////////////// |
---|
[521] | 236 | // Coprocessors related system calls |
---|
| 237 | ////////////////////////////////////////////////////////////////////////// |
---|
| 238 | |
---|
| 239 | // this structure is used by the giet_coproc_channel_init() |
---|
| 240 | // system call to specify the communication channel parameters. |
---|
| 241 | typedef struct giet_coproc_channel |
---|
| 242 | { |
---|
| 243 | unsigned int channel_mode; // MWMR / DMA_IRQ / DMA_NO_IRQ |
---|
| 244 | unsigned int buffer_size; // memory buffer size |
---|
| 245 | unsigned int buffer_vaddr; // memory buffer virtual address |
---|
[735] | 246 | unsigned int status_vaddr; // MWMR status virtual address (12 bytes) |
---|
| 247 | unsigned int lock_vaddr; // MWMR lock virtual address (64 bytes) |
---|
[521] | 248 | } giet_coproc_channel_t; |
---|
| 249 | |
---|
[735] | 250 | extern void giet_coproc_alloc( unsigned int cluster_xy, |
---|
| 251 | unsigned int coproc_type, |
---|
[558] | 252 | unsigned int* coproc_info ); |
---|
[521] | 253 | |
---|
[735] | 254 | extern void giet_coproc_release( unsigned int cluster_xy, |
---|
| 255 | unsigned int coproc_type ); |
---|
[521] | 256 | |
---|
[735] | 257 | extern void giet_coproc_channel_init( unsigned int cluster_xy, |
---|
| 258 | unsigned int coproc_type, |
---|
| 259 | unsigned int channel, |
---|
[521] | 260 | giet_coproc_channel_t* desc ); |
---|
| 261 | |
---|
[735] | 262 | extern void giet_coproc_run( unsigned int cluster_xy, |
---|
| 263 | unsigned int coproc_type ); |
---|
[521] | 264 | |
---|
[735] | 265 | extern void giet_coproc_completed( unsigned int cluster_xy, |
---|
| 266 | unsigned int coproc_type ); |
---|
[521] | 267 | |
---|
| 268 | ////////////////////////////////////////////////////////////////////////// |
---|
[295] | 269 | // TTY device related system calls |
---|
| 270 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 271 | |
---|
[671] | 272 | extern void giet_tty_alloc( unsigned int shared ); |
---|
[438] | 273 | |
---|
[295] | 274 | extern void giet_tty_printf( char* format, ... ); |
---|
[258] | 275 | |
---|
[295] | 276 | extern void giet_tty_getc( char* byte ); |
---|
[258] | 277 | |
---|
[295] | 278 | extern void giet_tty_gets( char* buf, unsigned int bufsize ); |
---|
[258] | 279 | |
---|
[295] | 280 | extern void giet_tty_getw( unsigned int* val ); |
---|
[258] | 281 | |
---|
[295] | 282 | ////////////////////////////////////////////////////////////////////////// |
---|
| 283 | // TIMER device related system calls |
---|
| 284 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 285 | |
---|
[438] | 286 | extern void giet_timer_alloc(); |
---|
[258] | 287 | |
---|
[438] | 288 | extern void giet_timer_start( unsigned int period ); |
---|
| 289 | |
---|
[295] | 290 | extern void giet_timer_stop(); |
---|
[258] | 291 | |
---|
| 292 | ////////////////////////////////////////////////////////////////////////// |
---|
[295] | 293 | // Frame buffer device related system calls |
---|
| 294 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 295 | |
---|
[713] | 296 | extern void giet_fbf_size(); |
---|
| 297 | |
---|
| 298 | extern void giet_fbf_alloc(); |
---|
| 299 | |
---|
[722] | 300 | extern void giet_fbf_cma_alloc( unsigned int nbufs ); |
---|
[258] | 301 | |
---|
[722] | 302 | extern void giet_fbf_cma_init_buf( unsigned int index, |
---|
| 303 | void* buf_vbase, |
---|
| 304 | void* sts_vaddr ); |
---|
[258] | 305 | |
---|
[722] | 306 | extern void giet_fbf_cma_start(); |
---|
[614] | 307 | |
---|
[722] | 308 | extern void giet_fbf_cma_check( unsigned int buffer ); |
---|
| 309 | |
---|
[438] | 310 | extern void giet_fbf_cma_display( unsigned int buffer ); |
---|
[258] | 311 | |
---|
[438] | 312 | extern void giet_fbf_cma_stop(); |
---|
[258] | 313 | |
---|
[438] | 314 | extern void giet_fbf_sync_read( unsigned int offset, |
---|
| 315 | void* buffer, |
---|
| 316 | unsigned int length ); |
---|
[258] | 317 | |
---|
[438] | 318 | extern void giet_fbf_sync_write( unsigned int offset, |
---|
| 319 | void* buffer, |
---|
| 320 | unsigned int length ); |
---|
| 321 | |
---|
[258] | 322 | ////////////////////////////////////////////////////////////////////////// |
---|
[295] | 323 | // NIC related system calls |
---|
| 324 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 325 | |
---|
[709] | 326 | extern void giet_nic_rx_alloc( unsigned int xmax, unsigned int ymax ); |
---|
[258] | 327 | |
---|
[709] | 328 | extern void giet_nic_tx_alloc( unsigned int xmax, unsigned int ymax ); |
---|
[258] | 329 | |
---|
[709] | 330 | extern void giet_nic_rx_start(); |
---|
[438] | 331 | |
---|
[709] | 332 | extern void giet_nic_tx_start(); |
---|
[450] | 333 | |
---|
[709] | 334 | extern void giet_nic_rx_move( void* buffer ); |
---|
[450] | 335 | |
---|
[709] | 336 | extern void giet_nic_tx_move( void* buffer ); |
---|
[450] | 337 | |
---|
[709] | 338 | extern void giet_nic_rx_stop(); |
---|
[450] | 339 | |
---|
[709] | 340 | extern void giet_nic_tx_stop(); |
---|
[450] | 341 | |
---|
[709] | 342 | extern void giet_nic_rx_stats(); |
---|
[461] | 343 | |
---|
[709] | 344 | extern void giet_nic_tx_stats(); |
---|
[461] | 345 | |
---|
[709] | 346 | extern void giet_nic_rx_clear(); |
---|
[468] | 347 | |
---|
[709] | 348 | extern void giet_nic_tx_clear(); |
---|
[468] | 349 | |
---|
[258] | 350 | ////////////////////////////////////////////////////////////////////////// |
---|
[295] | 351 | // FAT related system calls |
---|
| 352 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 353 | |
---|
[588] | 354 | extern int giet_fat_open( char* pathname, |
---|
| 355 | unsigned int flags ); |
---|
[258] | 356 | |
---|
[588] | 357 | extern int giet_fat_close( unsigned int fd_id ); |
---|
[258] | 358 | |
---|
[659] | 359 | extern int giet_fat_file_info( unsigned int fd_id, |
---|
| 360 | fat_file_info_t* info ); |
---|
[258] | 361 | |
---|
[588] | 362 | extern int giet_fat_read( unsigned int fd_id, |
---|
| 363 | void* buffer, |
---|
| 364 | unsigned int count ); |
---|
[258] | 365 | |
---|
[588] | 366 | extern int giet_fat_write( unsigned int fd, |
---|
| 367 | void* buffer, |
---|
| 368 | unsigned int count ); |
---|
[260] | 369 | |
---|
[588] | 370 | extern int giet_fat_lseek( unsigned int fd, |
---|
| 371 | unsigned int offset, |
---|
| 372 | unsigned int whence ); |
---|
[258] | 373 | |
---|
[588] | 374 | extern int giet_fat_remove( char* pathname, |
---|
| 375 | unsigned int should_be_dir ); |
---|
| 376 | |
---|
| 377 | extern int giet_fat_rename( char* old_path, |
---|
| 378 | char* new_path ); |
---|
| 379 | |
---|
| 380 | extern int giet_fat_mkdir( char* pathname ); |
---|
| 381 | |
---|
[659] | 382 | extern int giet_fat_opendir( char* pathname ); |
---|
| 383 | |
---|
| 384 | extern int giet_fat_closedir( unsigned int fd_id ); |
---|
| 385 | |
---|
| 386 | extern int giet_fat_readdir( unsigned int fd_id, |
---|
| 387 | fat_dirent_t* entry ); |
---|
| 388 | |
---|
[258] | 389 | ////////////////////////////////////////////////////////////////////////// |
---|
[382] | 390 | // Miscelaneous system calls |
---|
| 391 | ////////////////////////////////////////////////////////////////////////// |
---|
[258] | 392 | |
---|
[501] | 393 | extern void giet_procs_number( unsigned int* x_size, |
---|
| 394 | unsigned int* y_size, |
---|
| 395 | unsigned int* nprocs ); |
---|
[438] | 396 | |
---|
[295] | 397 | extern void giet_vobj_get_vbase( char* vspace_name, |
---|
| 398 | char* vobj_name, |
---|
| 399 | unsigned int* vobj_vaddr); |
---|
[258] | 400 | |
---|
[438] | 401 | extern void giet_vobj_get_length( char* vspace_name, |
---|
| 402 | char* vobj_name, |
---|
| 403 | unsigned int* vobj_vaddr); |
---|
[295] | 404 | |
---|
| 405 | extern void giet_heap_info( unsigned int* vaddr, |
---|
[368] | 406 | unsigned int* length, |
---|
| 407 | unsigned int x, |
---|
| 408 | unsigned int y ); |
---|
[295] | 409 | |
---|
[390] | 410 | extern void giet_get_xy( void* ptr, |
---|
| 411 | unsigned int* px, |
---|
| 412 | unsigned int* py ); |
---|
| 413 | |
---|
[258] | 414 | #endif |
---|
| 415 | |
---|
| 416 | // Local Variables: |
---|
| 417 | // tab-width: 4 |
---|
| 418 | // c-basic-offset: 4 |
---|
| 419 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 420 | // indent-tabs-mode: nil |
---|
| 421 | // End: |
---|
| 422 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 423 | |
---|