lpfc_compat.h (c1b054d03f5b31c33eaa0b267c629b118eaf3790) | lpfc_compat.h (bc73905abf7701920fe687564ecd3c6b316b9a2e) |
---|---|
1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2004-2005 Emulex. All rights reserved. * 5 * EMULEX and SLI are trademarks of Emulex. * 6 * www.emulex.com * 7 * * 8 * This program is free software; you can redistribute it and/or * --- 68 unchanged lines hidden (view full) --- 77 return; 78} 79 80#else 81 82static inline void 83lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) 84{ | 1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2004-2005 Emulex. All rights reserved. * 5 * EMULEX and SLI are trademarks of Emulex. * 6 * www.emulex.com * 7 * * 8 * This program is free software; you can redistribute it and/or * --- 68 unchanged lines hidden (view full) --- 77 return; 78} 79 80#else 81 82static inline void 83lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) 84{ |
85 /* actually returns 1 byte past dest */ 86 memcpy_toio( dest, src, bytes); | 85 __iowrite32_copy(dest, src, bytes); |
87} 88 89static inline void 90lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) 91{ 92 /* actually returns 1 byte past dest */ 93 memcpy_fromio( dest, src, bytes); 94} 95 96#endif /* __BIG_ENDIAN */ | 86} 87 88static inline void 89lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) 90{ 91 /* actually returns 1 byte past dest */ 92 memcpy_fromio( dest, src, bytes); 93} 94 95#endif /* __BIG_ENDIAN */ |