patch-2.4.19 linux-2.4.19/arch/mips/mips-boards/generic/printf.c
Next file: linux-2.4.19/arch/mips/mips-boards/generic/time.c
Previous file: linux-2.4.19/arch/mips/mips-boards/generic/pci.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/mips/mips-boards/generic/printf.c
- Orig date:
Fri Apr 13 20:26:07 2001
diff -urN linux-2.4.18/arch/mips/mips-boards/generic/printf.c linux-2.4.19/arch/mips/mips-boards/generic/printf.c
@@ -40,12 +40,12 @@
*/
unsigned int atlas_serial_in(struct async_struct *info, int offset)
{
- return (*(volatile unsigned int *)(info->port + mips_io_port_base + offset*8) & 0xff);
+ return inl(info->port + offset*8) & 0xff;
}
void atlas_serial_out(struct async_struct *info, int offset, int value)
{
- *(volatile unsigned int *)(info->port + mips_io_port_base + offset*8) = value;
+ outl(value, info->port + offset*8);
}
#define serial_in atlas_serial_in
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)