1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef _XE_TILE_H_ 7 #define _XE_TILE_H_ 8 9 #include "xe_device_types.h" 10 11 struct xe_tile; 12 13 int xe_tile_init_early(struct xe_tile *tile, struct xe_device *xe, u8 id); 14 int xe_tile_init_noalloc(struct xe_tile *tile); 15 int xe_tile_init(struct xe_tile *tile); 16 17 int xe_tile_alloc_vram(struct xe_tile *tile); 18 19 void xe_tile_migrate_wait(struct xe_tile *tile); 20 21 static inline bool xe_tile_is_root(struct xe_tile *tile) 22 { 23 return tile->id == 0; 24 } 25 26 #endif 27