diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-15 02:02:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-15 02:02:45 +0000 |
commit | 8c8e2c846f8262a3603ec796149262b47740ecae (patch) | |
tree | 34e49ae4689a6115c9c2cdaeebc102d194fddf67 /sys/arch/powerpc/include/pio.h | |
parent | 6a5ac86b44e1672a17310a61c8331dafeca2e085 (diff) |
KNF
Diffstat (limited to 'sys/arch/powerpc/include/pio.h')
-rw-r--r-- | sys/arch/powerpc/include/pio.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/powerpc/include/pio.h b/sys/arch/powerpc/include/pio.h index 25331fdc954..c0cad78481a 100644 --- a/sys/arch/powerpc/include/pio.h +++ b/sys/arch/powerpc/include/pio.h @@ -1,8 +1,8 @@ -/* $OpenBSD: pio.h,v 1.7 2001/09/01 15:49:05 drahn Exp $ */ +/* $OpenBSD: pio.h,v 1.8 2002/09/15 02:02:44 deraadt Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -163,15 +163,16 @@ __flash_led(bits, count) { int i, v = 0; - if(bits == 0) { - v = 1; bits = 3; + if (bits == 0) { + v = 1; + bits = 3; } bits &= 3; count += count; v |= (*(volatile u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4)) & ~3; - while(count--) { + while (count--) { v ^= bits; - for(i = 100000; i > 0; i--) + for (i = 100000; i > 0; i--) *(volatile u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4) = v; } *(u_int8_t *)(MPC106_V_ISA_IO_SPACE + 0x01f4) &= ~3; |