11.1Sriastrad/*	$NetBSD: pppcielanes.h,v 1.2 2021/12/18 23:45:26 riastradh Exp $	*/
21.1Sriastrad
31.1Sriastrad/*
41.1Sriastrad * Copyright 2015 Advanced Micro Devices, Inc.
51.1Sriastrad *
61.1Sriastrad * Permission is hereby granted, free of charge, to any person obtaining a
71.1Sriastrad * copy of this software and associated documentation files (the "Software"),
81.1Sriastrad * to deal in the Software without restriction, including without limitation
91.1Sriastrad * the rights to use, copy, modify, merge, publish, distribute, sublicense,
101.1Sriastrad * and/or sell copies of the Software, and to permit persons to whom the
111.1Sriastrad * Software is furnished to do so, subject to the following conditions:
121.1Sriastrad *
131.1Sriastrad * The above copyright notice and this permission notice shall be included in
141.1Sriastrad * all copies or substantial portions of the Software.
151.1Sriastrad *
161.1Sriastrad * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
171.1Sriastrad * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181.1Sriastrad * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
191.1Sriastrad * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
201.1Sriastrad * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
211.1Sriastrad * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
221.1Sriastrad * OTHER DEALINGS IN THE SOFTWARE.
231.1Sriastrad *
241.1Sriastrad */
251.1Sriastrad
261.1Sriastrad#ifndef PP_PCIELANES_H
271.1Sriastrad#define PP_PCIELANES_H
281.1Sriastrad
291.1Sriastradextern uint8_t encode_pcie_lane_width(uint32_t num_lanes);
301.1Sriastradextern uint8_t decode_pcie_lane_width(uint32_t num_lanes);
311.1Sriastrad
321.1Sriastrad#endif
331.1Sriastrad
34