summaryrefslogtreecommitdiff
path: root/src/apm_regs.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-07-17 14:52:05 +1000
committerDave Airlie <airlied@redhat.com>2012-07-17 14:52:05 +1000
commita57b784ddfdc9369f6dfe498333c25bfea883e8f (patch)
treed969d99de2b293faf0423a5f78b3fd49e30669c3 /src/apm_regs.h
parentd9a3071242724325d4e3672b3e70d8457f993f78 (diff)
apm: convert to new screen conversion apis.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/apm_regs.h')
-rw-r--r--src/apm_regs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apm_regs.h b/src/apm_regs.h
index 3f60eef..8fa8514 100644
--- a/src/apm_regs.h
+++ b/src/apm_regs.h
@@ -29,19 +29,19 @@
#define RDXL_M(addr) (MMIO_IN32(pApm->MemMap, (addr)))
#define WRXB_M(addr,val) do { if (check08((addr), (val))) { \
MMIO_OUT8 (pApm->MemMap, (addr), (val)); \
- /*xf86DrvMsg(xf86Screens[pApm->pScreen->myNum]->scrnIndex, X_INFO, \
+ /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \
"File %s, line %d, %02X <- %02X\n", \
__FILE__, __LINE__, (addr), (val) & 255); */\
curr08[MIN((addr), 0x80)] = (val); }} while (0)
#define WRXW_M(addr,val) do { if (check16((addr), (val))) { \
MMIO_OUT16(pApm->MemMap, (addr), (val)); \
- /*xf86DrvMsg(xf86Screens[pApm->pScreen->myNum]->scrnIndex, X_INFO, \
+ /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \
"File %s, line %d, %02X <- %04X\n", \
__FILE__, __LINE__, (addr), (val)&65535); */\
curr16[MIN(((addr) / 2), 0x40)] = (val); }} while (0)
#define WRXL_M(addr,val) do { if (check32((addr), (val))) { \
MMIO_OUT32(pApm->MemMap, (addr), (val)); \
- /*xf86DrvMsg(xf86Screens[pApm->pScreen->myNum]->scrnIndex, X_INFO, \
+ /*xf86DrvMsg(xf86ScreenToScrn(pApm->pScreen)->scrnIndex, X_INFO, \
"File %s, line %d, %02X <- %08X\n", \
__FILE__, __LINE__, (addr), (val)); */\
curr32[MIN(((addr) / 4), 0x20)] = (val); }} while (0)