31 #define SIL164_VID 0x0001
32 #define SIL164_DID 0x0006
34 #define SIL164_VID_LO 0x00
35 #define SIL164_VID_HI 0x01
36 #define SIL164_DID_LO 0x02
37 #define SIL164_DID_HI 0x03
38 #define SIL164_REV 0x04
39 #define SIL164_RSVD 0x05
40 #define SIL164_FREQ_LO 0x06
41 #define SIL164_FREQ_HI 0x07
43 #define SIL164_REG8 0x08
44 #define SIL164_8_VEN (1<<5)
45 #define SIL164_8_HEN (1<<4)
46 #define SIL164_8_DSEL (1<<3)
47 #define SIL164_8_BSEL (1<<2)
48 #define SIL164_8_EDGE (1<<1)
49 #define SIL164_8_PD (1<<0)
51 #define SIL164_REG9 0x09
52 #define SIL164_9_VLOW (1<<7)
53 #define SIL164_9_MSEL_MASK (0x7<<4)
54 #define SIL164_9_TSEL (1<<3)
55 #define SIL164_9_RSEN (1<<2)
56 #define SIL164_9_HTPLG (1<<1)
57 #define SIL164_9_MDI (1<<0)
59 #define SIL164_REGC 0x0c
66 #define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr))
99 DRM_DEBUG_KMS(
"Unable to read register 0x%02x from %s:%02x.\n",
124 DRM_DEBUG_KMS(
"Unable to write register 0x%02x to %s:%d.\n",
151 DRM_DEBUG_KMS(
"sil164 not detected got %d: from %s Slave %d.\n",
160 DRM_DEBUG_KMS(
"sil164 not detected got %d: from %s Slave %d.\n",
166 DRM_DEBUG_KMS(
"init sil164 dvo controller successfully!\n");
249 DRM_LOG_KMS(
"SIL164_FREQ_LO: 0x%02x\n", val);
251 DRM_LOG_KMS(
"SIL164_FREQ_HI: 0x%02x\n", val);
253 DRM_LOG_KMS(
"SIL164_REG8: 0x%02x\n", val);
255 DRM_LOG_KMS(
"SIL164_REG9: 0x%02x\n", val);
257 DRM_LOG_KMS(
"SIL164_REGC: 0x%02x\n", val);
272 .detect = sil164_detect,
273 .mode_valid = sil164_mode_valid,
274 .mode_set = sil164_mode_set,
276 .get_hw_state = sil164_get_hw_state,
277 .dump_regs = sil164_dump_regs,
278 .destroy = sil164_destroy,