Lines Matching +full:port +full:- +full:base

9 *		Copyright (C) 1996-1999 SciTech Software, Inc.
39 * Jason ported this file to u-boot, Added some architecture
49 /*---------------------- Macros and type definitions ----------------------*/
67 #define readb_le(base) *((u8*)(base)) argument
68 #define readw_le(base) ((u16)readb_le(base) | ((u16)readb_le((base) + 1) << 8)) argument
69 #define readl_le(base) ((u32)readb_le((base) + 0) | ((u32)readb_le((base) + 1) << 8) | \ argument
70 ((u32)readb_le((base) + 2) << 16) | ((u32)readb_le((base) + 3) << 24))
71 #define writeb_le(base, v) *((u8*)(base)) = (v) argument
72 #define writew_le(base, v) writeb_le(base + 0, (v >> 0) & 0xff), \ argument
73 writeb_le(base + 1, (v >> 8) & 0xff)
74 #define writel_le(base, v) writeb_le(base + 0, (v >> 0) & 0xff), \ argument
75 writeb_le(base + 1, (v >> 8) & 0xff), \
76 writeb_le(base + 2, (v >> 16) & 0xff), \
77 writeb_le(base + 3, (v >> 24) & 0xff)
79 #define readb_le(base) *((u8*)(base)) argument
80 #define readw_le(base) *((u16*)(base)) argument
81 #define readl_le(base) *((u32*)(base)) argument
82 #define writeb_le(base, v) *((u8*)(base)) = (v) argument
83 #define writew_le(base, v) *((u16*)(base)) = (v) argument
84 #define writel_le(base, v) *((u32*)(base)) = (v) argument
89 Function codes passed to the emulated I/O port functions to determine the
103 Function codes passed to the emulated I/O port functions to determine the
121 type - Type of port access (1 = byte, 2 = word, 3 = dword)
122 defVal - Default power on value
123 finalVal - Final value
131 #define PM_inpb(port) inb(port+VIDEO_IO_OFFSET) argument
132 #define PM_inpw(port) inw(port+VIDEO_IO_OFFSET) argument
133 #define PM_inpd(port) inl(port+VIDEO_IO_OFFSET) argument
134 #define PM_outpb(port,val) outb(val,port+VIDEO_IO_OFFSET) argument
135 #define PM_outpw(port,val) outw(val,port+VIDEO_IO_OFFSET) argument
136 #define PM_outpd(port,val) outl(val,port+VIDEO_IO_OFFSET) argument
138 #define LOG_inpb(port) PM_inpb(port) argument
139 #define LOG_inpw(port) PM_inpw(port) argument
140 #define LOG_inpd(port) PM_inpd(port) argument
141 #define LOG_outpb(port,val) PM_outpb(port,val) argument
142 #define LOG_outpw(port,val) PM_outpw(port,val) argument
143 #define LOG_outpd(port,val) PM_outpd(port,val) argument
145 /*-------------------------- Function Prototypes --------------------------*/
162 u8 X86API BE_inb(X86EMU_pioAddr port);
163 u16 X86API BE_inw(X86EMU_pioAddr port);
164 u32 X86API BE_inl(X86EMU_pioAddr port);
165 void X86API BE_outb(X86EMU_pioAddr port, u8 val);
166 void X86API BE_outw(X86EMU_pioAddr port, u16 val);
167 void X86API BE_outl(X86EMU_pioAddr port, u32 val);