1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef INTEL_CONTEXT_PARAM_H 7 #define INTEL_CONTEXT_PARAM_H 8 9 #include <linux/types.h> 10 11 #include "intel_context.h" 12 13 int intel_context_set_ring_size(struct intel_context *ce, long sz); 14 long intel_context_get_ring_size(struct intel_context *ce); 15 16 static inline int 17 intel_context_set_watchdog_us(struct intel_context *ce, u64 timeout_us) 18 { 19 ce->watchdog.timeout_us = timeout_us; 20 return 0; 21 } 22 23 #endif /* INTEL_CONTEXT_PARAM_H */ 24