149bd8da5SBen Skeggs /*
249bd8da5SBen Skeggs * Copyright 2012 Red Hat Inc.
349bd8da5SBen Skeggs *
449bd8da5SBen Skeggs * Permission is hereby granted, free of charge, to any person obtaining a
549bd8da5SBen Skeggs * copy of this software and associated documentation files (the "Software"),
649bd8da5SBen Skeggs * to deal in the Software without restriction, including without limitation
749bd8da5SBen Skeggs * the rights to use, copy, modify, merge, publish, distribute, sublicense,
849bd8da5SBen Skeggs * and/or sell copies of the Software, and to permit persons to whom the
949bd8da5SBen Skeggs * Software is furnished to do so, subject to the following conditions:
1049bd8da5SBen Skeggs *
1149bd8da5SBen Skeggs * The above copyright notice and this permission notice shall be included in
1249bd8da5SBen Skeggs * all copies or substantial portions of the Software.
1349bd8da5SBen Skeggs *
1449bd8da5SBen Skeggs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1549bd8da5SBen Skeggs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1649bd8da5SBen Skeggs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1749bd8da5SBen Skeggs * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1849bd8da5SBen Skeggs * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1949bd8da5SBen Skeggs * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2049bd8da5SBen Skeggs * OTHER DEALINGS IN THE SOFTWARE.
2149bd8da5SBen Skeggs *
2249bd8da5SBen Skeggs * Authors: Ben Skeggs
2349bd8da5SBen Skeggs */
2449bd8da5SBen Skeggs #include "priv.h"
2549bd8da5SBen Skeggs #include "pad.h"
2649bd8da5SBen Skeggs
2749bd8da5SBen Skeggs static const struct nvkm_i2c_func
2849bd8da5SBen Skeggs gf119_i2c = {
2949bd8da5SBen Skeggs .pad_x_new = gf119_i2c_pad_x_new,
3049bd8da5SBen Skeggs .pad_s_new = gf119_i2c_pad_s_new,
3149bd8da5SBen Skeggs .aux = 4,
3249bd8da5SBen Skeggs .aux_stat = g94_aux_stat,
3349bd8da5SBen Skeggs .aux_mask = g94_aux_mask,
3449bd8da5SBen Skeggs };
3549bd8da5SBen Skeggs
3649bd8da5SBen Skeggs int
gf119_i2c_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_i2c ** pi2c)37*c6ce0861SBen Skeggs gf119_i2c_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
38*c6ce0861SBen Skeggs struct nvkm_i2c **pi2c)
3949bd8da5SBen Skeggs {
40*c6ce0861SBen Skeggs return nvkm_i2c_new_(&gf119_i2c, device, type, inst, pi2c);
4149bd8da5SBen Skeggs }
42