1*91f16700Schasinglulu /* 2*91f16700Schasinglulu * Copyright (c) 2019, NVIDIA Corporation. All rights reserved. 3*91f16700Schasinglulu * 4*91f16700Schasinglulu * SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu */ 6*91f16700Schasinglulu 7*91f16700Schasinglulu #ifndef SPE_H 8*91f16700Schasinglulu #define SPE_H 9*91f16700Schasinglulu 10*91f16700Schasinglulu #include <stdint.h> 11*91f16700Schasinglulu 12*91f16700Schasinglulu #include <drivers/console.h> 13*91f16700Schasinglulu 14*91f16700Schasinglulu /* 15*91f16700Schasinglulu * Initialize a new spe console instance and register it with the console 16*91f16700Schasinglulu * framework. The |console| pointer must point to storage that will be valid 17*91f16700Schasinglulu * for the lifetime of the console, such as a global or static local variable. 18*91f16700Schasinglulu * Its contents will be reinitialized from scratch. 19*91f16700Schasinglulu */ 20*91f16700Schasinglulu int console_spe_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, 21*91f16700Schasinglulu console_t *console); 22*91f16700Schasinglulu 23*91f16700Schasinglulu #endif /* SPE_H */ 24