/* insl_sw.S: input array of 4b words from device port with byte swapping1*2* Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/101112.text13.p2align 41415###############################################################################16#17# void __insl_sw(unsigned int port, void *buf, int n)18#19###############################################################################20.globl __insl_sw21.type __insl_sw,@function22__insl_sw:23subi.p gr9,#1,gr924setlos #1,gr4250:26ldi.p @(gr8,#0),gr5 ; get 0xAABBCCDD27subicc gr10,#1,gr10,icc02829stbu.p gr5,@(gr9,gr4) ; write 0xDD30srli gr5,#8,gr531stbu.p gr5,@(gr9,gr4) ; write 0xCC32srli gr5,#8,gr533stbu.p gr5,@(gr9,gr4) ; write 0xBB34srli gr5,#8,gr535stbu.p gr5,@(gr9,gr4) ; write 0xAA36bhi icc0,#2,0b37bralr3839.size __insl_sw, .-__insl_sw404142