Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/emips/ebus Drive-by trailing whitespace removal.
details: https://anonhg.NetBSD.org/src/rev/744c5c4cc2c0
branches: trunk
changeset: 1026507:744c5c4cc2c0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Nov 27 06:47:43 2021 +0000
description:
Drive-by trailing whitespace removal.
diffstat:
sys/arch/emips/ebus/flash_ebus.c | 62 ++++++++++++++++++++--------------------
1 files changed, 31 insertions(+), 31 deletions(-)
diffs (254 lines):
diff -r 566e4aeb24ee -r 744c5c4cc2c0 sys/arch/emips/ebus/flash_ebus.c
--- a/sys/arch/emips/ebus/flash_ebus.c Sat Nov 27 06:44:16 2021 +0000
+++ b/sys/arch/emips/ebus/flash_ebus.c Sat Nov 27 06:47:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flash_ebus.c,v 1.23 2021/07/24 21:31:32 andvar Exp $ */
+/* $NetBSD: flash_ebus.c,v 1.24 2021/11/27 06:47:43 skrll Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.23 2021/07/24 21:31:32 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.24 2021/11/27 06:47:43 skrll Exp $");
/* Driver for the Intel 28F320/640/128 (J3A150) StrataFlash memory device
* Extended to include the Intel JS28F256P30T95.
@@ -579,7 +579,7 @@
printf("[status %x =",Status);
for (i = 0; i < 8; i++) {
if (Status & (1<<i)) {
- printf("%c%s",
+ printf("%c%s",
(OneSet) ? '|' : ' ',
BitNames[i]);
OneSet = TRUE;
@@ -591,7 +591,7 @@
#define PrintStatus(x)
#endif
-/*
+/*
* The device can lock up under certain conditions.
* There is no software workaround [must toggle RP# to GND]
* Check if it seems that we are in that state.
@@ -603,7 +603,7 @@
if (Status & ST_READY)
return FALSE;
- if ((Status & ST_MASK) ==
+ if ((Status & ST_MASK) ==
(ST_LOCK_BIT_ERROR|ST_ERASE_SUSPENDED|ST_ERASE_ERROR)) {
/* yes, looks that way */
return TRUE;
@@ -614,7 +614,7 @@
ClearStatusRegister(sc);
PrintStatus(ReadStatusRegister(sc));
- if ((Status & ST_MASK) ==
+ if ((Status & ST_MASK) ==
(ST_LOCK_BIT_ERROR|ST_ERASE_SUSPENDED|ST_ERASE_ERROR)) {
/* yes, looks that way */
return TRUE;
@@ -626,7 +626,7 @@
/* Write one 16bit word
*/
-static int
+static int
single_program_word(struct eflash_softc *sc, volatile void *Offset, uint16_t *Values,
int Verify, int *nWritten)
{
@@ -641,7 +641,7 @@
sc->sc_ops->read_uint16(sc,Offset,&Data16);
#ifdef Verbose
if (Verbose) {
- printf("Location %p was x%x\n",
+ printf("Location %p was x%x\n",
Offset, Data16);
}
#endif
@@ -670,13 +670,13 @@
sc->sc_ops->read_uint16(sc,Offset,&Data16);
#ifdef Verbose
if (Verbose) {
- printf("Location %p is now x%x\n",
+ printf("Location %p is now x%x\n",
Offset, Data16);
}
#endif
if ((Data16 != Value)) {
PrintStatus(Status);
- printf(". That didnt work, try again.. [%x != %x]\n",
+ printf(". That didnt work, try again.. [%x != %x]\n",
Data16, Value);
ClearStatusRegister(sc);
return FALSE;
@@ -689,7 +689,7 @@
/* Write one buffer, 16bit words at a time
*/
-static int
+static int
single_program_buffer(struct eflash_softc *sc, volatile void *Offset, uint16_t *Values,
int Verify, int *nWritten)
{
@@ -706,7 +706,7 @@
sc->sc_ops->read_uint16(sc,Where+i,&Data16);
#ifdef Verbose
if (Verbose) {
- printf("Location %p was x%x\n",
+ printf("Location %p was x%x\n",
Where+i, Data16);
}
#endif
@@ -724,7 +724,7 @@
if ((Status & ST_READY)) break;
}
if (0 == (Status & ST_READY)) {
- printf("FAILED program_buffer at Location %p, Status= x%x\n",
+ printf("FAILED program_buffer at Location %p, Status= x%x\n",
Offset, Status);
return FALSE;
}
@@ -763,15 +763,15 @@
sc->sc_ops->read_uint16(sc,Where+i,&Data16);
#ifdef Verbose
if (Verbose) {
- printf("Location %p is now x%x\n",
+ printf("Location %p is now x%x\n",
Where+i, Data16);
}
-#endif
+#endif
Value = Values[i/2];
if ((Data16 != Value)) {
PrintStatus(Status);
- printf(". That didnt work, try again.. [%x != %x]\n",
+ printf(". That didnt work, try again.. [%x != %x]\n",
Data16, Value);
ClearStatusRegister(sc);
return FALSE;
@@ -785,7 +785,7 @@
/* Write one 32bit word
*/
-static int
+static int
twin_program_word(struct eflash_softc *sc, volatile void *Offset, uint16_t *Values,
int Verify, int *nWritten)
{
@@ -804,7 +804,7 @@
sc->sc_ops->read_uint32(sc,Offset,&Data32);
#ifdef Verbose
if (Verbose) {
- printf("Location %p was x%x\n",
+ printf("Location %p was x%x\n",
Offset, Data32);
}
#endif
@@ -833,13 +833,13 @@
sc->sc_ops->read_uint32(sc,Offset,&Data32);
#ifdef Verbose
if (Verbose) {
- printf("Location %p is now x%x\n",
+ printf("Location %p is now x%x\n",
Offset, Data32);
}
-#endif
+#endif
if ((Data32 != Value)) {
PrintStatus(Status);
- printf(". That didnt work, try again.. [%x != %x]\n",
+ printf(". That didnt work, try again.. [%x != %x]\n",
Data32, Value);
ClearStatusRegister(sc);
return FALSE;
@@ -852,7 +852,7 @@
/* Write one buffer, 32bit words at a time
*/
-static int
+static int
twin_program_buffer(struct eflash_softc *sc, volatile void *Offset, uint16_t *Values,
int Verify, int *nWritten)
{
@@ -870,7 +870,7 @@
sc->sc_ops->read_uint32(sc,Where+i,&Data32);
#ifdef Verbose
if (Verbose) {
- printf("Location %p was x%x\n",
+ printf("Location %p was x%x\n",
Where+i, Data32);
}
#endif
@@ -887,7 +887,7 @@
if ((Status & ST_READY)) break;
}
if (0 == (Status & ST_READY)) {
- printf("FAILED program_buffer at Location %p, Status= x%x\n",
+ printf("FAILED program_buffer at Location %p, Status= x%x\n",
Offset, Status);
return FALSE;
}
@@ -930,7 +930,7 @@
sc->sc_ops->read_uint32(sc,Where+i,&Data32);
#ifdef Verbose
if (Verbose) {
- printf("Location %p is now x%x\n",
+ printf("Location %p is now x%x\n",
Where+i, Data32);
}
#endif
@@ -942,7 +942,7 @@
if ((Data32 != Value)) {
PrintStatus(Status);
- printf(". That didnt work, try again.. [%x != %x]\n",
+ printf(". That didnt work, try again.. [%x != %x]\n",
Data32, Value);
ClearStatusRegister(sc);
return FALSE;
@@ -1204,7 +1204,7 @@
/* map new */
error = ioaccess((vaddr_t)sc->sc_sector,
secstart + sc->sc_base,
- secsize);
+ secsize);
DBGME(DEBUG_FUNCS,printf("%s: mapped %p %zx -> %zx %d\n",
device_xname(sc->sc_dev),
sc->sc_sector, secsize, secstart + sc->sc_base,error));
@@ -1220,7 +1220,7 @@
*/
Size = start + *pSize; /* last sector */
if (Size > sc->sc_capacity) {
- /* At most this many sectors
+ /* At most this many sectors
*/
Size = sc->sc_capacity - start;
*pSize = (size_t)Size;
@@ -1614,10 +1614,10 @@
if (sc->sc_bio.flags & ATA_SINGLE) bnow = 1;
if (sc->sc_bio.flags & ATA_READ) {
- sc->sc_bio.error =
+ sc->sc_bio.error =
eflash_read_at(sc, sc->sc_bio.blkno, sc->sc_bio.databuf, bnow, &sz);
} else {
- sc->sc_bio.error =
+ sc->sc_bio.error =
eflash_write_at(sc, sc->sc_bio.blkno, sc->sc_bio.databuf, bnow, &sz);
}
@@ -2158,7 +2158,7 @@
return 0;
}
-
+
case DIOCSSTRATEGY:
{
struct disk_strategy *dks = (void *)addr;
Home |
Main Index |
Thread Index |
Old Index