1126324Sjhb/*
2126324Sjhb* Copyright 2012-15 Advanced Micro Devices, Inc.
3126324Sjhb *
4126324Sjhb * Permission is hereby granted, free of charge, to any person obtaining a
5126324Sjhb * copy of this software and associated documentation files (the "Software"),
6126324Sjhb * to deal in the Software without restriction, including without limitation
7126324Sjhb * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8126324Sjhb * and/or sell copies of the Software, and to permit persons to whom the
9126324Sjhb * Software is furnished to do so, subject to the following conditions:
10126324Sjhb *
11126324Sjhb * The above copyright notice and this permission notice shall be included in
12126324Sjhb * all copies or substantial portions of the Software.
13126324Sjhb *
14126324Sjhb * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15126324Sjhb * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16126324Sjhb * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17126324Sjhb * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18126324Sjhb * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19126324Sjhb * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20126324Sjhb * OTHER DEALINGS IN THE SOFTWARE.
21126324Sjhb *
22126324Sjhb * Authors: AMD
23126324Sjhb *
24126324Sjhb */
25126324Sjhb
26126324Sjhb#ifndef __DC_RESOURCE_DCE112_H__
27126324Sjhb#define __DC_RESOURCE_DCE112_H__
28126324Sjhb
29126324Sjhb#include "core_types.h"
30126324Sjhb
31126324Sjhbstruct dc;
32126324Sjhbstruct resource_pool;
33126324Sjhb
34126324Sjhbstruct resource_pool *dce112_create_resource_pool(
35126324Sjhb	uint8_t num_virtual_links,
36126324Sjhb	struct dc *dc);
37126324Sjhb
38126324Sjhbenum dc_status dce112_validate_with_context(
39126324Sjhb		struct dc *dc,
40126324Sjhb		const struct dc_validation_set set[],
41126324Sjhb		int set_count,
42126324Sjhb		struct dc_state *context,
43126324Sjhb		struct dc_state *old_context);
44126324Sjhb
45126324Sjhbbool dce112_validate_bandwidth(
46126324Sjhb	struct dc *dc,
47126324Sjhb	struct dc_state *context,
48126324Sjhb	bool fast_validate);
49126324Sjhb
50126324Sjhbenum dc_status dce112_add_stream_to_ctx(
51126324Sjhb		struct dc *dc,
52126324Sjhb		struct dc_state *new_ctx,
53126324Sjhb		struct dc_stream_state *dc_stream);
54126324Sjhb
55126324Sjhb
56126324Sjhb#endif /* __DC_RESOURCE_DCE112_H__ */
57126324Sjhb
58126324Sjhb