dac.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) | dac.c (ed3d1489d2717a13f3b47b296bb2faa7ce4168da) |
---|---|
1/* 2 * Copyright 2003 NVIDIA, Corporation 3 * Copyright 2006 Dave Airlie 4 * Copyright 2007 Maarten Maathuis 5 * Copyright 2007-2009 Stuart Bennett 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a 8 * copy of this software and associated documentation files (the "Software"), --- 21 unchanged lines hidden (view full) --- 30#include "nouveau_encoder.h" 31#include "nouveau_connector.h" 32#include "nouveau_crtc.h" 33#include "hw.h" 34#include "nvreg.h" 35 36#include <subdev/bios/gpio.h> 37#include <subdev/gpio.h> | 1/* 2 * Copyright 2003 NVIDIA, Corporation 3 * Copyright 2006 Dave Airlie 4 * Copyright 2007 Maarten Maathuis 5 * Copyright 2007-2009 Stuart Bennett 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a 8 * copy of this software and associated documentation files (the "Software"), --- 21 unchanged lines hidden (view full) --- 30#include "nouveau_encoder.h" 31#include "nouveau_connector.h" 32#include "nouveau_crtc.h" 33#include "hw.h" 34#include "nvreg.h" 35 36#include <subdev/bios/gpio.h> 37#include <subdev/gpio.h> |
38#include <subdev/timer.h> | |
39 | 38 |
39#include <nvif/timer.h> 40 |
|
40int nv04_dac_output_offset(struct drm_encoder *encoder) 41{ 42 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; 43 int offset = 0; 44 45 if (dcb->or & (8 | DCB_OUTPUT_C)) 46 offset += 0x68; 47 if (dcb->or & (8 | DCB_OUTPUT_B)) --- 513 unchanged lines hidden --- | 41int nv04_dac_output_offset(struct drm_encoder *encoder) 42{ 43 struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; 44 int offset = 0; 45 46 if (dcb->or & (8 | DCB_OUTPUT_C)) 47 offset += 0x68; 48 if (dcb->or & (8 | DCB_OUTPUT_B)) --- 513 unchanged lines hidden --- |