10daf0113SChris Wilson /* 20daf0113SChris Wilson * Copyright © 2016 Intel Corporation 30daf0113SChris Wilson * 40daf0113SChris Wilson * Permission is hereby granted, free of charge, to any person obtaining a 50daf0113SChris Wilson * copy of this software and associated documentation files (the "Software"), 60daf0113SChris Wilson * to deal in the Software without restriction, including without limitation 70daf0113SChris Wilson * the rights to use, copy, modify, merge, publish, distribute, sublicense, 80daf0113SChris Wilson * and/or sell copies of the Software, and to permit persons to whom the 90daf0113SChris Wilson * Software is furnished to do so, subject to the following conditions: 100daf0113SChris Wilson * 110daf0113SChris Wilson * The above copyright notice and this permission notice (including the next 120daf0113SChris Wilson * paragraph) shall be included in all copies or substantial portions of the 130daf0113SChris Wilson * Software. 140daf0113SChris Wilson * 150daf0113SChris Wilson * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 160daf0113SChris Wilson * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 170daf0113SChris Wilson * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 180daf0113SChris Wilson * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 190daf0113SChris Wilson * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 200daf0113SChris Wilson * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 210daf0113SChris Wilson * IN THE SOFTWARE. 220daf0113SChris Wilson * 230daf0113SChris Wilson */ 240daf0113SChris Wilson 250daf0113SChris Wilson #ifndef __MOCK_REQUEST__ 260daf0113SChris Wilson #define __MOCK_REQUEST__ 270daf0113SChris Wilson 280daf0113SChris Wilson #include <linux/list.h> 290daf0113SChris Wilson 30e61e0f51SChris Wilson #include "../i915_request.h" 310daf0113SChris Wilson 32e61e0f51SChris Wilson struct i915_request * 33*ca883c30SChris Wilson mock_request(struct intel_context *ce, unsigned long delay); 340daf0113SChris Wilson 35e61e0f51SChris Wilson bool mock_cancel_request(struct i915_request *request); 36591c0fb8SChris Wilson 370daf0113SChris Wilson #endif /* !__MOCK_REQUEST__ */ 38