Vendor Unique SB-2 CRC
250 T10000: Interface Reference Manual August 2016
Vendor Unique SB-2 CRC
The following is a sample ‘C program’ to generate the SB-2 CRC on an i386 class
processor.
FIGURE A-1 SB-2 CRC Program Example (Sheet 1 of 6)
/*********************************************************************
* File: sbbyte.c
* Description: 32bit implementation of the CRC32 LFSR.
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
*
* CRC algorithm was excerpted from "18. Roll Your Own Table-Driven
* Implementation" in the following document:
* "Everything you wanted to know about CRC algorithms, but were afraid to
* ask for fear that errors in your understanding might be detected."
*
* Author : Ross N. Williams
* E-Mail : ross@guest.adelaide.edu.au
* Date : 19 August 1993
* Version : 3.00
*
* FTP: ftp.adelaide.edu.au/pub/rocksoft/crc_v3.txt
* WWW: http://www.on.net/clients/rocksoft/ro ksoft/
*
* Company : Rocksoft(tm) Pty Ltd
* Snail : 16 Lerwick Avenue, Hazelwood Park 5066, Australia
* Fax : +61 8 373-4911 (c/- Internode Systems Pty Ltd)
* Phone : +61 8 379-9217 (10am to 10pm Adelaide Australia time)
* Note : "Rocksoft" is a trademark of Rocksoft Pty Ltd, Australia
*
* Status: Copyright (C) Ross Williams, 1993,1994,1995,1996. However,
* permission is granted to make and distribute verbatim copies of this
* document provided that this information block and copyright notice is
* included. Also, the C code modules included in this document are fully
* PUBLIC DOMAIN (PD).
*
* Thanks: Thanks to Jean-loup Gailly (jloup@chorus.fr) and Mark Adler
* (me@quest.jpl.nasa.gov) who both proof read this document and picked
* out lots of nits as well as some big fat bugs.
*
********************************************************************/