disp.c (3bec5b6aae830355e786e204b20a7cea38c3a8ed) | disp.c (09838c4efe9afb6fefa889d92c3571d49029af26) |
---|---|
1/* 2 * Copyright 2009 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 --- 21 unchanged lines hidden (view full) --- 30#include "nouveau_encoder.h" 31#include "nouveau_connector.h" 32#include "nouveau_bo.h" 33#include "nouveau_gem.h" 34#include "nouveau_chan.h" 35 36#include <nvif/if0004.h> 37 | 1/* 2 * Copyright 2009 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 --- 21 unchanged lines hidden (view full) --- 30#include "nouveau_encoder.h" 31#include "nouveau_connector.h" 32#include "nouveau_bo.h" 33#include "nouveau_gem.h" 34#include "nouveau_chan.h" 35 36#include <nvif/if0004.h> 37 |
38struct nouveau_connector * 39nv04_encoder_get_connector(struct nouveau_encoder *encoder) 40{ 41 struct drm_device *dev = to_drm_encoder(encoder)->dev; 42 struct drm_connector *connector; 43 struct drm_connector_list_iter conn_iter; 44 struct nouveau_connector *nv_connector = NULL; 45 46 drm_connector_list_iter_begin(dev, &conn_iter); 47 drm_for_each_connector_iter(connector, &conn_iter) { 48 if (connector->encoder == to_drm_encoder(encoder)) 49 nv_connector = nouveau_connector(connector); 50 } 51 drm_connector_list_iter_end(&conn_iter); 52 53 return nv_connector; 54} 55 |
|
38static void 39nv04_display_fini(struct drm_device *dev, bool suspend) 40{ 41 struct nv04_display *disp = nv04_display(dev); 42 struct drm_crtc *crtc; 43 44 /* Disable flip completion events. */ 45 nvif_notify_put(&disp->flip); --- 241 unchanged lines hidden --- | 56static void 57nv04_display_fini(struct drm_device *dev, bool suspend) 58{ 59 struct nv04_display *disp = nv04_display(dev); 60 struct drm_crtc *crtc; 61 62 /* Disable flip completion events. */ 63 nvif_notify_put(&disp->flip); --- 241 unchanged lines hidden --- |