Revision d56dd6cf hw/apb_pci.c
b/hw/apb_pci.c | ||
---|---|---|
148 | 148 |
static void pci_apb_iowriteb (void *opaque, target_phys_addr_t addr, |
149 | 149 |
uint32_t val) |
150 | 150 |
{ |
151 |
cpu_outb(NULL, addr & 0xffff, val);
|
|
151 |
cpu_outb(NULL, addr & IOPORTS_MASK, val);
|
|
152 | 152 |
} |
153 | 153 |
|
154 | 154 |
static void pci_apb_iowritew (void *opaque, target_phys_addr_t addr, |
155 | 155 |
uint32_t val) |
156 | 156 |
{ |
157 |
cpu_outw(NULL, addr & 0xffff, val);
|
|
157 |
cpu_outw(NULL, addr & IOPORTS_MASK, val);
|
|
158 | 158 |
} |
159 | 159 |
|
160 | 160 |
static void pci_apb_iowritel (void *opaque, target_phys_addr_t addr, |
161 | 161 |
uint32_t val) |
162 | 162 |
{ |
163 |
cpu_outl(NULL, addr & 0xffff, val);
|
|
163 |
cpu_outl(NULL, addr & IOPORTS_MASK, val);
|
|
164 | 164 |
} |
165 | 165 |
|
166 | 166 |
static uint32_t pci_apb_ioreadb (void *opaque, target_phys_addr_t addr) |
167 | 167 |
{ |
168 | 168 |
uint32_t val; |
169 | 169 |
|
170 |
val = cpu_inb(NULL, addr & 0xffff);
|
|
170 |
val = cpu_inb(NULL, addr & IOPORTS_MASK);
|
|
171 | 171 |
return val; |
172 | 172 |
} |
173 | 173 |
|
... | ... | |
175 | 175 |
{ |
176 | 176 |
uint32_t val; |
177 | 177 |
|
178 |
val = cpu_inw(NULL, addr & 0xffff);
|
|
178 |
val = cpu_inw(NULL, addr & IOPORTS_MASK);
|
|
179 | 179 |
return val; |
180 | 180 |
} |
181 | 181 |
|
... | ... | |
183 | 183 |
{ |
184 | 184 |
uint32_t val; |
185 | 185 |
|
186 |
val = cpu_inl(NULL, addr & 0xffff);
|
|
186 |
val = cpu_inl(NULL, addr & IOPORTS_MASK);
|
|
187 | 187 |
return val; |
188 | 188 |
} |
189 | 189 |
|
Also available in: Unified diff