disp.c (21167510605470d53c94e7162ae886c8fb67d93d) disp.c (a76eb4297f90301fa9e4c888fb06749ef1be1c86)
1/*
2 * Copyright 2011 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 1799 unchanged lines hidden (view full) ---

1808 kfree(encoder);
1809}
1810
1811static const struct drm_encoder_funcs
1812nv50_sor_func = {
1813 .destroy = nv50_sor_destroy,
1814};
1815
1/*
2 * Copyright 2011 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 1799 unchanged lines hidden (view full) ---

1808 kfree(encoder);
1809}
1810
1811static const struct drm_encoder_funcs
1812nv50_sor_func = {
1813 .destroy = nv50_sor_destroy,
1814};
1815
1816static bool nv50_has_mst(struct nouveau_drm *drm)
1816bool nv50_has_mst(struct nouveau_drm *drm)
1817{
1818 struct nvkm_bios *bios = nvxx_bios(&drm->client.device);
1819 u32 data;
1820 u8 ver, hdr, cnt, len;
1821
1822 data = nvbios_dp_table(bios, &ver, &hdr, &cnt, &len);
1823 return data && ver >= 0x40 && (nvbios_rd08(bios, data + 0x08) & 0x04);
1824}

--- 1069 unchanged lines hidden ---
1817{
1818 struct nvkm_bios *bios = nvxx_bios(&drm->client.device);
1819 u32 data;
1820 u8 ver, hdr, cnt, len;
1821
1822 data = nvbios_dp_table(bios, &ver, &hdr, &cnt, &len);
1823 return data && ver >= 0x40 && (nvbios_rd08(bios, data + 0x08) & 0x04);
1824}

--- 1069 unchanged lines hidden ---