| /* insl_sw.S: input array of 4b words from device port with byte swapping |
| * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. |
| * Written by David Howells (dhowells@redhat.com) |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation; either version |
| * 2 of the License, or (at your option) any later version. |
| ############################################################################### |
| # void __insl_sw(unsigned int port, void *buf, int n) |
| ############################################################################### |
| .type __insl_sw,@function |
| ldi.p @(gr8,#0),gr5 ; get 0xAABBCCDD |
| stbu.p gr5,@(gr9,gr4) ; write 0xDD |
| stbu.p gr5,@(gr9,gr4) ; write 0xCC |
| stbu.p gr5,@(gr9,gr4) ; write 0xBB |
| stbu.p gr5,@(gr9,gr4) ; write 0xAA |
| .size __insl_sw, .-__insl_sw |