diff options
Diffstat (limited to 'include/asm-x86_64/io.h')
| -rw-r--r-- | include/asm-x86_64/io.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/include/asm-x86_64/io.h b/include/asm-x86_64/io.h index 70e91fe76344..6ee9fadaaacb 100644 --- a/include/asm-x86_64/io.h +++ b/include/asm-x86_64/io.h | |||
| @@ -254,33 +254,6 @@ void memset_io(volatile void __iomem *a, int b, size_t c); | |||
| 254 | 254 | ||
| 255 | #define eth_io_copy_and_sum(a,b,c,d) eth_copy_and_sum((a),(void *)(b),(c),(d)) | 255 | #define eth_io_copy_and_sum(a,b,c,d) eth_copy_and_sum((a),(void *)(b),(c),(d)) |
| 256 | 256 | ||
| 257 | /** | ||
| 258 | * check_signature - find BIOS signatures | ||
| 259 | * @io_addr: mmio address to check | ||
| 260 | * @signature: signature block | ||
| 261 | * @length: length of signature | ||
| 262 | * | ||
| 263 | * Perform a signature comparison with the mmio address io_addr. This | ||
| 264 | * address should have been obtained by ioremap. | ||
| 265 | * Returns 1 on a match. | ||
| 266 | */ | ||
| 267 | |||
| 268 | static inline int check_signature(void __iomem *io_addr, | ||
| 269 | const unsigned char *signature, int length) | ||
| 270 | { | ||
| 271 | int retval = 0; | ||
| 272 | do { | ||
| 273 | if (readb(io_addr) != *signature) | ||
| 274 | goto out; | ||
| 275 | io_addr++; | ||
| 276 | signature++; | ||
| 277 | length--; | ||
| 278 | } while (length); | ||
| 279 | retval = 1; | ||
| 280 | out: | ||
| 281 | return retval; | ||
| 282 | } | ||
| 283 | |||
| 284 | /* Nothing to do */ | 257 | /* Nothing to do */ |
| 285 | 258 | ||
| 286 | #define dma_cache_inv(_start,_size) do { } while (0) | 259 | #define dma_cache_inv(_start,_size) do { } while (0) |
