pci.c (f838bad1b3be8ca0c785ee0e0c570dfda74cf377) pci.c (4503183aa32e6886400d82282292934fa64a81b0)
1/*
2 * Sonics Silicon Backplane PCI-Hostbus related functions.
3 *
4 * Copyright (C) 2005-2006 Michael Buesch <mb@bu3sch.de>
5 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
6 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net>
7 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
8 * Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch>

--- 470 unchanged lines hidden (view full) ---

479 sprom_extract_r123(out, in);
480 }
481 if (out->revision == 4)
482 sprom_extract_r4(out, in);
483 if (out->revision >= 5)
484 goto unsupported;
485 }
486
1/*
2 * Sonics Silicon Backplane PCI-Hostbus related functions.
3 *
4 * Copyright (C) 2005-2006 Michael Buesch <mb@bu3sch.de>
5 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
6 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net>
7 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org>
8 * Copyright (C) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch>

--- 470 unchanged lines hidden (view full) ---

479 sprom_extract_r123(out, in);
480 }
481 if (out->revision == 4)
482 sprom_extract_r4(out, in);
483 if (out->revision >= 5)
484 goto unsupported;
485 }
486
487 if (out->boardflags_lo == 0xFFFF)
488 out->boardflags_lo = 0; /* per specs */
489 if (out->boardflags_hi == 0xFFFF)
490 out->boardflags_hi = 0; /* per specs */
491
487 return 0;
488unsupported:
489 ssb_printk(KERN_WARNING PFX "Unsupported SPROM revision %d "
490 "detected. Will extract v1\n", out->revision);
491 sprom_extract_r123(out, in);
492 return 0;
493}
494

--- 301 unchanged lines hidden ---
492 return 0;
493unsupported:
494 ssb_printk(KERN_WARNING PFX "Unsupported SPROM revision %d "
495 "detected. Will extract v1\n", out->revision);
496 sprom_extract_r123(out, in);
497 return 0;
498}
499

--- 301 unchanged lines hidden ---