tvnv17.h (db2bec187dd68e79d512112df1f6e7a849e7f0ce) | tvnv17.h (967e7bde8739fe3b215f7537e8f1f39c044902af) |
---|---|
1/* 2 * Copyright (C) 2009 Francisco Jerez. 3 * All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining 6 * a copy of this software and associated documentation files (the 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, --- 116 unchanged lines hidden (view full) --- 125void nv17_tv_update_rescaler(struct drm_encoder *encoder); 126void nv17_ctv_update_rescaler(struct drm_encoder *encoder); 127 128/* TV hardware access functions */ 129 130static inline void nv_write_ptv(struct drm_device *dev, uint32_t reg, 131 uint32_t val) 132{ | 1/* 2 * Copyright (C) 2009 Francisco Jerez. 3 * All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining 6 * a copy of this software and associated documentation files (the 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, --- 116 unchanged lines hidden (view full) --- 125void nv17_tv_update_rescaler(struct drm_encoder *encoder); 126void nv17_ctv_update_rescaler(struct drm_encoder *encoder); 127 128/* TV hardware access functions */ 129 130static inline void nv_write_ptv(struct drm_device *dev, uint32_t reg, 131 uint32_t val) 132{ |
133 struct nouveau_object *device = nouveau_drm(dev)->device; | 133 struct nvif_device *device = &nouveau_drm(dev)->device; |
134 nvif_wr32(device, reg, val); 135} 136 137static inline uint32_t nv_read_ptv(struct drm_device *dev, uint32_t reg) 138{ | 134 nvif_wr32(device, reg, val); 135} 136 137static inline uint32_t nv_read_ptv(struct drm_device *dev, uint32_t reg) 138{ |
139 struct nouveau_object *device = nouveau_drm(dev)->device; | 139 struct nvif_device *device = &nouveau_drm(dev)->device; |
140 return nvif_rd32(device, reg); 141} 142 143static inline void nv_write_tv_enc(struct drm_device *dev, uint8_t reg, 144 uint8_t val) 145{ 146 nv_write_ptv(dev, NV_PTV_TV_INDEX, reg); 147 nv_write_ptv(dev, NV_PTV_TV_DATA, val); --- 16 unchanged lines hidden --- | 140 return nvif_rd32(device, reg); 141} 142 143static inline void nv_write_tv_enc(struct drm_device *dev, uint8_t reg, 144 uint8_t val) 145{ 146 nv_write_ptv(dev, NV_PTV_TV_INDEX, reg); 147 nv_write_ptv(dev, NV_PTV_TV_DATA, val); --- 16 unchanged lines hidden --- |