-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/gk208-/gr: stop touching 0x260 inappropriately
As a side note.. It's a bit hard to figure out how to name this commit.. GK20A is NVEA, which is before NV108 (GK208).. Confusing. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
- Loading branch information
Ben Skeggs
committed
Aug 9, 2014
1 parent
579b7f3
commit 7d155da
Showing
15 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2012 Red Hat Inc. | ||
* | ||
* 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: Ben Skeggs | ||
*/ | ||
|
||
#include "nv04.h" | ||
|
||
struct nouveau_oclass * | ||
gk20a_mc_oclass = &(struct nouveau_mc_oclass) { | ||
.base.handle = NV_SUBDEV(MC, 0xea), | ||
.base.ofuncs = &(struct nouveau_ofuncs) { | ||
.ctor = nv04_mc_ctor, | ||
.dtor = _nouveau_mc_dtor, | ||
.init = nv50_mc_init, | ||
.fini = _nouveau_mc_fini, | ||
}, | ||
.intr = nvc0_mc_intr, | ||
.msi_rearm = nv40_mc_msi_rearm, | ||
}.base; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef __NVKM_MC_PRIV_H__ | ||
#define __NVKM_MC_PRIV_H__ | ||
|
||
#include <subdev/mc.h> | ||
|
||
#define nouveau_mc_create(p,e,o,d) \ | ||
nouveau_mc_create_((p), (e), (o), sizeof(**d), (void **)d) | ||
#define nouveau_mc_destroy(p) ({ \ | ||
struct nouveau_mc *pmc = (p); _nouveau_mc_dtor(nv_object(pmc)); \ | ||
}) | ||
#define nouveau_mc_init(p) ({ \ | ||
struct nouveau_mc *pmc = (p); _nouveau_mc_init(nv_object(pmc)); \ | ||
}) | ||
#define nouveau_mc_fini(p,s) ({ \ | ||
struct nouveau_mc *pmc = (p); _nouveau_mc_fini(nv_object(pmc), (s)); \ | ||
}) | ||
|
||
int nouveau_mc_create_(struct nouveau_object *, struct nouveau_object *, | ||
struct nouveau_oclass *, int, void **); | ||
void _nouveau_mc_dtor(struct nouveau_object *); | ||
int _nouveau_mc_init(struct nouveau_object *); | ||
int _nouveau_mc_fini(struct nouveau_object *, bool); | ||
|
||
struct nouveau_mc_intr { | ||
u32 stat; | ||
u32 unit; | ||
}; | ||
|
||
struct nouveau_mc_oclass { | ||
struct nouveau_oclass base; | ||
const struct nouveau_mc_intr *intr; | ||
void (*msi_rearm)(struct nouveau_mc *); | ||
void (*unk260)(struct nouveau_mc *, u32); | ||
}; | ||
|
||
void nvc0_mc_unk260(struct nouveau_mc *, u32); | ||
|
||
#endif |