~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-sis/trusty

« back to all changes in this revision

Viewing changes to src/osdef.h

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois
  • Date: 2012-05-01 19:17:28 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120501191728-lin26r5cjg0kfo1k
Tags: 1:0.10.4-1
* New upstream release:
  - Fix FTBFS with X server 1.12.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
#warning sisfb will not work!
111
111
#endif
112
112
 
113
 
#define OutPortByte(p,v) outb((u8)(v),(IOADDRESS)(p))
114
 
#define OutPortWord(p,v) outw((u16)(v),(IOADDRESS)(p))
115
 
#define OutPortLong(p,v) outl((u32)(v),(IOADDRESS)(p))
116
 
#define InPortByte(p)    inb((IOADDRESS)(p))
117
 
#define InPortWord(p)    inw((IOADDRESS)(p))
118
 
#define InPortLong(p)    inl((IOADDRESS)(p))
 
113
#define OutPortByte(p,v) outb((u8)(v),(unsigned long)(p))
 
114
#define OutPortWord(p,v) outw((u16)(v),(unsigned long)(p))
 
115
#define OutPortLong(p,v) outl((u32)(v),(unsigned long)(p))
 
116
#define InPortByte(p)    inb((unsigned long)(p))
 
117
#define InPortWord(p)    inw((unsigned long)(p))
 
118
#define InPortLong(p)    inl((unsigned long)(p))
119
119
#define SiS_SetMemory(MemoryAddress,MemorySize,value) memset_io(MemoryAddress, value, MemorySize)
120
120
 
121
121
#endif /* LINUX_KERNEL */
129
129
#define SIS300
130
130
#define SIS315H
131
131
 
132
 
#define OutPortByte(p,v) outSISREG((IOADDRESS)(p),(CARD8)(v))
133
 
#define OutPortWord(p,v) outSISREGW((IOADDRESS)(p),(CARD16)(v))
134
 
#define OutPortLong(p,v) outSISREGL((IOADDRESS)(p),(CARD32)(v))
135
 
#define InPortByte(p)    inSISREG((IOADDRESS)(p))
136
 
#define InPortWord(p)    inSISREGW((IOADDRESS)(p))
137
 
#define InPortLong(p)    inSISREGL((IOADDRESS)(p))
 
132
#define OutPortByte(p,v) outSISREG((unsigned long)(p),(CARD8)(v))
 
133
#define OutPortWord(p,v) outSISREGW((unsigned long)(p),(CARD16)(v))
 
134
#define OutPortLong(p,v) outSISREGL((unsigned long)(p),(CARD32)(v))
 
135
#define InPortByte(p)    inSISREG((unsigned long)(p))
 
136
#define InPortWord(p)    inSISREGW((unsigned long)(p))
 
137
#define InPortLong(p)    inSISREGL((unsigned long)(p))
138
138
#define SiS_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
139
139
 
140
140
#endif /* XF86 */