diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-07-09 15:37:37 +1000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-07-09 16:16:44 +1000 |
commit | 3c58195ccd346cc61f98b9f89cf074edf6886723 (patch) | |
tree | 435c95f8ea6b1355f8269d7884fbee55b23f4e07 /shared-core/nouveau_drv.h | |
parent | c806bba4665bb369168ee0b453fa28e2e0bf2a5d (diff) |
nouveau: Avoid oops
Turns out lastclose() gets called even if firstopen() has never been...
Diffstat (limited to 'shared-core/nouveau_drv.h')
-rw-r--r-- | shared-core/nouveau_drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h index 81972db5..12b78a7e 100644 --- a/shared-core/nouveau_drv.h +++ b/shared-core/nouveau_drv.h @@ -184,6 +184,12 @@ typedef struct nouveau_engine_func { } nouveau_engine_func_t; typedef struct drm_nouveau_private { + enum { + NOUVEAU_CARD_INIT_DOWN, + NOUVEAU_CARD_INIT_DONE, + NOUVEAU_CARD_INIT_FAILED + } init_state; + /* the card type, takes NV_* as values */ int card_type; /* exact chipset, derived from NV_PMC_BOOT_0 */ |