/* * Copyright 2015 Karol Herbst <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: Karol Herbst <[email protected]> */ #include "priv.h" static int gk104_pcie_version_supported(struct nvkm_pci *pci) { … } static void gk104_pcie_set_cap_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) { … } static enum nvkm_pcie_speed gk104_pcie_cap_speed(struct nvkm_pci *pci) { … } static void gk104_pcie_set_lnkctl_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) { … } static enum nvkm_pcie_speed gk104_pcie_lnkctl_speed(struct nvkm_pci *pci) { … } static enum nvkm_pcie_speed gk104_pcie_max_speed(struct nvkm_pci *pci) { … } static void gk104_pcie_set_link_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) { … } static int gk104_pcie_init(struct nvkm_pci * pci) { … } static int gk104_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) { … } static const struct nvkm_pci_func gk104_pci_func = …; int gk104_pci_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_pci **ppci) { … }