Lines Matching defs:pNv

70 static Bool G80ReadPortMapping(int scrnIndex, G80Ptr pNv)
80 pNv->i2cMap[i].dac = pNv->i2cMap[i].sor = -1;
82 if(*(CARD16*)pNv->table1 != 0xaa55) goto fail;
84 a = *(CARD16*)(pNv->table1 + 0x36);
85 table2 = (unsigned char*)pNv->table1 + a;
92 table3 = (unsigned char*)pNv->table1 + *(CARD16*)(table2 + 4);
139 if(pNv->i2cMap[port].dac != (ORNum)-1) {
142 "port %i\n", or, pNv->i2cMap[port].dac, port);
144 pNv->i2cMap[port].dac = or;
170 if(pNv->i2cMap[port].sor != (ORNum)-1)
173 "port %i\n", or, pNv->i2cMap[port].sor, port);
174 pNv->i2cMap[port].sor = or;
178 pNv->lvds.present = TRUE;
179 pNv->lvds.or = or;
180 pNv->lvds.i2cPort = -1;
204 pNv->lvds.i2cPort = port;
222 if(pNv->lvds.present) {
223 if (pNv->lvds.i2cPort != -1)
224 xf86DrvMsg(scrnIndex, X_PROBED, " Bus %i -> SOR%i (LVDS)\n", pNv->lvds.i2cPort, pNv->lvds.or);
226 xf86DrvMsg(scrnIndex, X_PROBED, " [N/A] -> SOR%i (LVDS)\n", pNv->lvds.or);
229 if(pNv->i2cMap[i].dac != (ORNum)-1)
230 xf86DrvMsg(scrnIndex, X_PROBED, " Bus %i -> DAC%i\n", i, pNv->i2cMap[i].dac);
231 if(pNv->i2cMap[i].sor != (ORNum)-1)
232 xf86DrvMsg(scrnIndex, X_PROBED, " Bus %i -> SOR%i\n", i, pNv->i2cMap[i].sor);
235 pNv->loadVal = G80FindLoadVal(pNv->table1);
236 xf86DrvMsg(scrnIndex, X_PROBED, "Load detection: %d\n", pNv->loadVal);
258 G80Ptr pNv = G80PTR(b->pScrn);
260 G80Ptr pNv = G80PTR(xf86Screens[b->scrnIndex]);
262 pNv->reg[i2cAddr(b->DriverPrivate.val)/4] = 4 | clock | data << 1;
268 G80Ptr pNv = G80PTR(b->pScrn);
270 G80Ptr pNv = G80PTR(xf86Screens[b->scrnIndex]);
274 val = pNv->reg[i2cAddr(b->DriverPrivate.val)/4];
343 G80Ptr pNv = G80PTR(pScrn);
350 pNv->reg[addr/4] = 7;
357 pNv->reg[addr/4] = 3;
446 G80Ptr pNv = G80PTR(pScrn);
450 if(!G80ReadPortMapping(pScrn->scrnIndex, pNv))
459 if(pNv->i2cMap[i].dac == (ORNum)-1 && pNv->i2cMap[i].sor == (ORNum)-1)
472 if(pNv->i2cMap[i].dac != (ORNum)-1)
473 dac = G80CreateDac(pScrn, pNv->i2cMap[i].dac);
474 if(pNv->i2cMap[i].sor != (ORNum)-1)
475 sor = G80CreateSor(pScrn, pNv->i2cMap[i].sor, TMDS);
493 if(pNv->lvds.present) {
494 xf86OutputPtr lvds = G80CreateSor(pScrn, pNv->lvds.or, LVDS);
501 if(pNv->lvds.i2cPort != -1) {
504 snprintf(i2cName, sizeof(i2cName), "I2C%i (LVDS)", pNv->lvds.i2cPort);
505 pPriv->i2c = G80I2CInit(pScrn, i2cName, pNv->lvds.i2cPort);
509 pNv->lvds.i2cPort);