109e1b78aSBen Skeggs /*
209e1b78aSBen Skeggs * Copyright 2018 Red Hat Inc.
309e1b78aSBen Skeggs *
409e1b78aSBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
509e1b78aSBen Skeggs * copy of this software and associated documentation files (the "Software"),
609e1b78aSBen Skeggs * to deal in the Software without restriction, including without limitation
709e1b78aSBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
809e1b78aSBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
909e1b78aSBen Skeggs * Software is furnished to do so, subject to the following conditions:
1009e1b78aSBen Skeggs *
1109e1b78aSBen Skeggs * The above copyright notice and this permission notice shall be included in
1209e1b78aSBen Skeggs * all copies or substantial portions of the Software.
1309e1b78aSBen Skeggs *
1409e1b78aSBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1509e1b78aSBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1609e1b78aSBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1709e1b78aSBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1809e1b78aSBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1909e1b78aSBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2009e1b78aSBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
2109e1b78aSBen Skeggs */
2209e1b78aSBen Skeggs #include "core.h"
2309e1b78aSBen Skeggs #include "head.h"
2409e1b78aSBen Skeggs
2509e1b78aSBen Skeggs static const struct nv50_core_func
2609e1b78aSBen Skeggs core827d = {
2709e1b78aSBen Skeggs .init = core507d_init,
2809e1b78aSBen Skeggs .ntfy_init = core507d_ntfy_init,
29*4a2cb418SLyude Paul .caps_init = core507d_caps_init,
3009e1b78aSBen Skeggs .ntfy_wait_done = core507d_ntfy_wait_done,
3109e1b78aSBen Skeggs .update = core507d_update,
3209e1b78aSBen Skeggs .head = &head827d,
3309e1b78aSBen Skeggs .dac = &dac507d,
3409e1b78aSBen Skeggs .sor = &sor507d,
3509e1b78aSBen Skeggs .pior = &pior507d,
3609e1b78aSBen Skeggs };
3709e1b78aSBen Skeggs
3809e1b78aSBen Skeggs int
core827d_new(struct nouveau_drm * drm,s32 oclass,struct nv50_core ** pcore)3909e1b78aSBen Skeggs core827d_new(struct nouveau_drm *drm, s32 oclass, struct nv50_core **pcore)
4009e1b78aSBen Skeggs {
4109e1b78aSBen Skeggs return core507d_new_(&core827d, drm, oclass, pcore);
4209e1b78aSBen Skeggs }
43