| .. | .. |
|---|
| 14 | 14 | "generic", which bumps through the machine vector. */ |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | unsigned int |
|---|
| 17 | | -ioread8(void __iomem *addr) |
|---|
| 17 | +ioread8(const void __iomem *addr) |
|---|
| 18 | 18 | { |
|---|
| 19 | 19 | unsigned int ret; |
|---|
| 20 | 20 | mb(); |
|---|
| .. | .. |
|---|
| 23 | 23 | return ret; |
|---|
| 24 | 24 | } |
|---|
| 25 | 25 | |
|---|
| 26 | | -unsigned int ioread16(void __iomem *addr) |
|---|
| 26 | +unsigned int ioread16(const void __iomem *addr) |
|---|
| 27 | 27 | { |
|---|
| 28 | 28 | unsigned int ret; |
|---|
| 29 | 29 | mb(); |
|---|
| .. | .. |
|---|
| 32 | 32 | return ret; |
|---|
| 33 | 33 | } |
|---|
| 34 | 34 | |
|---|
| 35 | | -unsigned int ioread32(void __iomem *addr) |
|---|
| 35 | +unsigned int ioread32(const void __iomem *addr) |
|---|
| 36 | 36 | { |
|---|
| 37 | 37 | unsigned int ret; |
|---|
| 38 | 38 | mb(); |
|---|
| .. | .. |
|---|
| 257 | 257 | /* |
|---|
| 258 | 258 | * Read COUNT 8-bit bytes from port PORT into memory starting at SRC. |
|---|
| 259 | 259 | */ |
|---|
| 260 | | -void ioread8_rep(void __iomem *port, void *dst, unsigned long count) |
|---|
| 260 | +void ioread8_rep(const void __iomem *port, void *dst, unsigned long count) |
|---|
| 261 | 261 | { |
|---|
| 262 | 262 | while ((unsigned long)dst & 0x3) { |
|---|
| 263 | 263 | if (!count) |
|---|
| .. | .. |
|---|
| 300 | 300 | * the interfaces seems to be slow: just using the inlined version |
|---|
| 301 | 301 | * of the inw() breaks things. |
|---|
| 302 | 302 | */ |
|---|
| 303 | | -void ioread16_rep(void __iomem *port, void *dst, unsigned long count) |
|---|
| 303 | +void ioread16_rep(const void __iomem *port, void *dst, unsigned long count) |
|---|
| 304 | 304 | { |
|---|
| 305 | 305 | if (unlikely((unsigned long)dst & 0x3)) { |
|---|
| 306 | 306 | if (!count) |
|---|
| .. | .. |
|---|
| 340 | 340 | * but the interfaces seems to be slow: just using the inlined version |
|---|
| 341 | 341 | * of the inl() breaks things. |
|---|
| 342 | 342 | */ |
|---|
| 343 | | -void ioread32_rep(void __iomem *port, void *dst, unsigned long count) |
|---|
| 343 | +void ioread32_rep(const void __iomem *port, void *dst, unsigned long count) |
|---|
| 344 | 344 | { |
|---|
| 345 | 345 | if (unlikely((unsigned long)dst & 0x3)) { |
|---|
| 346 | 346 | while (count--) { |
|---|