summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-02-11 05:21:41 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-02-11 05:21:41 +0000
commit23f8cb61940bb86eb45ef4363ea7153e1dc03ea4 (patch)
treecfdf201df35fe43d122133b311de071a1bfcf83a /sys/arch
parent13753cc504a91f9481e73e1dec375f7572b4a484 (diff)
remove unused srom_crc32() function.
ok drahn@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/pci/mpcpcibus.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c
index feff1c96e7c..786ab8c5dbc 100644
--- a/sys/arch/macppc/pci/mpcpcibus.c
+++ b/sys/arch/macppc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.29 2006/02/03 10:21:18 kettenis Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.30 2006/02/11 05:21:40 brad Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -133,21 +133,6 @@ struct powerpc_bus_dma_tag pci_bus_dma_tag = {
_dmamem_mmap
};
-/*
- * Code from "pci/if_de.c" used to calculate crc32 of ether rom data.
- */
-#define TULIP_CRC32_POLY 0xEDB88320UL
-static __inline__ unsigned
-srom_crc32(const unsigned char *databuf, size_t datalen)
-{
- u_int idx, bit, data, crc = 0xFFFFFFFFUL;
-
- for (idx = 0; idx < datalen; idx++)
- for (data = *databuf++, bit = 0; bit < 8; bit++, data >>= 1)
- crc = (crc >> 1) ^ (((crc ^ data) & 1) ? TULIP_CRC32_POLY : 0);
- return crc;
-}
-
int
mpcpcibrmatch(struct device *parent, void *match, void *aux)
{